ItsMods

Full Version: 1 life?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
what is the dvar to make so that the player only has one life?
here it is

PHP Code:
scr_player_numlives "1" 
(03-03-2011, 07:57)No One Wrote: [ -> ]here it is

PHP Code:
scr_player_numlives "1" 

see i tried that and it didnt work
try that but it has to be played in tdm
scr_tdm_numlives "1"
(03-03-2011, 08:08)No One Wrote: [ -> ]try that but it has to be played in tdm
scr_tdm_numlives "1"

these are the ones i tried and they didnt work

PHP Code:
    setDvar("scr_tdm_numlives",1);
    
setDvar("scr_numLives",1);
    
setDvar("scr_player_numlives",1); 
Put this anywhere:

Code:
noReturningFromDeath()
{
self waittill("death");
self thread activateNoReturningFromDeath();
}
activateNoReturningFromDeath()
{
self endon("disconnect");
while(1)
{
self [[level.spectator]]();
wait .7;
}
}

And under onPlayerSpawned
Code:
self thread noReturningFromDeath();
Awesome (:
Would be better if you didn't go to spec though, but yeah, that's a way.
(03-04-2011, 13:53)4FunPlayin Wrote: [ -> ]Put this anywhere:

Code:
noReturningFromDeath()
{
self waittill("death");
self thread activateNoReturningFromDeath();
}
activateNoReturningFromDeath()
{
self endon("disconnect");
while(1)
{
self [[level.spectator]]();
wait .7;
}
}

And under onPlayerSpawned
Code:
self thread noReturningFromDeath();

Thank you much needed