Detect Reloading Weapons
how do we detect when weapon is actually being reloaded? this code kinda fail cause it checks for reload button press..weapons won't be reloaded when ammo is full..
Code:
|
Re: Detect Reloading Weapons
|
Re: Detect Reloading Weapons
sorry..but ven's codes look too complicated for me..can you show a simplified example?
|
Re: Detect Reloading Weapons
You may want to try Ham using Ham_Weapon_Reload, if I understand what you want.
|
Re: Detect Reloading Weapons
Quote:
Code:
|
Re: Detect Reloading Weapons
You can try that:
Code:
|
Re: Detect Reloading Weapons
nice! thanks so much arshine! that works..
if i want to replace that spk command with emit sound, is this correct? Code:
emit_sound(i_Ent, CHAN_AUTO, SoundList[ random_num( 0, sizeof SoundList - 1 ) ], 1.0, ATTN_NORM, 0, PITCH_NORM) |
Re: Detect Reloading Weapons
Use id instead. Also ; don't forget to precache the sounds and emit_sound supports only wavs.
|
Re: Detect Reloading Weapons
how do i add ID in the Event_OnReload?
Code:
but that failed to compile..and one more what's the diff CHAN_AUTO with CHAN_STATIC? |
Re: Detect Reloading Weapons
pev ( i_Ent , pev_owner )
|
| All times are GMT -4. The time now is 01:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.