Raised This Month: $51 Target: $400
 12% 

Ham_Weapon_PrimaryAttack - Tests help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 11-09-2009 , 18:15   Ham_Weapon_PrimaryAttack - Tests help
Reply With Quote #1

hey, so I did some tests with Ham_Weapon_PrimaryAttack last night. I was playing to see what it does exactly. From what I've seen, When you shoot, it is hooked and ran. But then I noticed, if you HOLD the PrimaryAttack, it doesn't necessarily mean your shooting. For example, if your gun doesn't have ammo, it clicks. But if your holding a pistol and decide to hold shoot, it just keeps firing off that you shot...

Any ideas to block that for like pistols? Thanks
Styles is offline
Send a message via AIM to Styles
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 11-09-2009 , 18:37   Re: Ham_Weapon_PrimaryAttack - Tests help
Reply With Quote #2

i suppose u could do it the fail way and get thhe weapons ammo. Check if its 0 and do what u want

Some1 elsewill probly come up with something better
__________________
minimiller is offline
Send a message via MSN to minimiller
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 11-09-2009 , 18:41   Re: Ham_Weapon_PrimaryAttack - Tests help
Reply With Quote #3

I though of that, but the issue is, even if you have 11shots left in a pistol and hold shoot, it still is triggered because it's InPrimary, meaning while you hold it lol. I was trhing to think, if it's a pistol, and the last button wasn't IN_ATTACK and then for automated weaons, if the ammo was 0, then stop.
Styles is offline
Send a message via AIM to Styles
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-09-2009 , 19:37   Re: Ham_Weapon_PrimaryAttack - Tests help
Reply With Quote #4

Check HLSDK weapons.cpp, you will understand better.
If you want to know some offsets, see my weapon maxclip plugin (maybe also bpammo features).
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 11-09-2009 , 20:10   Re: Ham_Weapon_PrimaryAttack - Tests help
Reply With Quote #5

thx ill take a look.
Styles is offline
Send a message via AIM to Styles
Reply



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 18:26.


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