Menus overhaul #14
@ -863,6 +863,40 @@ simulated function AltFire(optional float F){
|
|||||||
super.AltFire(F);
|
super.AltFire(F);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// added copy-cated function to disable some log
|
||||||
|
simulated function Setup(xUtil.PlayerRecord rec, optional bool bLoadNow)
|
||||||
|
{
|
||||||
|
local ScrnPlayerController PC;
|
||||||
|
local string CN;
|
||||||
|
|
||||||
|
PC = ScrnPlayerController(Controller);
|
||||||
|
if ( PC != none && IsLocallyControlled() )
|
||||||
|
{
|
||||||
|
// check this only on player side, because it stores
|
||||||
|
// RedCharacter & BlueCharacter in the config
|
||||||
|
CN = rec.DefaultName;
|
||||||
|
if ( !PC.ValidateCharacter(CN) ) {
|
||||||
|
// character invalid, change it valid one, which was set up in ValidateCharacter()
|
||||||
|
rec = class'xUtil'.static.FindPlayerRecord(CN);
|
||||||
|
PC.ChangeCharacter(CN);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
super(KFPawn).Setup(rec, bLoadNow);
|
||||||
|
|
||||||
|
if( class<SoldierSpeciesRobot>(Species) != none )
|
||||||
|
{
|
||||||
|
BreathingSound = class'KFDARSoundGroup'.default.BreathingSound;
|
||||||
|
}
|
||||||
|
else if( class<AshHardingSpecies>(Species) != none )
|
||||||
|
{
|
||||||
|
BreathingSound = class'KFFemaleSoundGroup'.default.BreathingSound;
|
||||||
|
}
|
||||||
|
// disable the log!!!
|
||||||
|
// log(BreathingSound);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
{
|
{
|
||||||
defaultInvincibilityDuration=2.000000
|
defaultInvincibilityDuration=2.000000
|
||||||
|
Loading…
Reference in New Issue
Block a user