Lonsfor
906444ae08
change ingame() to only check if there is 2 players in game
...
as ingame() is only used to check if there is more than 1 player then it is changed to not look for more than 2 since its not needed. name changed to reflect that.
2022-05-14 08:02:05 +02:00
Lonsfor
405a0e50f2
save player iteration on thinker
...
we know that there are no more than one player as `disable` is false and you know there is 1 if `p` exist
2022-05-14 07:41:40 +02:00
Lonsfor
6ea3341b06
better init logic + make sure we are not in battle
2022-05-14 07:33:03 +02:00
Lonsfor
23a8373230
only look for scoreTable once
2022-04-30 23:11:52 +02:00
Lonsfor
14f8769d93
dont do an iteration when the player is already known
2022-04-30 22:56:19 +02:00
Lonsfor
5080672f7a
Update 'leaderboard.lua'
2022-04-30 22:49:28 +02:00
Lonsfor
5790a3c020
Dont iterate players if afk is disabled
2022-04-30 21:30:34 +02:00
Lonsfor
e3c870eefd
Prevent overflow of minutes
2022-04-30 21:00:55 +02:00
Lonsfor
41b152ccf6
add VoteThinker hook
2022-04-30 20:55:38 +02:00
Lonsfor
de63c4b2be
Mmove local cv_teamchange to the top scope
...
No need to constantly look up the cvar when it can be saved
2022-04-30 20:52:42 +02:00