Simple problem, but I can't seem to find a solution. It works fine in single player, but when using it on a dedicated server the player never gets the weapon (and for some reason the key associated with that category of weapon disables). I can give players standard weapons without problems.
KFGeneric (mutator file)
KFNewWeapon.uc (weapon file)
As you can see all I'm doing is extending from an existing weapon and not modifying it anyway, yet while giving the original weapon works this does not.
Any ideas?
Solved: Add bAddToServerPackages=True to the defaultproperties of the mutator.
KFGeneric (mutator file)
Code:
class KFGeneric extends Mutator;
function PostBeginPlay()
{
SetTimer(5, true);
}
function Timer()
{
local KFHumanPawn player;
foreach AllActors(class'KFHumanPawn', player)
{
player.GiveWeapon("KFGeneric.KFNewWeapon");
Log("Given weapon to player");
}
}
defaultproperties
{
GroupName="KF-Generic"
FriendlyName="Generic mutator"
Description=""
}
KFNewWeapon.uc (weapon file)
Code:
class KFNewWeapon extends KFMod.Deagle;
As you can see all I'm doing is extending from an existing weapon and not modifying it anyway, yet while giving the original weapon works this does not.
Any ideas?
Solved: Add bAddToServerPackages=True to the defaultproperties of the mutator.
Last edited: