Prepare fixtures

This commit is contained in:
dkanus 2026-07-14 20:27:09 +07:00
commit 9c94356263
6021 changed files with 722805 additions and 22 deletions

View file

@ -0,0 +1,18 @@
/////////////////////////////////////////////////
// //
// Explosion Fix Mutator v.1.0 (c) by Mutant //
// //
/////////////////////////////////////////////////
Class KFExplosivesFixMut extends Mutator;
event PostBeginPlay()
{
Level.Game.AddGameModifier(Spawn(class'KFExplosivesFixRule'));
}
defaultproperties
{
GroupName="KF-ExplosivesFix"
FriendlyName="Explosives Fix"
Description="Fixes a severe explosive weapons related bug."
}

View file

@ -0,0 +1,39 @@
class KFExplosivesFixRule extends GameRules;
function int NetDamage( int OriginalDamage, int Damage, pawn injured, pawn instigatedBy, vector HitLocation, out vector Momentum, class<DamageType> DamageType )
{
local TeamGame TG;
TG = TeamGame(Level.Game);
if ( KFPawn(injured) != None && TG != None && Damage > 0 )
{
if ( (KFPawn(instigatedBy) != None || FakePlayerPawn(instigatedBy) != None ) && (instigatedBy.PlayerReplicationInfo == None || instigatedBy.PlayerReplicationInfo.bOnlySpectator) )
{
Momentum = vect(0,0,0);
if ( NoFF(injured, TG.FriendlyFireScale) )
return 0;
else if ( OriginalDamage == Damage )
return Damage*TG.FriendlyFireScale;
}
else if ( instigatedBy == None && !DamageType.default.bCausedByWorld )
{
Momentum = vect(0,0,0);
if ( NoFF(injured, TG.FriendlyFireScale) )
return 0;
else if ( OriginalDamage == Damage )
return Damage*TG.FriendlyFireScale;
}
}
return Super.NetDamage( OriginalDamage, Damage, injured, instigatedBy, HitLocation, Momentum,DamageType );
}
function bool NoFF( Pawn injured, float FF )
{
return (FF == 0.0 || (Vehicle(injured) != None && Vehicle(injured).bNoFriendlyFire));
}
defaultproperties
{
}

View file

@ -0,0 +1,8 @@
<html>
<head><title>Index of /kf_sources/KFExplosivesFix/Classes/</title></head>
<body>
<h1>Index of /kf_sources/KFExplosivesFix/Classes/</h1><hr><pre><a href="../">../</a>
<a href="KFExplosivesFixMut.uc">KFExplosivesFixMut.uc</a> 29-Oct-2019 17:24 558
<a href="KFExplosivesFixRule.uc">KFExplosivesFixRule.uc</a> 29-Oct-2019 17:24 1240
</pre><hr></body>
</html>