mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 23:57:59 -05:00
Electric trap equipment: decrease player damage
This commit is contained in:
@ -221,6 +221,8 @@
|
|||||||
* Gets destroyed after being deployed for 30 seconds
|
* Gets destroyed after being deployed for 30 seconds
|
||||||
* Kills on any round (normally stops killing after round 50)
|
* Kills on any round (normally stops killing after round 50)
|
||||||
* Can kill unlimited zombies at once
|
* Can kill unlimited zombies at once
|
||||||
|
* No longer kills players without Juggernog instantly
|
||||||
|
* Decreased player damage from 75 to 25
|
||||||
* Decreased startup time from 2 seconds to 0.5 seconds
|
* Decreased startup time from 2 seconds to 0.5 seconds
|
||||||
|
|
||||||
### Turret
|
### Turret
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
#include scripts/zm/replaced/_zm_power;
|
#include scripts/zm/replaced/_zm_power;
|
||||||
#include scripts/zm/replaced/_zm_powerups;
|
#include scripts/zm/replaced/_zm_powerups;
|
||||||
#include scripts/zm/replaced/_zm_pers_upgrades;
|
#include scripts/zm/replaced/_zm_pers_upgrades;
|
||||||
|
#include scripts/zm/replaced/_zm_traps;
|
||||||
#include scripts/zm/replaced/_zm_equipment;
|
#include scripts/zm/replaced/_zm_equipment;
|
||||||
#include scripts/zm/replaced/_zm_ai_basic;
|
#include scripts/zm/replaced/_zm_ai_basic;
|
||||||
|
|
||||||
@ -49,6 +50,7 @@ main()
|
|||||||
replaceFunc(maps/mp/zombies/_zm_powerups::insta_kill_powerup, scripts/zm/replaced/_zm_powerups::insta_kill_powerup);
|
replaceFunc(maps/mp/zombies/_zm_powerups::insta_kill_powerup, scripts/zm/replaced/_zm_powerups::insta_kill_powerup);
|
||||||
replaceFunc(maps/mp/zombies/_zm_powerups::double_points_powerup, scripts/zm/replaced/_zm_powerups::double_points_powerup);
|
replaceFunc(maps/mp/zombies/_zm_powerups::double_points_powerup, scripts/zm/replaced/_zm_powerups::double_points_powerup);
|
||||||
replaceFunc(maps/mp/zombies/_zm_pers_upgrades::is_pers_system_disabled, scripts/zm/replaced/_zm_pers_upgrades::is_pers_system_disabled);
|
replaceFunc(maps/mp/zombies/_zm_pers_upgrades::is_pers_system_disabled, scripts/zm/replaced/_zm_pers_upgrades::is_pers_system_disabled);
|
||||||
|
replaceFunc(maps/mp/zombies/_zm_traps::player_elec_damage, scripts/zm/replaced/_zm_traps::player_elec_damage);
|
||||||
replaceFunc(maps/mp/zombies/_zm_equipment::show_equipment_hint, scripts/zm/replaced/_zm_equipment::show_equipment_hint);
|
replaceFunc(maps/mp/zombies/_zm_equipment::show_equipment_hint, scripts/zm/replaced/_zm_equipment::show_equipment_hint);
|
||||||
replaceFunc(maps/mp/zombies/_zm_equipment::placed_equipment_think, scripts/zm/replaced/_zm_equipment::placed_equipment_think);
|
replaceFunc(maps/mp/zombies/_zm_equipment::placed_equipment_think, scripts/zm/replaced/_zm_equipment::placed_equipment_think);
|
||||||
replaceFunc(maps/mp/zombies/_zm_ai_basic::inert_wakeup, scripts/zm/replaced/_zm_ai_basic::inert_wakeup);
|
replaceFunc(maps/mp/zombies/_zm_ai_basic::inert_wakeup, scripts/zm/replaced/_zm_ai_basic::inert_wakeup);
|
||||||
|
32
scripts/zm/replaced/_zm_traps.gsc
Normal file
32
scripts/zm/replaced/_zm_traps.gsc
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
#include maps\mp\_utility;
|
||||||
|
#include common_scripts\utility;
|
||||||
|
#include maps\mp\zombies\_zm_utility;
|
||||||
|
|
||||||
|
player_elec_damage()
|
||||||
|
{
|
||||||
|
self endon( "death" );
|
||||||
|
self endon( "disconnect" );
|
||||||
|
|
||||||
|
if ( !isDefined( self.is_burning ) && is_player_valid( self ) )
|
||||||
|
{
|
||||||
|
self.is_burning = 1;
|
||||||
|
shocktime = 1.25;
|
||||||
|
|
||||||
|
if ( is_true( level.trap_electric_visionset_registered ) )
|
||||||
|
{
|
||||||
|
maps/mp/_visionset_mgr::vsmgr_activate( "overlay", "zm_trap_electric", self, shocktime, shocktime );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
self setelectrified( shocktime );
|
||||||
|
}
|
||||||
|
|
||||||
|
self shellshock( "electrocution", shocktime );
|
||||||
|
self playsound( "zmb_zombie_arc" );
|
||||||
|
radiusdamage( self.origin, 10, 25, 25 );
|
||||||
|
|
||||||
|
wait 0.1;
|
||||||
|
|
||||||
|
self.is_burning = undefined;
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user