1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-07 21:59:49 -05:00

Tranzit: make lamp post portals have a set destination each game

This commit is contained in:
Jbleezy 2023-12-28 01:28:13 -08:00
parent cb054b5a1f
commit cfcd71d2fd
2 changed files with 29 additions and 0 deletions

View File

@ -618,6 +618,7 @@
* Decreased zombie explosion max damage from 30 to 15 * Decreased zombie explosion max damage from 30 to 15
* Players can be revived in the fog easier * Players can be revived in the fog easier
* Lamp post portals stay active after activating once * Lamp post portals stay active after activating once
* Each lamp post portal teleports players to a set destination lamp post (randomizes each game)
* Decreased brightness at Power Station * Decreased brightness at Power Station
* Zombies killed by the bus no longer respawn * Zombies killed by the bus no longer respawn
* Zombies no longer spawn in the Prototype zone when in the Cornfield zone * Zombies no longer spawn in the Prototype zone when in the Cornfield zone

View File

@ -17,6 +17,21 @@ init()
level.screecher_cleanup = ::transit_screecher_cleanup; level.screecher_cleanup = ::transit_screecher_cleanup;
level.screecher_init_done = ::screecher_init_done; level.screecher_init_done = ::screecher_init_done;
level.portals = []; level.portals = [];
lights = getstructarray( "screecher_escape", "targetname" );
lights = array_randomize( lights );
for (i = 0; i < lights.size; i++)
{
dest_ind = i + 1;
if (dest_ind >= lights.size)
{
dest_ind = 0;
}
lights[i].dest_light = lights[dest_ind];
}
} }
screecher_init_done() screecher_init_done()
@ -74,4 +89,17 @@ portal_use(player)
player playsoundtoplayer("zmb_screecher_portal_warp_2d", player); player playsoundtoplayer("zmb_screecher_portal_warp_2d", player);
self thread teleport_player(player); self thread teleport_player(player);
playsoundatposition("zmb_screecher_portal_end", self.hole.origin); playsoundatposition("zmb_screecher_portal_end", self.hole.origin);
}
teleport_player( player )
{
if ( isdefined( self.dest_light ) )
{
playsoundatposition( "zmb_screecher_portal_arrive", self.dest_light.origin );
player maps\mp\zombies\_zm_gump::player_teleport_blackscreen_on();
player setorigin( self.dest_light.origin );
player notify( "used_screecher_hole" );
player maps\mp\zombies\_zm_stats::increment_client_stat( "screecher_teleporters_used", 0 );
player maps\mp\zombies\_zm_stats::increment_player_stat( "screecher_teleporters_used" );
}
} }