TTT-2 / ttt2-role_hit

This is the "Hitman" role for TTT2
2 stars 5 forks source link

ConVar added to allow players to choose wether or not a spy should be able to be a hitmans target #10

Closed Pustekuchen98 closed 4 years ago

Pustekuchen98 commented 4 years ago

The ability to remove the spy from becoming a hitmans target was requested by some users. I added a ConVar instead of hardcoding it, so players that liked the old behaviour can still use it.

ConVar: ttt2_hitman_target_can_be_spy (def. 0)

Alf21 commented 4 years ago

If that's still a thing, the convar should be cached outside the loop and integrated directly into the checks instead of code duplication.

Alf21 commented 4 years ago

Reopen, if it's still a requested feature, then we can continue discussing for the best solution. I've already added my requests.