Announcement

Collapse
No announcement yet.

replace headshot sound

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    replace headshot sound

    I am trying to replace the headshot sound in my customwepon set.

    The sound is in package: WGS3369weps.FPSdoug2

    I don't know how replace the headshot sound... should I do it in the weapon damage class or make a replacement mutator that changes the special kill message... hmmm anyone know.

    #2
    OK, I have discovered it needs to be off the SpecialKillMessage class... I made my own class and refrenced it in the weapon damage class... it displays the custom words, now I have to work on the sound....

    Comment


      #3
      Herer is the class so far:
      Code:
      class wgsSpecialKillMessage extends LocalMessage;
      
      var(Messages)	localized string 	DecapitationString;
      var sound HeadShotSound;
      
      static function string GetString(
      	optional int Switch,
      	optional PlayerReplicationInfo RelatedPRI_1,
      	optional PlayerReplicationInfo RelatedPRI_2,
      	optional Object OptionalObject
      	)
      {
      	return Default.DecapitationString;
      }
      
      static simulated function ClientReceive(
      	PlayerController P,
      	optional int Switch,
      	optional PlayerReplicationInfo RelatedPRI_1,
      	optional PlayerReplicationInfo RelatedPRI_2,
      	optional Object OptionalObject
      	)
      {
      	Super.ClientReceive(P, Switch, RelatedPRI_1, RelatedPRI_2, OptionalObject);
      
      	P.PlayAnnouncement('HeadShotSound',1);
      }
      
      defaultproperties
      {
           HeadShotSound='WGS3369weps.newHshot'
           DecapitationString="Head Shot Bi-Yatch!"
           bIsUnique=True
           bFadeMessage=True
           DrawColor=(B=0,G=0)
           StackMode=SM_Down
           PosY=0.100000
      }
      Still only displays message, but will not play the sound

      Comment

      Working...
      X