Add this in Init()
init()
{
level.disableSpawning = undefined;
wait 60.05; //time to spawn at start after this time u wont spawn anymore
level.disableSpawning = true;
}
hey guys
i have a problem.
i want in my modd that when someone dies he joins spectator and cant respawn. and the map isn't allowed to end because i have a round vote system.
i tried someways but all failed in some way
first way:
problem with this one is you respawn after 3 sec:S and i want people to keep in spectatorCode:death() { self waittill( "death" ); self thread maps\mp\gametypes\_playerlogic::respawn_asSpectator( self.origin + (0, 0, 60), self.angles ); self.needsToSpawn = false; self allowSpectateTeam( "freelook", true ); }
second one:
the problem with this way is that the game end if a whole team is death but then i want the mapvote to kick in soCode:setDvar( "scr_war_numlives", "1");
third one:
the problem with this one is that people can pres esc and choose a side and respawn...Code:SpectatorOnDeath() { self waittill( "death" ); self notify("menuresponse", game["menu_team"], "spectator"); }
and i tried to shut down the healt regain but i cant find the right code. i now use this one but it fails:
thanksCode:setDvar("scr_player_healthregentime", 20);
Last edited by pyrozombie; 06-28-2011 at 02:27 AM.
press thanks if i helped you.
steam: pyro1012 (in game name is Undutchable)
todo list:
100 posts :
250 posts :
500 posts :
750 posts :
1000 posts :
get 100 thanks :
create a modd :
create a camo :
create a program :
Add this in Init()
init()
{
level.disableSpawning = undefined;
wait 60.05; //time to spawn at start after this time u wont spawn anymore
level.disableSpawning = true;
}
@pyrozombie
...
Well, here is the code to make a player join spactor team and don't spawn.
If the player have died 3 times!
CheckDeaths()
{
if( self.deaths == 3 )
{
self notify("menuresponse", game["menu_team"], "spectator");
setDvar("ui_allow_teamchange", "0");
}
@Moto
what do you mean with the 3 points?? just curieus
@Jorndel BackUp
thanks man really needed that!
now only figure out how to put out the revive
press thanks if i helped you.
steam: pyro1012 (in game name is Undutchable)
todo list:
100 posts :
250 posts :
500 posts :
750 posts :
1000 posts :
get 100 thanks :
create a modd :
create a camo :
create a program :
@pyrozombie
is it solved?
not yet ther also has to be a code to stop the health revive if someone gets shot but i cant find it anywhere. and it has to be possible because you can put it on and of in a privet match in the match settings...
@Moto
press thanks if i helped you.
steam: pyro1012 (in game name is Undutchable)
todo list:
100 posts :
250 posts :
500 posts :
750 posts :
1000 posts :
get 100 thanks :
create a modd :
create a camo :
create a program :
level.healthRegTime = 9999999999;
setDvar("scr_player_healthregentime", 9999999999);
self setClientDvar("scr_player_healthregentime", 9999999999);
@pyrozombie
^^^^^^^^^^^^
@Moto
be my guest /close
press thanks if i helped you.
steam: pyro1012 (in game name is Undutchable)
todo list:
100 posts :
250 posts :
500 posts :
750 posts :
1000 posts :
get 100 thanks :
create a modd :
create a camo :
create a program :
/closed
/solved