Raised This Month: $ Target: $400
 0% 

Check if he fired on PrimaryAttack post


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 11-30-2010 , 18:02   Check if he fired on PrimaryAttack post
Reply With Quote #1

I'm trying to find the best method of how know if the player fired, catching the event on Ham's PrimaryAttack. It's like the M3: If the player is underwater, PrimaryAttack is called but doesn't fire a bullet bcoz the engine blocks the shotgun's attack when player is underwater.

I thought in this methods, hope someone can tell me another one better than mines:

1) Check if EF_MUZZLEFLASH is on player's pev_effect
2) Use a global bar, and store ammo amount on PrimaryAttack pre. Then in PrimaryAttack post check if current bullets are different from global variable's value.

Thanks in advance.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
 



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 11:17.


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