1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-07-01 17:41:13 -05:00

Who's Who: change revive waypoint icon

Who's Who: revive waypoint shows offscreen
Who's Who: fix revive speed
This commit is contained in:
Jbleezy
2023-04-09 03:49:03 -07:00
parent f88f06bb10
commit a37e0d3202
5 changed files with 93 additions and 4 deletions

View File

@ -335,6 +335,8 @@
### Who's Who ### Who's Who
* Gain all other perks the player had before going down when entering Who's Who mode * Gain all other perks the player had before going down when entering Who's Who mode
* Revive twice as fast when in Who's Who mode * Revive twice as fast when in Who's Who mode
* Changed revive waypoint icon to Who's Who perk icon
* Revive waypoint shows offscreen
* No longer gives the player Claymores when entering Who's Who mode if the player purchased Claymores * No longer gives the player Claymores when entering Who's Who mode if the player purchased Claymores
### Electric Cherry ### Electric Cherry

View File

@ -3878,8 +3878,6 @@ whos_who_spawn_changes()
{ {
self waittill("fake_revive"); self waittill("fake_revive");
self.pers_upgrades_awarded["revive"] = 1;
self takeweapon("frag_grenade_zm"); self takeweapon("frag_grenade_zm");
self takeweapon("claymore_zm"); self takeweapon("claymore_zm");
self giveweapon("sticky_grenade_zm"); self giveweapon("sticky_grenade_zm");
@ -3891,8 +3889,6 @@ whos_who_spawn_changes()
} }
self waittill("chugabud_effects_cleanup"); self waittill("chugabud_effects_cleanup");
self.pers_upgrades_awarded["revive"] = 0;
} }
} }

View File

@ -3,6 +3,88 @@
#include maps\mp\zombies\_zm_utility; #include maps\mp\zombies\_zm_utility;
#include maps\mp\zombies\_zm_chugabud; #include maps\mp\zombies\_zm_chugabud;
chugabud_fake_death()
{
level notify( "fake_death" );
self notify( "fake_death" );
self takeallweapons();
self allowstand( 0 );
self allowcrouch( 0 );
self allowprone( 1 );
self setstance( "prone" );
self.ignoreme = 1;
self enableinvulnerability();
if ( self is_jumping() )
{
while ( self is_jumping() )
wait 0.05;
}
self freezecontrols( 1 );
}
chugabud_corpse_revive_icon( player )
{
self endon( "death" );
height_offset = 30;
index = player.clientid;
self.revive_waypoint_origin = spawn( "script_model", self.origin + (0, 0, height_offset) );
self.revive_waypoint_origin setmodel( "tag_origin" );
self.revive_waypoint_origin linkto( self );
hud_elem = newhudelem();
self.revive_hud_elem = hud_elem;
hud_elem.alpha = 1;
hud_elem.archived = 1;
hud_elem.hidewheninmenu = 1;
hud_elem.immunetodemogamehudsettings = 1;
hud_elem setwaypoint( 1, "specialty_chugabud_zombies" );
hud_elem settargetent( self.revive_waypoint_origin );
}
chugabud_corpse_cleanup( corpse, was_revived )
{
self notify( "chugabud_effects_cleanup" );
if ( was_revived )
{
playsoundatposition( "evt_ww_appear", corpse.origin );
playfx( level._effect["chugabud_revive_fx"], corpse.origin );
}
else
{
playsoundatposition( "evt_ww_disappear", corpse.origin );
playfx( level._effect["chugabud_bleedout_fx"], corpse.origin );
self notify( "chugabud_bleedout" );
}
if ( isdefined( corpse.revivetrigger ) )
{
corpse notify( "stop_revive_trigger" );
corpse.revivetrigger delete();
corpse.revivetrigger = undefined;
}
if ( isdefined( corpse.revive_hud_elem ) )
{
corpse.revive_hud_elem destroy();
corpse.revive_hud_elem = undefined;
}
if ( isdefined( corpse.revive_waypoint_origin ) )
{
corpse.revive_waypoint_origin destroy();
corpse.revive_waypoint_origin = undefined;
}
self.loadout = undefined;
wait 0.1;
corpse delete();
self.e_chugabud_corpse = undefined;
}
chugabud_bleed_timeout( delay, corpse ) chugabud_bleed_timeout( delay, corpse )
{ {
self endon( "player_suicide" ); self endon( "player_suicide" );

View File

@ -14,6 +14,10 @@ revive_do_revive( playerbeingrevived, revivergun )
{ {
revivetime *= 0.5; revivetime *= 0.5;
} }
if ( isdefined( self.e_chugabud_corpse ) )
{
revivetime *= 0.5;
}
timer = 0; timer = 0;
revived = 0; revived = 0;
playerbeingrevived.revivetrigger.beingrevived = 1; playerbeingrevived.revivetrigger.beingrevived = 1;

View File

@ -33,6 +33,9 @@ main()
replaceFunc(maps\mp\zm_highrise_buildables::init_buildables, scripts\zm\replaced\zm_highrise_buildables::init_buildables); replaceFunc(maps\mp\zm_highrise_buildables::init_buildables, scripts\zm\replaced\zm_highrise_buildables::init_buildables);
replaceFunc(maps\mp\zm_highrise_buildables::include_buildables, scripts\zm\replaced\zm_highrise_buildables::include_buildables); replaceFunc(maps\mp\zm_highrise_buildables::include_buildables, scripts\zm\replaced\zm_highrise_buildables::include_buildables);
replaceFunc(maps\mp\zm_highrise_elevators::faller_location_logic, scripts\zm\replaced\zm_highrise_elevators::faller_location_logic); replaceFunc(maps\mp\zm_highrise_elevators::faller_location_logic, scripts\zm\replaced\zm_highrise_elevators::faller_location_logic);
replaceFunc(maps\mp\zombies\_zm_chugabud::chugabud_fake_death, scripts\zm\replaced\_zm_chugabud::chugabud_fake_death);
replaceFunc(maps\mp\zombies\_zm_chugabud::chugabud_corpse_revive_icon, scripts\zm\replaced\_zm_chugabud::chugabud_corpse_revive_icon);
replaceFunc(maps\mp\zombies\_zm_chugabud::chugabud_corpse_cleanup, scripts\zm\replaced\_zm_chugabud::chugabud_corpse_cleanup);
replaceFunc(maps\mp\zombies\_zm_chugabud::chugabud_bleed_timeout, scripts\zm\replaced\_zm_chugabud::chugabud_bleed_timeout); replaceFunc(maps\mp\zombies\_zm_chugabud::chugabud_bleed_timeout, scripts\zm\replaced\_zm_chugabud::chugabud_bleed_timeout);
replaceFunc(maps\mp\zombies\_zm_equip_springpad::springpadthink, scripts\zm\replaced\_zm_equip_springpad::springpadthink); replaceFunc(maps\mp\zombies\_zm_equip_springpad::springpadthink, scripts\zm\replaced\_zm_equip_springpad::springpadthink);
replaceFunc(maps\mp\zombies\_zm_weap_slipgun::init, scripts\zm\replaced\_zm_weap_slipgun::init); replaceFunc(maps\mp\zombies\_zm_weap_slipgun::init, scripts\zm\replaced\_zm_weap_slipgun::init);
@ -46,6 +49,8 @@ main()
init() init()
{ {
precacheshader( "specialty_chugabud_zombies" );
level.zombie_init_done = ::zombie_init_done; level.zombie_init_done = ::zombie_init_done;
level.special_weapon_magicbox_check = ::highrise_special_weapon_magicbox_check; level.special_weapon_magicbox_check = ::highrise_special_weapon_magicbox_check;
level.check_for_valid_spawn_near_team_callback = ::highrise_respawn_override; level.check_for_valid_spawn_near_team_callback = ::highrise_respawn_override;