[FM] touch textures with different sound
The problem is - I have fm_ touch function
in other function ( radius damage I use different HIT sounds according to damage ) here I want my sound when it hit walls or floor ONLY, if I put the sound here, it works for every texture. and Player. so even if my hit sounds works in other functions. this one makes them silent PHP Code:
|
Re: [FM] touch textures with different sound
Quote:
|
Re: [FM] touch textures with different sound
new nail_classname[] = "q3_nail";
|
Re: [FM] touch textures with different sound
No, I'm talking about this line:
Code:
|
Re: [FM] touch textures with different sound
Yes Im asking about this line
its not original code. Im trying to catch when entity touches WALL only or FLOOR to emit_sound and other sound will be for any other "touches" |
Re: [FM] touch textures with different sound
For 1, you never get the classname of the entity it is touching.
2nd, you should also check if the entity it hit is 0, since that is what the floor/walls would be for non-entities. |
Re: [FM] touch textures with different sound
and what about this thread
https://www.sourcemod.net/showthread.php?p=1519686 how to play sound on LAnding |
Re: [FM] touch textures with different sound
There already is one if you are moving fast enough or falling fast enough.
|
| All times are GMT -4. The time now is 03:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.