News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 16th May 2004, 10:48 AM   #1
vladacar
Registered User
 
Join Date: Oct. 31st, 2003
Posts: 19
sound procedural or any other

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
vladacar is offline   Reply With Quote
Old 16th May 2004, 07:21 PM   #2
[SAS]Solid Snake
Registered User
 
[SAS]Solid Snake's Avatar
 
Join Date: Jun. 7th, 2002
Location: New Zealand
Posts: 2,633
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.
__________________
I make the impossible possible ... ... ... to some extent.

Digital Confectioners
[SAS]Solid Snake is offline   Reply With Quote
Old 16th May 2004, 07:32 PM   #3
rc321
defaultproperties coder
 
Join Date: May. 5th, 2004
Location: CT
Posts: 18
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:

Code:
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.
rc321 is offline   Reply With Quote
Old 17th May 2004, 01:09 AM   #4
vladacar
Registered User
 
Join Date: Oct. 31st, 2003
Posts: 19
more, yes/

Quote:
Originally Posted by rc321
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

Last edited by Mychaeel; 17th May 2004 at 06:37 AM. Reason: Fixed [quote] tags
vladacar is offline   Reply With Quote
Old 17th May 2004, 08:29 AM   #5
rc321
defaultproperties coder
 
Join Date: May. 5th, 2004
Location: CT
Posts: 18
Quote:
Originally Posted by vladacar
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.
rc321 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:09 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer