Thread
:
[TUT] Replace Weapon Firing Sounds
View Single Post
Depresie
Veteran Member
Join Date: Nov 2013
08-23-2017 , 07:53 Re: [TUT] Replace Weapon Firing Sounds
#
25
Quote:
Originally Posted by
CrazY.
Probably this way don't will work.
This is the correct way:
1° Hook FM_UpdateClientData (Post) and set_cd(cd_handle, CD_flNextAttack, get_gametime() + 0.001);
2° Hook FM_PrecacheEvent/FM_PlaybackEvent, precache the gun event (cstrike/events) and then do playback_event (engine);
3° Hook weapon actions (Ham_Weapon_[PrimaryAttack|SecondaryAttack|Reload] | Ham_Item_[Deploy|Holster] etc.), play animations and custom sounds;
Too complicated to explain now without time, but it's a base.
It's a good idea to make an API
, probrably when I finish AvP or some other developer take this job...
Doesn't make any sense...
__________________
Click
Depresie
View Public Profile
Send a private message to Depresie
Find More Posts by Depresie