diff --git a/TAWOD/Classes/TAWOD.upkg b/TAWOD/Classes/TAWOD.upkg index 7d148dd..ae6c83c 100644 --- a/TAWOD/Classes/TAWOD.upkg +++ b/TAWOD/Classes/TAWOD.upkg @@ -1,4 +1,4 @@ -[Flags] -AllowDownload=False -ClientOptional=False -ServerSideOnly=True +[Flags] +AllowDownload=False +ClientOptional=False +ServerSideOnly=True diff --git a/TAWOD/Classes/TAWODMut.uc b/TAWOD/Classes/TAWODMut.uc index a9ed138..3b3c541 100644 --- a/TAWOD/Classes/TAWODMut.uc +++ b/TAWOD/Classes/TAWODMut.uc @@ -1,37 +1,37 @@ -class TAWODMut extends KFMutator; - -public event PreBeginPlay() -{ - Super.PreBeginPlay(); - `log("Loaded.", true, 'TAWOD'); -} - -public function AddMutator(Mutator Mut) -{ - if (Mut == Self) return; - - if (Mut.Class == Class) - Mut.Destroy(); - else - Super.AddMutator(Mut); -} - -public function bool PreventDeath(Pawn Killed, Controller Killer, class damageType, vector HitLocation) -{ - local KFWeapon TempWeapon; - local KFPawn_Human KFP; - - KFP = KFPawn_Human(Killed); - - if (Role >= ROLE_Authority && KFP != None && KFP.InvManager != None) - foreach KFP.InvManager.InventoryActors(class'KFWeapon', TempWeapon) - if (TempWeapon != None && TempWeapon.bDropOnDeath && TempWeapon.CanThrow()) - KFP.TossInventory(TempWeapon); - - return Super.PreventDeath(Killed, Killer, damageType, HitLocation); -} - -defaultproperties -{ - -} +class TAWODMut extends KFMutator; + +public event PreBeginPlay() +{ + Super.PreBeginPlay(); + `log("Loaded.", true, 'TAWOD'); +} + +public function AddMutator(Mutator Mut) +{ + if (Mut == Self) return; + + if (Mut.Class == Class) + Mut.Destroy(); + else + Super.AddMutator(Mut); +} + +public function bool PreventDeath(Pawn Killed, Controller Killer, class damageType, vector HitLocation) +{ + local KFWeapon TempWeapon; + local KFPawn_Human KFP; + + KFP = KFPawn_Human(Killed); + + if (Role >= ROLE_Authority && KFP != None && KFP.InvManager != None) + foreach KFP.InvManager.InventoryActors(class'KFWeapon', TempWeapon) + if (TempWeapon != None && TempWeapon.bDropOnDeath && TempWeapon.CanThrow()) + KFP.TossInventory(TempWeapon); + + return Super.PreventDeath(Killed, Killer, damageType, HitLocation); +} + +defaultproperties +{ + +} diff --git a/builder.cfg b/builder.cfg index 889e3c2..618a572 100644 --- a/builder.cfg +++ b/builder.cfg @@ -7,7 +7,7 @@ StripSource="True" # Mutators to be compiled # Specify them with a space as a separator, -# Mutators will be compiled in the specified order +# Mutators will be compiled in the specified order PackageBuildOrder="TAWOD" @@ -16,7 +16,7 @@ PackageBuildOrder="TAWOD" # Packages you want to brew using @peelz's patched KFEditor. # Useful for cases where regular brew doesn't put *.upk inside the package. # Specify them with a space as a separator, -# The order doesn't matter +# The order doesn't matter PackagePeelzBrew="" @@ -24,7 +24,7 @@ PackagePeelzBrew="" # Mutators that will be uploaded to the workshop # Specify them with a space as a separator, -# The order doesn't matter +# The order doesn't matter PackageUpload="TAWOD"