1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-23 13:40:22 -05:00

Meat powerup: fix meat stink player fx not being removed

This commit is contained in:
Jbleezy
2023-03-15 16:24:29 -07:00
parent c4263d9689
commit 714a95459d

View File

@ -208,7 +208,7 @@ meat_stink( who )
}
}
who thread maps\mp\gametypes_zm\zgrief::meat_stink_player_create();
who thread meat_stink_player_create();
who thread meat_stink_cleanup_on_downed();
@ -354,7 +354,7 @@ meat_stink_player( who )
player print_meat_msg(who, "has");
}
who thread maps\mp\gametypes_zm\zgrief::meat_stink_player_create();
who thread meat_stink_player_create();
who waittill_any_or_timeout( 30, "disconnect", "player_downed", "bled_out" );
players = get_players();
foreach ( player in players )
@ -365,6 +365,19 @@ meat_stink_player( who )
level.meat_player = undefined;
}
meat_stink_player_create()
{
self maps\mp\zombies\_zm_stats::increment_client_stat( "contaminations_received" );
self endon( "disconnect" );
self endon( "death" );
tagname = "J_SpineLower";
self.meat_stink_3p = spawn( "script_model", self gettagorigin( tagname ) );
self.meat_stink_3p setmodel( "tag_origin" );
self.meat_stink_3p linkto( self, tagname );
playfxontag( level._effect["meat_stink_torso"], self.meat_stink_3p, "tag_origin" );
self setclientfieldtoplayer( "meat_stink", 1 );
}
print_meat_msg(meat_player, verb)
{
color = "";