But... Sometimes I want to change race so I spawn next round as something else but dont get killed.
Also couldnt that be abused like when you are in a fire fight you change race in the middle of it to get a respawn?
Im sure zero meant that this would occur when u 'successfully' changerace using the current conditions we have. As in u joined a team and got booted off a restricted race then joined got another race.
But zero, this is very risky, 3 things u need to consider:
the 'kills' shouldnt go to stats...
If the player is holding any items , they need to get them back,
and finally and most importantly, u need to be careful of round wins.../For example, im with a vagalion, got booted off, had to changerace.
As soon as i changed race, my last teammate alive, died, and now ir algorithm is goig to kill me, in order to respawn me, but that will trigger enemy team win, because at one time, all my team was dead including me,,,
i hope uUnderstood what i mean?
Its just like how currently u die as magician, being the last one on ur team, the bird procs and u respawn, but ur team already 'lost the round' because ur death triggered the round end, for all u know ur bird skills would have raped the team that round, but its too late.
So this REALLY need to be accounted for hanging race and gettig killed+respawned.
that would work.
a better solution, if possible,
any chance that you can rig it so that it DOESNT spawn you in the first place if you're on a limited race already taken?
1- you join the server,
2- you pick a race (if u;re smart),
3- u want to join (say) CT, so u press "2",
4- then it takes u to that submenu asking for what player model to use.
THATS WHERE YOU COME IN:
Any chance that at THAT time, you make a check to see if the restricted race they're hopping on is taken? because at that time, u ARE part of the team, so the restrictions apply on you, but u still havent spawned yet. perfect time to do ur mojo.
5- u could either ask them to change race to something that works, after 10 seconds, it just spawns them then with a random starter race.?
6- they play their chosen race, or forced race for round 1 and change shit. but this will also avoid ppl exploiting countdown races like eye rae etc...
teh difference between this and your solution above is that this way we can avoid people being forced to play round 1 on a race they dnt like (say low level undead) just because soemone jacked their race. then again smart people check teams first before picking a race and compensate first round... ur call.