Thread
:
[TUT] Replace Weapon Firing Sounds
View Single Post
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
08-22-2017 , 08:47 Re: [TUT] Replace Weapon Firing Sounds
#
23
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...
Quote:
weapon prediction override
__________________
Quote:
Originally Posted by
joropito
You're right Metalicross
meTaLiCroSS
View Public Profile
Send a private message to meTaLiCroSS
Find More Posts by meTaLiCroSS