AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help me Gonden AK (https://forums.alliedmods.net/showthread.php?t=240279)

felipemilralze 05-11-2014 22:04

Help me Gonden AK
 
golden ak emit sound?

link https://forums.alliedmods.net/showthread.php?t=91719

DavidJr 05-11-2014 22:50

Re: Help me Gonden AK
 
What do you want? Explain better

meTaLiCroSS 05-11-2014 22:53

Re: Help me Gonden AK
 
Do you want to override original fire sound? Because it's not possible (without blocking client-side prediction)

ezio_auditore 05-12-2014 12:10

Re: Help me Gonden AK
 
Quote:

Originally Posted by meTaLiCroSS (Post 2136612)
Do you want to override original fire sound? Because it's not possible (without blocking client-side prediction)

I am experienced with extra weapons / superpowers but haven't did this yet.
when you emit a sound, it plays with the original one.

felipemilralze 05-12-2014 15:42

Re: Help me Gonden AK
 
Quote:

Originally Posted by meTaLiCroSS (Post 2136612)
Do you want to override original fire sound? Because it's not possible (without blocking client-side prediction)

Yes, if anyone can help me post the code

.Dare Devil. 05-12-2014 15:53

Re: Help me Gonden AK
 
Quote:

Originally Posted by meTaLiCroSS (Post 2136612)
Do you want to override original fire sound? Because it's not possible (without blocking client-side prediction)

I was able to block weapon fire. ( frost nade, thats all i can say )
So all we have to do is recreate traceline, animation and sound and there you have it.
Costom weapon fire sound.

meTaLiCroSS 05-12-2014 19:56

Re: Help me Gonden AK
 
Quote:

Originally Posted by .Dare Devil. (Post 2136898)
I was able to block weapon fire. ( frost nade, thats all i can say )
So all we have to do is recreate traceline, animation and sound and there you have it.
Costom weapon fire sound.

It's easier to block client prediction on grenades and knife. It's different on weapons that fire. Client handles:
  • Weapon fire sound
  • Bullet holes
  • Recoil (just someones)
  • Fire animation (and others animations)
And all that if for saving bandwidth. If you want to override it and re-code it, so do it.. i'm just telling how it works really, I've looking at HLSDK weapon's code since long time ago and I know how they works, including semidecompilated code of CS, and that is NOT enough for telling that someone is experienced on they, nobody here in exception of recognized coders :)

felipemilralze 05-13-2014 13:25

Re: Help me Gonden AK
 
thx

Backstabnoob 05-13-2014 18:32

Re: Help me Gonden AK
 
I never tried but why is it impossible to play a different sound over the default one? Two sounds of the same channel cannot be played at the same time, the latter one should always overlap it.

Fr33m@n 05-13-2014 18:49

Re: Help me Gonden AK
 
Ham primary attack post with good check and maybe you can overwrite sound on the same channel.
I did that with CurWeapon event a long time ago, it worked but badly, and sometimes CurWeapon fail.


All times are GMT -4. The time now is 14:49.

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