GuskiS / Trouble-in-Terrorist-Town

Trouble in Terrorist Town for Counter-Strike 1.6
6 stars 7 forks source link

Players dying during GAME_PREPARING causes problems #14

Open Maxi605 opened 6 years ago

Maxi605 commented 6 years ago

There's a bug when somebody dies before the round starts they can be Traitor or Detective, if there's only people for 1 traitor to be alive and whoever died gets to be that traitor then the round is bugged without a traitor

GuskiS commented 6 years ago

There are 2 ways how to fix this: 1) Remove damage while gamemode is GAME_PREPARATION. 2) Add alive check to get_players within core.

1st is simplest one. 2nd requires quite a bit of work and testing and rethink for all the edge cases.

Maxi605 commented 6 years ago

I think the second is the best way to do it, becouse removing damage doesn't block kill command or slay, there's others plugins to kill the player.