Skip to content

Commit 472c200

Browse files
Merge pull request CleverRaven#78318 from BioHazardSuit/civilian-changes
Addons to current civilian mobs
2 parents 78ca72d + 41c23fd commit 472c200

File tree

5 files changed

+141
-4
lines changed

5 files changed

+141
-4
lines changed

data/json/mapgen/map_extras/laststand.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"default": "mon_null",
66
"monsters": [
77
{ "monster": "mon_civilian_police", "weight": 1, "cost_multiplier": 1, "ends": "5 days" },
8-
{ "monster": "mon_civilian_zombiefighter", "weight": 4, "cost_multiplier": 1, "ends": "5 days" }
8+
{ "monster": "mon_civilian_police_rifle", "weight": 1, "cost_multiplier": 1, "ends": "5 days" },
9+
{ "monster": "mon_civilian_zombiefighter", "weight": 4, "cost_multiplier": 1, "ends": "5 days" },
10+
{ "monster": "mon_civilian_zombiegunner", "weight": 4, "cost_multiplier": 1, "ends": "5 days" }
911
]
1012
},
1113
{

data/json/monster_special_attacks/monster_gun.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,33 @@
205205
"dispersion": 960,
206206
"durability": 5
207207
},
208+
{
209+
"id": "civilian_glock19",
210+
"copy-from": "glock_19",
211+
"looks_like": "glock_19",
212+
"flags": [ "PSEUDO" ],
213+
"type": "GUN",
214+
"name": { "str_sp": "Fighters' Glock 19" },
215+
"description": {
216+
"str": "A gun carried by civilian monsters, more inaccurate for balancing reasons. If you see this, it's a bug.",
217+
"//~": "NO_I18N"
218+
},
219+
"dispersion": 960,
220+
"durability": 5
221+
},
222+
{
223+
"id": "civilian_AR-15",
224+
"copy-from": "modular_ar15",
225+
"looks_like": "modular_ar15",
226+
"flags": [ "PSEUDO" ],
227+
"type": "GUN",
228+
"ammo": [ "223" ],
229+
"name": { "str_sp": "Cops' AR15" },
230+
"//": "A rifle carried by cop monsters, more inaccurate for balancing reasons.",
231+
"dispersion": 960,
232+
"durability": 5,
233+
"pocket_data": [ { "magazine_well": "500 ml", "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "stanag30" ] } ]
234+
},
208235
{
209236
"id": "acid_spit",
210237
"type": "GUN",

data/json/monsters/civilians.json

Lines changed: 95 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,112 @@
9494
],
9595
"armor": { "bash": 6, "cut": 6, "stab": 6, "bullet": 6, "electric": 2 }
9696
},
97+
{
98+
"id": "mon_civilian_police_rifle",
99+
"type": "MONSTER",
100+
"name": { "str": "overconfident officer" },
101+
"description": "Rifle in hand, this police officer is determined to make a last stand against the horde.",
102+
"copy-from": "mon_civilian_panic",
103+
"diff": 5,
104+
"aggro_character": false,
105+
"aggression": 100,
106+
"morale": 100,
107+
"vision_day": 50,
108+
"vision_night": 3,
109+
"weakpoint_sets": [ "wps_humanoid_body", "wps_humanoid_body_armor" ],
110+
"families": [ "prof_intro_biology", "prof_physiology", "prof_wp_syn_armored" ],
111+
"chat_topics": [ "TALK_CIVILIAN_OFFICER" ],
112+
"//": "Copied from zombie cop",
113+
"melee_skill": 4,
114+
"melee_dice": 2,
115+
"melee_dice_sides": 4,
116+
"//2": "Unwieldy rifle butt for melee",
117+
"melee_damage": [ { "damage_type": "bash", "amount": 3 } ],
118+
"death_drops": {
119+
"subtype": "collection",
120+
"items": [
121+
{ "group": "mon_zombie_cop_death_drops", "prob": 100 },
122+
{ "group": "modular_ar15", "prob": 100, "charges": [ 0, 6 ] }
123+
]
124+
},
125+
"zombify_into": "mon_zombie_cop",
126+
"extend": { "flags": [ "DROPS_AMMO", "WIELDED_WEAPON" ] },
127+
"starting_ammo": { "223": 20 },
128+
"//3": "Range starts from 0 to get some shots out",
129+
"special_attacks": [
130+
{
131+
"type": "gun",
132+
"cooldown": 10,
133+
"move_cost": 100,
134+
"gun_type": "civilian_AR-15",
135+
"ammo_type": "223",
136+
"fake_skills": [ [ "gun", 2 ], [ "rifle", 3 ] ],
137+
"fake_dex": 8,
138+
"fake_per": 10,
139+
"ranges": [ [ 0, 14, "DEFAULT" ] ],
140+
"condition": { "test_eoc": "is_disarmed" },
141+
"require_targeting_player": false,
142+
"description": "The officer fires their AR-15!"
143+
}
144+
],
145+
"armor": { "bash": 6, "cut": 6, "stab": 6, "bullet": 6, "electric": 2 }
146+
},
97147
{
98148
"id": "mon_civilian_zombiefighter",
99149
"type": "MONSTER",
100150
"name": { "str": "futile fighter" },
101-
"description": "Obviously, this aggravated yet rallied human has lost their wits and tries to fight the undead with just a stick in their hands.",
151+
"description": "Obviously, this aggravated yet rallied person has lost their wits and tries to fight the undead with just a knife in their hands.",
102152
"copy-from": "mon_civilian_panic",
103153
"chat_topics": [ "TALK_CIVILIAN_FIGHTER" ],
104154
"diff": 3,
105155
"aggro_character": false,
106156
"aggression": 100,
107157
"morale": 100,
108158
"melee_skill": 2,
159+
"special_attacks": [ { "id": "feral_weapon_knife_combat_low_skill" } ],
160+
"melee_dice": 2,
161+
"melee_dice_sides": 3,
162+
"death_drops": {
163+
"subtype": "collection",
164+
"items": [ { "group": "default_zombie_death_drops", "prob": 100 }, { "group": "survivor_knife", "prob": 100 } ]
165+
}
166+
},
167+
{
168+
"id": "mon_civilian_zombiegunner",
169+
"type": "MONSTER",
170+
"name": { "str": "firearmed fighter" },
171+
"description": "Handgun in hand, this person is determined to make a last stand against the horde.",
172+
"copy-from": "mon_civilian_panic",
173+
"chat_topics": [ "TALK_CIVILIAN_GUNNER" ],
174+
"diff": 3,
175+
"aggro_character": false,
176+
"aggression": 100,
177+
"morale": 100,
178+
"melee_skill": 2,
109179
"melee_dice": 2,
110180
"melee_dice_sides": 3,
111-
"melee_damage": [ { "damage_type": "bash", "amount": 4 } ]
181+
"death_drops": {
182+
"subtype": "collection",
183+
"items": [ { "group": "default_zombie_death_drops", "prob": 100 }, { "item": "glock_19", "prob": 100, "charges": [ 0, 6 ] } ]
184+
},
185+
"starting_ammo": { "9mm": 10 },
186+
"//3": "Range starts from 0 to get some shots out",
187+
"special_attacks": [
188+
{
189+
"type": "gun",
190+
"cooldown": 10,
191+
"move_cost": 150,
192+
"gun_type": "civilian_glock19",
193+
"ammo_type": "9mm",
194+
"fake_skills": [ [ "gun", 2 ], [ "pistol", 3 ] ],
195+
"fake_dex": 8,
196+
"fake_per": 10,
197+
"ranges": [ [ 0, 14, "DEFAULT" ] ],
198+
"condition": { "test_eoc": "is_disarmed" },
199+
"require_targeting_player": false,
200+
"description": "The gunman fires their sidearm!"
201+
}
202+
]
112203
},
113204
{
114205
"id": "mon_civilian_icu",
@@ -152,6 +243,8 @@
152243
"monsters": [
153244
{ "monster": "mon_civilian_stationary", "weight": 30, "cost_multiplier": 0, "ends": "3 days" },
154245
{ "monster": "mon_civilian_zombiefighter", "weight": 16, "cost_multiplier": 0, "ends": "3 days" },
246+
{ "monster": "mon_civilian_zombiegunner", "weight": 12, "cost_multiplier": 0, "ends": "3 days" },
247+
{ "monster": "mon_civilian_police_rifle", "weight": 4, "cost_multiplier": 3, "ends": "3 days" },
155248
{ "monster": "mon_civilian_police", "weight": 4, "cost_multiplier": 3, "ends": "3 days" },
156249
{
157250
"monster": "mon_civilian_parent",

data/json/npcs/civilians/civilians.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"id": "TALK_CIVILIAN_FIGHTER",
2020
"dynamic_line": [
2121
"I'm gonna kill all these <swear> things!",
22-
"&They let out a bellowing warcry and wave their stick.",
22+
"&They let out a bellowing warcry and wave their knife.",
2323
"I'M INVINCIBLE!"
2424
],
2525
"responses": [
@@ -43,6 +43,19 @@
4343
],
4444
"responses": [ { "text": "[Back away.]", "topic": "TALK_DONE" } ]
4545
},
46+
{
47+
"type": "talk_topic",
48+
"id": "TALK_CIVILIAN_GUNNER",
49+
"dynamic_line": [
50+
"I'm gonna kill all these <swear> things!",
51+
"&They let out a bellowing warcry and wave their gun.",
52+
"I'M INVINCIBLE!"
53+
],
54+
"responses": [
55+
{ "text": "Are you crazy? Get out of here!", "topic": "TALK_CIVILIAN_FIGHTER_EVAC" },
56+
{ "text": "[Leave them to their futile fight.]", "topic": "TALK_DONE" }
57+
]
58+
},
4659
{
4760
"type": "talk_topic",
4861
"id": "TALK_CIVILIAN_ICU",

data/mods/Generic_Guns/firearms/gg_firearms_migration.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@
124124
"m1911a1_38super",
125125
"glock_22",
126126
"civilian_cop_glock22",
127+
"civilian_glock19",
128+
"civilian_AR-15",
127129
"hi_power_40",
128130
"tommygun",
129131
"usp_45",

0 commit comments

Comments
 (0)