View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-21-2020 , 02:34   Re: [ANY] Spray Exploit Fixer (1.6) [15-Jul-2020]
Reply With Quote #27

OnFileReceive happens when a file is being sent, not yet received by the server (so no file exists and cannot be checked). OnFileSend I guess only happens when clients request the file (so would duplicate checks unless storing a flag of known checked ones basically) so gone with detour when the file has finished being sent so can check only on send and if bad delete. Pretty sure post hook detour not required but I gone with checking there instead of pre hook just to make sure games done with it and file is valid.
__________________

Last edited by Silvers; 07-21-2020 at 02:38.
Silvers is offline