1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-11 15:48:05 -05:00

G-Strike Beacon: kills on any round

This commit is contained in:
Jbleezy
2023-04-05 11:35:17 -07:00
parent ea890d79fd
commit 5bba42ff85
3 changed files with 57 additions and 0 deletions

View File

@ -179,6 +179,9 @@
* Unupgraded: changed damage to 2000 (normally does 1000-2000 damage based on number of charges)
* Upgraded: kills on any round when not charged
### G-Strike Beacon
* Kills on any round
### Claymore
* Can be repurchased
* Increased max amount that can be placed from 12 to 20

View File

@ -0,0 +1,52 @@
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\zombies\_zm_utility;
#include maps\mp\zm_tomb_utility;
#include maps\mp\zombies\_zm_laststand;
#include maps\mp\zombies\_zm_clone;
#include maps\mp\zombies\_zm_audio;
#include maps\mp\zombies\_zm_weap_beacon;
wait_and_do_weapon_beacon_damage( index )
{
wait 3.0;
v_damage_origin = self.a_v_land_spots[index];
level.n_weap_beacon_zombie_thrown_count = 0;
a_zombies_to_kill = [];
a_zombies = getaispeciesarray( "axis", "all" );
foreach ( zombie in a_zombies )
{
n_distance = distance( zombie.origin, v_damage_origin );
if ( n_distance <= 200 )
{
a_zombies_to_kill[a_zombies_to_kill.size] = zombie;
}
}
if ( index == 0 )
{
radiusdamage( self.origin + vectorscale( ( 0, 0, 1 ), 12.0 ), 10, 1, 1, self.owner, "MOD_GRENADE_SPLASH", "beacon_zm" );
self ghost();
self stopanimscripted( 0 );
}
level thread weap_beacon_zombie_death( self, a_zombies_to_kill );
self thread weap_beacon_rumble();
}
weap_beacon_zombie_death( model, a_zombies_to_kill )
{
for ( i = 0; i < a_zombies_to_kill.size; i++ )
{
zombie = a_zombies_to_kill[i];
if ( !isdefined( zombie ) || !isalive( zombie ) )
continue;
zombie thread set_beacon_damage();
zombie dodamage( zombie.health, zombie.origin, model.owner, model.owner, "none", "MOD_GRENADE_SPLASH", 0, "beacon_zm" );
zombie thread weapon_beacon_launch_ragdoll();
}
}

View File

@ -26,6 +26,7 @@
#include scripts\zm\replaced\_zm_riotshield_tomb;
#include scripts\zm\replaced\_zm_weap_riotshield_tomb;
#include scripts\zm\replaced\_zm_weap_one_inch_punch;
#include scripts\zm\replaced\_zm_weap_beacon;
#include scripts\zm\replaced\_zm_weap_staff_air;
#include scripts\zm\replaced\_zm_weap_staff_fire;
#include scripts\zm\replaced\_zm_weap_staff_lightning;
@ -71,6 +72,7 @@ main()
replaceFunc(maps\mp\zombies\_zm_weap_riotshield_tomb::init, scripts\zm\replaced\_zm_weap_riotshield_tomb::init);
replaceFunc(maps\mp\zombies\_zm_weap_riotshield_tomb::player_damage_shield, scripts\zm\replaced\_zm_weap_riotshield_tomb::player_damage_shield);
replaceFunc(maps\mp\zombies\_zm_weap_one_inch_punch::monitor_melee_swipe, scripts\zm\replaced\_zm_weap_one_inch_punch::monitor_melee_swipe);
replaceFunc(maps\mp\zombies\_zm_weap_beacon::wait_and_do_weapon_beacon_damage, scripts\zm\replaced\_zm_weap_beacon::wait_and_do_weapon_beacon_damage);
replaceFunc(maps\mp\zombies\_zm_weap_staff_air::whirlwind_kill_zombies, scripts\zm\replaced\_zm_weap_staff_air::whirlwind_kill_zombies);
replaceFunc(maps\mp\zombies\_zm_weap_staff_fire::flame_damage_fx, scripts\zm\replaced\_zm_weap_staff_fire::flame_damage_fx);
replaceFunc(maps\mp\zombies\_zm_weap_staff_fire::get_impact_damage, scripts\zm\replaced\_zm_weap_staff_fire::get_impact_damage);