Skip to content

Commit e3491db

Browse files
committed
Turn into ghost permanently 0 lives
1 parent cef87fe commit e3491db

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • scripts/vscripts/tf2ware_ultimate/specialrounds

scripts/vscripts/tf2ware_ultimate/specialrounds/wipeout.nut

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,11 @@ function OnMinigameEnd()
258258
foreach(player in Wipeout_Spectators)
259259
{
260260
//Ware_PlayGameSound(player, "victory") // there's just a weird silence without this
261-
player.RemoveCond(TF_COND_HALLOWEEN_GHOST_MODE)
261+
262+
local lives = Ware_GetPlayerSpecialRoundData(player).lives
263+
if(lives > 0)
264+
player.RemoveCond(TF_COND_HALLOWEEN_GHOST_MODE)
265+
262266
player.SetMoveType(MOVETYPE_WALK, 0)
263267
player.SetCollisionGroup(COLLISION_GROUP_PUSHAWAY)
264268
player.RemoveCond(TF_COND_HALLOWEEN_KART)

0 commit comments

Comments
 (0)