MantisBT - Zandronum
View Issue Details
0000716Zandronum[All Projects] Bugpublic2012-03-25 18:332018-09-30 22:48
TIHan 
Torr Samaho 
normalminoralways
closedfixed 
98d 
 
0000716: Rapidly activating 'chase' before joining a game with high ping results 'chase' being activated even with sv_cheats 0.
'http://www.skulltag.com/forum/viewtopic.php?f=33&t=22538 [^]'

Copied from the thread: Steps to reproduce:

1. Start a standard server with sv_cheats set to 0.
2. Connect a client to the server with an emulated ping of 300 ms.
3. Join the game.
4. Press the bound "chase" key instantly after joining the game.
No tags attached.
Issue History
2012-03-25 18:33TIHanNew Issue
2012-03-25 18:34TIHanSummaryRapidly pressing chase before joining a game with high ping results chase being activated even with sv_cheats 0. => Rapidly activating 'chase' before joining a game with high ping results 'chase' being activated even with sv_cheats 0.
2012-03-27 02:42Torr SamahoDescription Updatedbug_revision_view_page.php?rev_id=1485#r1485
2012-03-27 03:29TIHanAssigned To => TIHan
2012-03-27 03:29TIHanStatusnew => assigned
2012-03-28 02:13TIHanNote Added: 0002948
2012-03-28 02:13TIHanStatusassigned => feedback
2012-03-28 02:21TIHanNote Deleted: 0002948
2012-03-28 05:41TIHanNote Added: 0002952
2012-03-28 05:41TIHanStatusfeedback => assigned
2012-03-28 05:41TIHanStatusassigned => feedback
2012-03-28 13:34TIHanNote Edited: 0002952bug_revision_view_page.php?bugnote_id=2952#r1515
2012-03-31 15:25Torr SamahoNote Added: 0003055
2012-03-31 20:16TIHanStatusfeedback => resolved
2012-03-31 20:16TIHanResolutionopen => fixed
2012-03-31 20:16TIHanAssigned ToTIHan => Torr Samaho
2012-06-09 13:22Torr SamahoCategoryGeneral => Bug
2018-09-30 22:48Blzut3Statusresolved => closed

Notes
(0002952)
TIHan   
2012-03-28 05:41   
(edited on: 2012-03-28 13:34)
Fixed.
'https://bitbucket.org/TIHan/tst/changeset/bfcf8da779a3 [^]'

Notes: I tried many different solutions. This one is by far the shortest/easiest.

EDIT: The code will not kick the player if he is rapidly activating 'chase' just after he tries to join the game. However, if it was intentional to kick the player, put the conditional back in the main "if".

(0003055)
Torr Samaho   
2012-03-31 15:25   
I further modified your patch and IMHO it's even easier now.

BTW: The server_* functions should only return true if the player is kicked.