Raised This Month: $ Target: $400
 0% 

Detect Reloading Weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mlk27
Veteran Member
Join Date: May 2008
Old 01-30-2009 , 22:19   Re: Detect Reloading Weapons
Reply With Quote #10

how do i add ID in the Event_OnReload?

Code:
public Event_OnReload ( const i_Ent ) {     if ( UTIL_IsWeaponReloading ( pev ( i_Ent , pev_owner ), i_Ent ) && get_gametime() > g_NextReloadSound[id] )     {         emit_sound(id, CHAN_VOICE, SoundList[ random_num( 0, sizeof SoundList - 1 ) ], 1.0, ATTN_NORM, 0, PITCH_NORM) //id?                 g_NextReloadSound[id] = get_gametime() + 5.0     } }

but that failed to compile..and one more what's the diff CHAN_AUTO with CHAN_STATIC?

Last edited by Mlk27; 01-30-2009 at 22:25.
Mlk27 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 01:49.


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