Raised This Month: $183 Target: $400

[TFC] Hamsandwich hook - Ham_Weapon_PrimaryAttack

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Join Date: Jan 2015
Old 01-11-2021 , 12:47   [TFC] Hamsandwich hook - Ham_Weapon_PrimaryAttack
Reply With Quote #1

Hey guys;

Why is it that when i hook Ham_Weapon_PrimaryAttack that i gets called each frame?
According to the source code the primary attack should ONLY trigger once the weapon is inattack AND the cooldown is waited out.
So why would it trigger?

The hook is done in TFC
RegisterHam(Ham_Weapon_PrimaryAttack,"tf_weap on_rpg,"myFunc")

that function would ge called way too many times.
Is the function memory location bugged or am i misunderstanding something?

Have a nice day ;)
Vancold is offline

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 07:41.

Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode