Solvedsome quick questions

Posts 111 of 11 · Page 1 of 1
some quick questions
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:
Code:
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 );


}
problem with this one is you respawn after 3 sec:S and i want people to keep in spectator

second one:
Code:
setDvar( "scr_war_numlives", "1");
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 so

third one:
Code:
SpectatorOnDeath()
{
	self waittill( "death" );
	self notify("menuresponse", game["menu_team"], "spectator");
}
the problem with this one is that people can pres esc and choose a side and respawn...


and i tried to shut down the healt regain but i cant find the right code. i now use this one but it fails:
Code:
setDvar("scr_player_healthregentime", 20);
thanks
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;
}
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
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
level.healthRegTime = 9999999999;
setDvar("scr_player_healthregentime", 9999999999);
self setClientDvar("scr_player_healthregentime", 9999999999);
/closed
/solved
Posts 111 of 11 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?