This patch adds two cheat protected cvars:
sv_packetdelay
cl_packetdelay
This functionality is a clone of the cvars as they exist in Wolf: ET. If set to > 0 they will delay transmission of packets from their respective engine components by the specified number of milliseconds. These cvars are obviously only useful for development and testing. I'm adding them to work on an unlagged implementation in the server engine.
Note that ET also has two more cvars sv_packetloss and cl_packetloss, but these don't seem necessary since ioquake3 already has com_dropsim which seems to have roughly the same functionality.
Created attachment 923[details]
cl_packetdelay and sv_packetdelay
I have not yet tested cl_packetdelay, but I think it should work. sv_packetdelay works fine.
Setting a QA contact on all ioquake3 bugs, even resolved ones. Sorry if you get a flood of email from this, it should only happen once. Apologies for the incovenience.
--ryan.
Created attachment 923 [details] cl_packetdelay and sv_packetdelay I have not yet tested cl_packetdelay, but I think it should work. sv_packetdelay works fine.
Created attachment 926 [details] cl_packetdelay and sv_packetdelay cl_packetdelay wasn't working in the last patch (forgot an else).