Quote:
Originally Posted by CrimsonGT
PreThink occurs prior to any action being sent to the client. Using OnPlayerRunCmd is too late as the client has already started predicting the action, and while it wont actually happen they see it start. For example, if you block attack they will see the gun fire but it wont actually fire on the server.
|
Yeap, I know that. But anyway, PreThink fires before OnPlayerRunCmd in the same frame, right? So it doesn't matter for client which of them fired the first because AFAIK client starts prediction without server permission. So changing buttons in PreThink does the same effect as in OnPlayerRunCmd. But OnPlayerRunCmd is built in the core and can be used without extension.
Or PreThink can actually block predictable buttons without lag for client? If this is true I can't imagine how prediction system works.
__________________