Changing the default player sounds
The default player sounds, such as grunts, footsteps and impacts, are set up in UTPawnSoundGroup.UC (and by extension UTPawnSoundGroup_Liandri.UC since the UDK generic Bot is from the Liandri family).
In UTPawn.UC, line 5497: SoundGroupClass=class'UTGame.UTPawnSoundGroup'
we get the definition for the file that sounds will be established in. This is found in the file's DefaultProperties
. Further down, we get additional SoundCues
given for ArmorHitSound=
, SpawnSound=
, TeleportSound=
, and FallImpactSound=
, all of which can be overridden in your MyPawn.UC file's DefaultProperties
. We also have some control over the audible distance with MaxFootstepDistSq, and MaxJumpSoundDistSq.
In this recipe we won't be considering changes to the weapon sounds for the default player, but these are, similarly, set in the DefaultProperties
of the appropriate weapon class.
Getting ready
In ConTEXT you can open multiple files, so open up the C:\UDK\~\Development\Src\UTGame\Classes...