No server rejoin after player death
by Buddy Lednum · in Torque Game Engine · 01/07/2004 (11:46 pm) · 5 replies
I have been searching the forums and have yet to find even a partial topic relating to this...
Is there a way to keep a player from rejoining a mission once his character is killed ?
This is for a multiplayer game with teams, and i need to keep a player from rejoining once that player has been eliminated.
Once the mission is complete though the player should be allowed to join the next mission.
I would be greatful for any help or at least a starting point.
Thanks,
BL, ISGames
Is there a way to keep a player from rejoining a mission once his character is killed ?
This is for a multiplayer game with teams, and i need to keep a player from rejoining once that player has been eliminated.
Once the mission is complete though the player should be allowed to join the next mission.
I would be greatful for any help or at least a starting point.
Thanks,
BL, ISGames
#2
01/08/2004 (12:44 am)
Look in game.cs, thats where you need to play. All you need is to find where it creates a player and have some counter check which gets reset on a map cycle per player.
#3
Its just a simple flag value to say "You have a life to lose" which you can set to false (when someone dies, or if they join whilst the game is in progress).
At the beginning of the mission warmup time, you set all connected clients to havelife = true
And simply set any new connects (or anyone who dies) to false.
Then if someone wants to spawn, you do a check (if havelife == true) and if that fails, dont spawn em.
01/08/2004 (12:49 am)
Labbie, I suspect this is more of a counterstrike thing, where there is a mission time and he simply wants people to stay dead during that time, but respawn at the beginning of the next time.Its just a simple flag value to say "You have a life to lose" which you can set to false (when someone dies, or if they join whilst the game is in progress).
At the beginning of the mission warmup time, you set all connected clients to havelife = true
And simply set any new connects (or anyone who dies) to false.
Then if someone wants to spawn, you do a check (if havelife == true) and if that fails, dont spawn em.
#4
01/08/2004 (10:15 am)
Perhapse the use of re-join threw me off... I was presuming the use of what you described. Thought he was looking for a way to keep people from bypassing that.
#5
It is using an sql database for part of the front end... so i can just make it send a boolean to a field... and after death it would change it until the mission ended... then it would reset all players... i have it right on the tip of my brain... thanks for the input... it gives me a few directions to try...
it's funny how others can come up with such a simple answer ... i was making it over complicated... i am greatful for the new eyes taking a look... again thanks to all for their time.... when i do get a final solution i will post it so others can use it ... thanks again
01/08/2004 (7:02 pm)
Kewl... thats just what i needed...It is using an sql database for part of the front end... so i can just make it send a boolean to a field... and after death it would change it until the mission ended... then it would reset all players... i have it right on the tip of my brain... thanks for the input... it gives me a few directions to try...
it's funny how others can come up with such a simple answer ... i was making it over complicated... i am greatful for the new eyes taking a look... again thanks to all for their time.... when i do get a final solution i will post it so others can use it ... thanks again
Torque Owner Harold "LabRat" Brown
Using a combination of a login server and a Unique ID you could then prevent someone from quitting and re-joining the server to get a "new life". You could also use a GUID to keep people from changing teams by quitting and rejoining.