hi all my name is penpen86
it this day's i am in work to make my first mutator i found a tutorial of ambershee that explain how make this
my mutator in simple: change the stinger with one new stinger but i have a problem... i follow the tutorial step by step ad all work fine
but there is a problem that is not in; the new stinger work but in game i have 2 stinger!!! and i don't know how to remove the old one. someone can help me??
here my .uc
ps. i don't change the name the stinger like to this:
becouse i don't want a new name of my stinger, could be a problem??
EDIT: i have this problem becouse i have already the stinger in my "weapon base" this code replace the enforcer or hammer with "DefaultInventory" becouse These two unique weapons can be replaced as the default weapons. i need an help for replace the original stinger when the mutator is activate
thx all for attention
penpen
it this day's i am in work to make my first mutator i found a tutorial of ambershee that explain how make this
my mutator in simple: change the stinger with one new stinger but i have a problem... i follow the tutorial step by step ad all work fine
but there is a problem that is not in; the new stinger work but in game i have 2 stinger!!! and i don't know how to remove the old one. someone can help me??
here my .uc
Code:
class MutTheLast_inger extends UTMutator;
function InitMutator(string Options,out string ErrorMessage)
{
if (UTGame(WorldInfo.Game) != None)
{
UTGame(WorldInfo.Game).DefaultInventory[0] = class'UTWeap_MutTheLast_inger';
}
Super.InitMutator(Options,ErrorMessage);
}
function bool CheckReplacement(Actor Other)
{
if (Other.IsA('UTWeap_Stinger') && !Other.IsA('UTWeap_MutTheLast_inger'))
{
ReplaceWith(Other, "UTWeap_MutTheLast_inger");
}
return true;
}
DefaultProperties
{
}
ps. i don't change the name the stinger like to this:
Code:
[UTWeap_EnforcerPlusOne]
ItemName="Enforcer+1"
PickupMessage="Enforcer+1"
becouse i don't want a new name of my stinger, could be a problem??
EDIT: i have this problem becouse i have already the stinger in my "weapon base" this code replace the enforcer or hammer with "DefaultInventory" becouse These two unique weapons can be replaced as the default weapons. i need an help for replace the original stinger when the mutator is activate
thx all for attention
penpen
Last edited: