Apply dirty patch (messed up line endings)
This commit is contained in:
parent
12d95e387e
commit
51bb9add5b
30 changed files with 1354 additions and 714 deletions
|
|
@ -1,18 +1,24 @@
|
|||
class MeanPoisonInventory extends Inventory;
|
||||
var float poisonStartTime, maxSpeedPenaltyTime, poisonSpeedDown;
|
||||
simulated function Tick(float DeltaTime) {
|
||||
if(Level.TimeSeconds - poisonStartTime > maxSpeedPenaltyTime)
Destroy();
|
||||
}
|
||||
simulated function float GetMovementModifierFor(Pawn InPawn){
|
||||
local float actualSpeedDown;
|
||||
local class<NiceVeterancyTypes> niceVet;
|
||||
|
||||
niceVet = class'NiceVeterancyTypes'.static.GetVeterancy(InPawn.PlayerReplicationInfo);
|
||||
if(niceVet != none){
actualSpeedDown = 1.0 - (1.0 - poisonSpeedDown) * niceVet.static.SlowingModifier(KFPlayerReplicationInfo(InPawn.PlayerReplicationInfo));
actualSpeedDown = FMax(0.0, FMin(1.0, actualSpeedDown));
return actualSpeedDown;
|
||||
}
|
||||
// If something went wrong - ignore slowdown altogether
|
||||
return 1.0;
|
||||
}
|
||||
defaultproperties
|
||||
{
maxSpeedPenaltyTime=5.000000
poisonSpeedDown=0.600000
|
||||
}
|
||||
class MeanPoisonInventory extends Inventory;
|
||||
var float poisonStartTime, maxSpeedPenaltyTime, poisonSpeedDown;
|
||||
simulated function Tick(float DeltaTime) {
|
||||
if(Level.TimeSeconds - poisonStartTime > maxSpeedPenaltyTime)
|
||||
Destroy();
|
||||
}
|
||||
simulated function float GetMovementModifierFor(Pawn InPawn){
|
||||
local float actualSpeedDown;
|
||||
local class<NiceVeterancyTypes> niceVet;
|
||||
|
||||
niceVet = class'NiceVeterancyTypes'.static.GetVeterancy(InPawn.PlayerReplicationInfo);
|
||||
if(niceVet != none){
|
||||
actualSpeedDown = 1.0 - (1.0 - poisonSpeedDown) * niceVet.static.SlowingModifier(KFPlayerReplicationInfo(InPawn.PlayerReplicationInfo));
|
||||
actualSpeedDown = FMax(0.0, FMin(1.0, actualSpeedDown));
|
||||
return actualSpeedDown;
|
||||
}
|
||||
// If something went wrong - ignore slowdown altogether
|
||||
return 1.0;
|
||||
}
|
||||
defaultproperties
|
||||
{
|
||||
maxSpeedPenaltyTime=5.000000
|
||||
poisonSpeedDown=0.800000
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue