I want to morph the player into a female version for one area of the map and back.
The female character is called "Telos", so I have got some sounds and defined them in SNDINFO as follows:
Code: Select all
FEMUSER1 FEMUSER1
FEMDEATH FEMDEATH
FEMPAIN1 FEMPAIN1
FEMPAIN2 FEMPAIN2
FEMPAIN3 FEMPAIN3
FEMPAIN4 FEMPAIN4
$random RFEMPAIN { FEMPAIN1 FEMPAIN2 FEMPAIN3 FEMPAIN4}
$playersound telos male *death FEMDEATH
$playersounddup telos male *xdeath *death
$playersound telos male *gibbed dsslop
$playersound telos male *pain100 RFEMPAIN
$playersounddup telos male *pain75 *pain100
$playersounddup telos male *pain50 *pain100
$playersounddup telos male *pain25 *pain100
$playersound telos male *jump dsempty
$playersound telos male *fist dsempty
$playersound telos male *usefail FEMUSER1
$playersounddup telos male *grunt *usefail
$playersounddup telos male *land *usefailCode: Select all
Class TelosMorph : PowerMorph
{
Default {
Powerup.Duration 0x7FFFFFFD;
PowerMorph.PlayerClass "GirlPlayer";
PowerMorph.MorphStyle MRF_FULLHEALTH | MRF_WHENINVULNERABLE | MRF_LOSEACTUALWEAPON;
PowerMorph.MorphFlash "NoFlash";
PowerMorph.UnMorphFlash "NoFlash";
}
}
Class GirlPlayer : PlayerPawn
{
Default {
Player.ForwardMove 0.5, 0.5;
Player.SideMove 0.5, 0.5;
Player.ViewBob 0.5;
Player.Face "VRK";
Player.DisplayName "You";
Player.SoundClass "telos";
Player.MorphWeapon "Flashlight";
+PLAYERPAWN.CROUCHABLEMORPH;
+PICKUP
}
}I tried playing the sounds from the console in-game and they all work fine - so it's not a problem with the sound files or the way they're set up in SNDINFO.
Does anyone know why it will work only for the "*usefail" sound and not the others? Is it something to do with how Morphs work?