PDA

View Full Version : sound procedural or any other


vladacar
16th May 2004, 11:48 AM
does any one know how to change the sound of the bullet when it hits the wall? or the explosion of a grenade?
they are not impactsounds and i don't know what kind they are?
thanks
v

[SAS]Solid Snake
16th May 2004, 08:21 PM
For explosions it is usually defined in the projectile (it is in RocketProj/Grenade), for bullet sounds look at HitEffect.uc found in xWeapons. From there they define what Effect classes should be used for different surfaces. The different effect classes defined in HitEffect also define what sound to be played.

rc321
16th May 2004, 08:32 PM
TO replace the impact sounds that the minigun makes, look in MiniGunAttachment, then find simulated event ThirdPersonEffects(). You would change the AssaultRifle the same way. Below is the MiniGunAttachment code thats revelvent:


if ( FiringMode == 0 )
Spawn(class'HitEffect'.static.GetHitEffect(mHitActor, mHitLocation, mHitNormal),,, mHitLocation, Rotator(mHitNormal));
else
Spawn(class'ExploWallHit',,, mHitLocation, Rotator(mHitNormal));


The 1st Spawn line is FireMode1 and the 2nd is FireMode2. Each end up going to xHeavyWallHitEffect for the impact sounds. This the the file you'd need to create yourself to use your own sounds, then extend xHeavyWallHitEffect.

If you need more explination, I could whip up a quick source dump.

vladacar
17th May 2004, 02:09 AM
If you need more explination, I could whip up a quick source dump.

please, if you can send a code where you changed some sound that would be great.
thanks

rc321
17th May 2004, 09:29 AM
please, if you can send a code where you changed some sound that would be great.
thanks

Sure, I'm at work atm, so I'll do this when I get home. I'll replace the minigun wall impact sounds.