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
|
||||||
|
@ -265,7 +265,7 @@ simulated function Tick(float deltatime)
|
|||||||
BileExplosionLoc = Location;
|
BileExplosionLoc = Location;
|
||||||
BileExplosionLoc.z += (CollisionHeight - (CollisionHeight * 0.5));
|
BileExplosionLoc.z += (CollisionHeight - (CollisionHeight * 0.5));
|
||||||
|
|
||||||
GibBileExplosion = Spawn(class 'LowGoreBileExplosion',self,, BileExplosionLoc );
|
GibBileExplosion = Spawn(class'LowGoreBileExplosion',self,, BileExplosionLoc );
|
||||||
bPlayBileSplash = true;
|
bPlayBileSplash = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user