mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-07-07 20:38:09 -05:00
Denizens: decrease health
This commit is contained in:
@ -10,6 +10,35 @@
|
||||
#include maps\mp\zm_transit;
|
||||
#include maps\mp\zm_transit_ai_screecher;
|
||||
|
||||
init()
|
||||
{
|
||||
level.screecher_should_burrow = ::screecher_should_burrow;
|
||||
level.screecher_should_runaway = ::screecher_should_runaway;
|
||||
level.screecher_cleanup = ::transit_screecher_cleanup;
|
||||
level.screecher_init_done = ::screecher_init_done;
|
||||
level.portals = [];
|
||||
}
|
||||
|
||||
screecher_init_done()
|
||||
{
|
||||
self endon( "death" );
|
||||
|
||||
self.maxhealth = 150;
|
||||
self.health = self.maxhealth;
|
||||
|
||||
while ( true )
|
||||
{
|
||||
ground_ent = self getgroundent();
|
||||
|
||||
if ( isdefined( ground_ent ) && ground_ent == level.the_bus )
|
||||
{
|
||||
self dodamage( self.health + 666, self.origin );
|
||||
}
|
||||
|
||||
wait 0.1;
|
||||
}
|
||||
}
|
||||
|
||||
player_wait_land()
|
||||
{
|
||||
self endon( "disconnect" );
|
||||
|
@ -36,6 +36,7 @@ main()
|
||||
replaceFunc(maps\mp\zm_transit_gamemodes::init, scripts\zm\replaced\zm_transit_gamemodes::init);
|
||||
replaceFunc(maps\mp\zm_transit_classic::inert_zombies_init, scripts\zm\replaced\zm_transit_classic::inert_zombies_init);
|
||||
replaceFunc(maps\mp\zm_transit_utility::solo_tombstone_removal, scripts\zm\replaced\zm_transit_utility::solo_tombstone_removal);
|
||||
replaceFunc(maps\mp\zm_transit_ai_screecher::init, scripts\zm\replaced\zm_transit_ai_screecher::init);
|
||||
replaceFunc(maps\mp\zm_transit_ai_screecher::player_wait_land, scripts\zm\replaced\zm_transit_ai_screecher::player_wait_land);
|
||||
replaceFunc(maps\mp\zm_transit_bus::bussetup, scripts\zm\replaced\zm_transit_bus::bussetup);
|
||||
replaceFunc(maps\mp\zm_transit_bus::busscheduleadd, scripts\zm\replaced\zm_transit_bus::busscheduleadd);
|
||||
|
Reference in New Issue
Block a user