Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addons to current civilian mobs #78318

Merged
merged 49 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
789e298
Add files via upload
BioHazardSuit Aug 11, 2024
6d4d5f9
Update monster_gun.json
BioHazardSuit Aug 11, 2024
7cd0aab
Update monster_gun.json
BioHazardSuit Aug 11, 2024
07808b5
Update monster_gun.json
BioHazardSuit Aug 11, 2024
b3d7123
Update civilians.json
BioHazardSuit Aug 12, 2024
5fb9a42
Update civilians.json
BioHazardSuit Aug 12, 2024
41c81d0
Update data/json/monster_special_attacks/civilian_weapon_attacks.json
BioHazardSuit Dec 3, 2024
ef06397
Update data/json/monsters/civilians.json
BioHazardSuit Dec 3, 2024
1e0e7f4
Update monster_gun.json
BioHazardSuit Dec 3, 2024
0f60dde
Update civilian_weapon_attacks.json
BioHazardSuit Dec 3, 2024
e572c83
Update monster_gun.json
BioHazardSuit Dec 3, 2024
77f30b3
Update civilian_weapon_attacks.json
BioHazardSuit Dec 3, 2024
3182bca
Update monster_gun.json
BioHazardSuit Dec 3, 2024
ad81214
Update monster_gun.json
BioHazardSuit Dec 3, 2024
e7fec4a
Update monster_gun.json
BioHazardSuit Dec 3, 2024
4547891
Update monster_gun.json
BioHazardSuit Dec 3, 2024
2e4914c
Update monster_gun.json
BioHazardSuit Dec 3, 2024
dc8a654
Update monster_gun.json
BioHazardSuit Dec 3, 2024
9310f01
Update monster_gun.json
BioHazardSuit Dec 3, 2024
1910e14
Update monster_gun.json
BioHazardSuit Dec 3, 2024
574bf66
Update civilian_weapon_attacks.json
BioHazardSuit Dec 3, 2024
3fbb182
Update civilian_weapon_attacks.json
BioHazardSuit Dec 3, 2024
ac07fb1
Update data/json/monster_special_attacks/civilian_weapon_attacks.json
BioHazardSuit Dec 3, 2024
2254db7
Update civilian_weapon_attacks.json
BioHazardSuit Dec 3, 2024
9534a52
Update civilian_weapon_attacks.json
BioHazardSuit Dec 3, 2024
bd4e8bc
Update data/json/monster_special_attacks/monster_gun.json
BioHazardSuit Dec 4, 2024
2ed36c0
Update data/json/monster_special_attacks/monster_gun.json
BioHazardSuit Dec 4, 2024
9562f0b
Update monster_gun.json
BioHazardSuit Dec 4, 2024
44f5007
Update monster_gun.json
BioHazardSuit Dec 4, 2024
ba4dc9b
Update civilians.json
BioHazardSuit Dec 4, 2024
13c33ee
Update civilians.json
BioHazardSuit Dec 4, 2024
eda965c
Delete data/json/monster_special_attacks/civilian_weapon_attacks.json
BioHazardSuit Dec 4, 2024
9f5d9ac
Update laststand.json
BioHazardSuit Dec 4, 2024
be2a1f9
Update civilians.json
BioHazardSuit Dec 4, 2024
fc03d39
Update civilians.json
BioHazardSuit Dec 4, 2024
ff96fc8
Update monster_gun.json
BioHazardSuit Dec 4, 2024
6edc198
Update civilians.json
BioHazardSuit Dec 4, 2024
d01de3d
Update monster_gun.json
BioHazardSuit Dec 4, 2024
71a4872
Merge branch 'CleverRaven:master' into civilian-changes
BioHazardSuit Dec 4, 2024
fe37e83
Merge branch 'CleverRaven:master' into civilian-changes
BioHazardSuit Dec 5, 2024
ab1b87b
Update civilians.json
BioHazardSuit Dec 6, 2024
db20469
Merge branch 'CleverRaven:master' into civilian-changes
BioHazardSuit Dec 6, 2024
b53f99f
Update civilians.json
BioHazardSuit Dec 13, 2024
d1113e7
Update monster_gun.json
BioHazardSuit Dec 13, 2024
bcc261a
Update generic_guns_validator.py
BioHazardSuit Dec 14, 2024
61e36ec
Update generic_guns_validator.py
BioHazardSuit Dec 14, 2024
e612708
Update generic_guns_validator.py
BioHazardSuit Dec 14, 2024
62af8aa
Update gg_firearms_migration.json
BioHazardSuit Dec 14, 2024
41c23fd
Update civilians.json
BioHazardSuit Dec 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion data/json/mapgen/map_extras/laststand.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"default": "mon_null",
"monsters": [
{ "monster": "mon_civilian_police", "weight": 1, "cost_multiplier": 1, "ends": "5 days" },
{ "monster": "mon_civilian_zombiefighter", "weight": 4, "cost_multiplier": 1, "ends": "5 days" }
{ "monster": "mon_civilian_police_rifle", "weight": 1, "cost_multiplier": 1, "ends": "5 days" },
{ "monster": "mon_civilian_zombiefighter", "weight": 4, "cost_multiplier": 1, "ends": "5 days" },
{ "monster": "mon_civilian_zombiegunner", "weight": 4, "cost_multiplier": 1, "ends": "5 days" }
]
},
{
Expand Down
27 changes: 27 additions & 0 deletions data/json/monster_special_attacks/monster_gun.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,33 @@
"dispersion": 960,
"durability": 5
},
{
"id": "civilian_glock19",
"copy-from": "glock_19",
"looks_like": "glock_19",
"flags": [ "PSEUDO" ],
"type": "GUN",
"name": { "str_sp": "Fighters' Glock 19" },
"description": {
"str": "A gun carried by civilian monsters, more inaccurate for balancing reasons. If you see this, it's a bug.",
"//~": "NO_I18N"
},
"dispersion": 960,
"durability": 5
},
{
"id": "civilian_AR-15",
"copy-from": "modular_ar15",
"looks_like": "modular_ar15",
"flags": [ "PSEUDO" ],
"type": "GUN",
"ammo": [ "223" ],
"name": { "str_sp": "Cops' AR15" },
"//": "A rifle carried by cop monsters, more inaccurate for balancing reasons.",
"dispersion": 960,
"durability": 5,
"pocket_data": [ { "magazine_well": "500 ml", "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "stanag30" ] } ]
},
{
"id": "acid_spit",
"type": "GUN",
Expand Down
101 changes: 97 additions & 4 deletions data/json/monsters/civilians.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,27 +94,118 @@
],
"armor": { "bash": 6, "cut": 6, "stab": 6, "bullet": 6, "electric": 2 }
},
{
"id": "mon_civilian_police_rifle",
"type": "MONSTER",
"name": { "str": "overconfident officer" },
"description": "Rifle in hand, this police officer is determined to make a last stand against the horde.",
"copy-from": "mon_civilian_panic",
"diff": 5,
"aggro_character": false,
"aggression": 100,
"morale": 100,
"vision_day": 50,
"vision_night": 3,
"weakpoint_sets": [ "wps_humanoid_body", "wps_humanoid_body_armor" ],
"families": [ "prof_intro_biology", "prof_physiology", "prof_wp_syn_armored" ],
"chat_topics": [ "TALK_CIVILIAN_OFFICER" ],
"//": "Copied from zombie cop",
"melee_skill": 4,
"melee_dice": 2,
"melee_dice_sides": 4,
"//2": "Unwieldy rifle butt for melee",
"melee_damage": [ { "damage_type": "bash", "amount": 3 } ],
"death_drops": {
"subtype": "collection",
"items": [
{ "group": "mon_zombie_cop_death_drops", "prob": 100 },
{ "group": "modular_ar15", "prob": 100, "charges": [ 0, 6 ] }
]
},
"zombify_into": "mon_zombie_cop",
"extend": { "flags": [ "DROPS_AMMO", "WIELDED_WEAPON" ] },
"starting_ammo": { "223": 20 },
"//3": "Range starts from 0 to get some shots out",
"special_attacks": [
{
"type": "gun",
"cooldown": 10,
"move_cost": 100,
"gun_type": "civilian_AR-15",
"ammo_type": "223",
"fake_skills": [ [ "gun", 2 ], [ "rifle", 3 ] ],
"fake_dex": 8,
"fake_per": 10,
"ranges": [ [ 0, 14, "DEFAULT" ] ],
"condition": { "test_eoc": "is_disarmed" },
"require_targeting_player": false,
"description": "The officer fires their AR-15!"
}
],
"armor": { "bash": 6, "cut": 6, "stab": 6, "bullet": 6, "electric": 2 }
},
{
"id": "mon_civilian_zombiefighter",
"type": "MONSTER",
"name": { "str": "futile fighter" },
"description": "Obviously, this aggravated yet rallied human has lost their wits and tries to fight the undead with just a stick in their hands.",
"description": "Obviously, this aggravated yet rallied person has lost their wits and tries to fight the undead with just a knife in their hands.",
"copy-from": "mon_civilian_panic",
"chat_topics": [ "TALK_CIVILIAN_FIGHTER" ],
"diff": 3,
"aggro_character": false,
"aggression": 100,
"morale": 100,
"melee_skill": 2,
"special_attacks": [ { "id": "feral_weapon_knife_combat_low_skill" } ],
"melee_dice": 2,
"melee_dice_sides": 3,
"death_drops": {
"subtype": "collection",
"items": [ { "group": "default_zombie_death_drops", "prob": 100 }, { "group": "survivor_knife", "prob": 100 } ]
}
},
{
"id": "mon_civilian_zombiegunner",
"type": "MONSTER",
"name": { "str": "firearmed fighter" },
"description": "Handgun in hand, this person is determined to make a last stand against the horde.",
"copy-from": "mon_civilian_panic",
"chat_topics": [ "TALK_CIVILIAN_GUNNER" ],
"diff": 3,
"aggro_character": false,
"aggression": 100,
"morale": 100,
"melee_skill": 2,
"melee_dice": 2,
"melee_dice_sides": 3,
"melee_damage": [ { "damage_type": "bash", "amount": 4 } ]
"death_drops": {
"subtype": "collection",
"items": [ { "group": "default_zombie_death_drops", "prob": 100 }, { "item": "glock_19", "prob": 100, "charges": [ 0, 6 ] } ]
},
"starting_ammo": { "9mm": 10 },
"//3": "Range starts from 0 to get some shots out",
"special_attacks": [
{
"type": "gun",
"cooldown": 10,
"move_cost": 150,
"gun_type": "civilian_glock19",
"ammo_type": "9mm",
"fake_skills": [ [ "gun", 2 ], [ "pistol", 3 ] ],
"fake_dex": 8,
"fake_per": 10,
"ranges": [ [ 0, 14, "DEFAULT" ] ],
"condition": { "test_eoc": "is_disarmed" },
"require_targeting_player": false,
"description": "The gunman fires their sidearm!"
}
]
},
{
"id": "mon_civilian_icu",
"type": "MONSTER",
"name": { "str": "hospitalized human" },
"description": "This being is severely ill in some form or another, requiring intensive care that is not available anymore after the Cataclysm. There is nothing you can do for them.",
"name": { "str": "hospitalized patient" },
"description": "This person is severely ill in some form or another, requiring intensive care that is not available anymore after the Cataclysm. There is nothing you can do for them.",
"chat_topics": [ "TALK_CIVILIAN_ICU" ],
"speed": 0,
"//": "So they are not perpetually fleeing despite lying in a hospital bed",
Expand Down Expand Up @@ -152,6 +243,8 @@
"monsters": [
{ "monster": "mon_civilian_stationary", "weight": 30, "cost_multiplier": 0, "ends": "3 days" },
{ "monster": "mon_civilian_zombiefighter", "weight": 16, "cost_multiplier": 0, "ends": "3 days" },
{ "monster": "mon_civilian_zombiegunner", "weight": 12, "cost_multiplier": 0, "ends": "3 days" },
{ "monster": "mon_civilian_police_rifle", "weight": 4, "cost_multiplier": 3, "ends": "3 days" },
{ "monster": "mon_civilian_police", "weight": 4, "cost_multiplier": 3, "ends": "3 days" },
{
"monster": "mon_civilian_parent",
Expand Down
15 changes: 14 additions & 1 deletion data/json/npcs/civilians/civilians.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"id": "TALK_CIVILIAN_FIGHTER",
"dynamic_line": [
"I'm gonna kill all these <swear> things!",
"&They let out a bellowing warcry and wave their stick.",
"&They let out a bellowing warcry and wave their knife.",
"I'M INVINCIBLE!"
],
"responses": [
Expand All @@ -43,6 +43,19 @@
],
"responses": [ { "text": "[Back away.]", "topic": "TALK_DONE" } ]
},
{
"type": "talk_topic",
"id": "TALK_CIVILIAN_GUNNER",
"dynamic_line": [
"I'm gonna kill all these <swear> things!",
"&They let out a bellowing warcry and wave their gun.",
"I'M INVINCIBLE!"
],
"responses": [
{ "text": "Are you crazy? Get out of here!", "topic": "TALK_CIVILIAN_FIGHTER_EVAC" },
{ "text": "[Leave them to their futile fight.]", "topic": "TALK_DONE" }
]
},
{
"type": "talk_topic",
"id": "TALK_CIVILIAN_ICU",
Expand Down
2 changes: 2 additions & 0 deletions tools/json_tools/generic_guns_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
'gene_sting_gun',
'ppsh',
'af2011a1_38super',
'civilian_AR-15'
'civilian_glock19'
# Magazines
'a180mag',
'a180mag1',
Expand Down
Loading