View Single Post
WATCH_D0GS UNITED
Senior Member
Join Date: Jan 2023
Old 04-04-2023 , 21:30   Re: [TUT] Properly Detect Weapon Shot (Every Shot)
Reply With Quote #7

@SVC, thanks for dedicating your time.


Ham_Weapon_PrimaryAttack (Pre) can be really considered enough for detecting weapon attack.
But we do not want to detect weapon attack, we want to accurately detect the weapon shot moment.

The less time the functions are active, the less CPU/RAM usage and the higher the fps rate.

Below is a theoretical comparison based on our tests of how much time a function is active every time it is executed with Ham_Weapon_PrimaryAttack(Pre) and with the new shot detection method:

Ham_Weapon_PrimaryAttack_Pre: 0.099s
New Shot Detector: 0.003s
WATCH_D0GS UNITED is offline