-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aftershock: Zenit Security Drones (#78923)
* Zenit Security Drones * Tidy the descriptions
- Loading branch information
1 parent
ef837bd
commit 2000b9f
Showing
20 changed files
with
768 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[ | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "EOC_AFS_INSTANT_DEATH", | ||
"condition": "has_beta", | ||
"effect": [ "npc_die" ] | ||
}, | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "EOC_AFS_REACTOR_MELTDOWN", | ||
"condition": "has_beta", | ||
"effect": [ | ||
{ "npc_location_variable": { "context_val": "loc" } }, | ||
{ "map_spawn_item": "afs_reactor_unstable", "loc": { "context_val": "loc" } }, | ||
{ "npc_add_effect": "effect_robot_immobilized", "duration": "PERMANENT" }, | ||
{ "u_message": "The malfunctioning reactor is ejected." } | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"id": "afs_launcher_salvaged", | ||
"copy-from": "m320", | ||
"looks_like": "m79", | ||
"type": "GUN", | ||
"name": { "str": "vatforged grenade launcher" }, | ||
"description": "A crude grenade launcher that's been either ripped from a broken robot or built using a hacked template. The remnants of a loading rack allow it to hold three 40mm grenades at once.", | ||
"price": "300 USD", | ||
"price_postapoc": "300 USD", | ||
"clip_size": 3, | ||
"reload": 200, | ||
"extend": { "flags": [ "RELOAD_ONE" ] }, | ||
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "40x46mm": 3 } } ], | ||
"melee_damage": { "bash": 6 } | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
[ | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "EOC_ZENIT_CONTROL", | ||
"effect": [ | ||
{ | ||
"run_eocs": [ | ||
{ | ||
"id": "zenit_setup", | ||
"condition": { "math": [ "u_setup != 1" ] }, | ||
"effect": [ | ||
{ "math": [ "u_setup = 1" ] }, | ||
{ "math": [ "u_timer_zenit_shock_mines = 0" ] }, | ||
{ "math": [ "u_timer_zenit_shock_att = 0" ] }, | ||
{ "math": [ "u_timer_zenit_smoke = 0" ] } | ||
] | ||
} | ||
] | ||
}, | ||
{ "u_location_variable": { "context_val": "my_loc" } }, | ||
{ "npc_location_variable": { "context_val": "t_loc" } }, | ||
{ "math": [ "_distance = distance('u', 'npc')" ] }, | ||
{ | ||
"switch": { "math": [ "_distance" ] }, | ||
"cases": [ | ||
{ | ||
"case": 0, | ||
"effect": [ | ||
{ "run_eocs": [ "eoc_zenit_shock_mines" ] }, | ||
{ "run_eocs": [ "eoc_zenit_smoke" ], "variables": { "tar": { "context_val": "my_loc" } } } | ||
] | ||
}, | ||
{ | ||
"case": 6, | ||
"effect": [ { "run_eocs": [ "eoc_zenit_shock_att" ], "variables": { "tar": { "context_val": "t_loc" } } } ] | ||
}, | ||
{ "case": 12, "effect": [ { "run_eocs": [ "eoc_zenit_def" ] } ] }, | ||
{ | ||
"case": 25, | ||
"effect": [ { "run_eocs": [ "eoc_zenit_smoke", "eoc_zenit_def" ], "variables": { "tar": { "context_val": "t_loc" } } } ] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "eoc_zenit_def", | ||
"type": "effect_on_condition", | ||
"condition": { "not": { "npc_has_any_effect": [ "afs_ai_defensive" ] } }, | ||
"effect": [ | ||
{ "u_add_effect": "afs_ai_defensive", "duration": "10 minutes" }, | ||
{ | ||
"run_eocs": [ | ||
{ | ||
"id": "avatar_sees_zenit_def", | ||
"condition": "player_see_u", | ||
"effect": [ { "message": "The Zenit crouches forward, hiding most of its body behind its upper armor plate." } ] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "eoc_zenit_undef", | ||
"type": "effect_on_condition", | ||
"condition": { "and": [ { "u_has_any_effect": [ "afs_ai_defensive" ] } ] }, | ||
"effect": [ | ||
{ "u_lose_effect": "afs_ai_defensive" }, | ||
{ | ||
"run_eocs": [ | ||
{ | ||
"id": "avatar_sees_zenit_undef", | ||
"condition": "player_see_u", | ||
"effect": [ { "message": "The Zenit raises its body." } ] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "eoc_zenit_shock_att", | ||
"type": "effect_on_condition", | ||
"condition": { "and": [ { "expects_vars": [ "tar" ] }, { "math": [ "time_since(u_timer_zenit_shock_att) > time(' 12 s')" ] } ] }, | ||
"effect": [ | ||
{ "run_eocs": [ "eoc_zenit_undef" ], "alpha_talker": "u" }, | ||
{ "math": [ "u_timer_zenit_shock_att = time('now')" ] }, | ||
{ "u_cast_spell": { "id": "spell_electric_chain_2" }, "loc": { "context_val": "tar" } }, | ||
{ | ||
"run_eocs": [ | ||
{ | ||
"id": "avatar_sees_zenit_shock_att", | ||
"condition": "player_see_u", | ||
"effect": [ { "message": "The Zenit emits an explosion of arcing electricity." } ] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "eoc_zenit_shock_mines", | ||
"type": "effect_on_condition", | ||
"condition": { "and": [ { "math": [ "time_since(u_timer_zenit_shock_mines) > time(' 5 m')" ] } ] }, | ||
"effect": [ | ||
{ "run_eocs": [ "eoc_zenit_undef" ], "alpha_talker": "u" }, | ||
{ "math": [ "u_timer_zenit_shock_mines = time('now')" ] }, | ||
{ "u_spawn_monster": "mon_shock_mine", "real_count": 30, "min_radius": 5, "max_radius": 13 }, | ||
{ | ||
"run_eocs": [ | ||
{ | ||
"id": "avatar_sees_zenit_shock_mines", | ||
"condition": "player_see_u", | ||
"effect": [ { "message": "Several mines are expelled from the Zenit's munitions bay" } ] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "eoc_zenit_smoke", | ||
"type": "effect_on_condition", | ||
"condition": { "and": [ { "expects_vars": [ "tar" ] }, { "math": [ "time_since(u_timer_zenit_smoke) > time(' 40 s')" ] } ] }, | ||
"effect": [ | ||
{ "run_eocs": [ "eoc_zenit_undef" ], "alpha_talker": "u" }, | ||
{ "math": [ "u_timer_zenit_smoke = time('now')" ] }, | ||
{ "u_cast_spell": { "id": "quadraphract_smoke_mortar" }, "loc": { "context_val": "tar" } }, | ||
{ | ||
"run_eocs": [ | ||
{ | ||
"id": "avatar_sees_zenit_smoke", | ||
"condition": "player_see_u", | ||
"effect": [ { "message": "Several bomblets are expelled from the Zenit's munitions bay" } ] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.