I'm trying to modify (for testing purposes) the GDI Soldier for now but this code here does not seem to work:
function ModifyPlayer(Pawn Other)
{
if (Other.IsA('Rx_FamilyInfo_GDI_Soldier') && Other.HealthMax != 1000)
{
Other.HealthMax=1000;
Other.Health=1000;
}
super.ModifyPlayer(Other);
}
I also tried this, with an extended test, which also does not seem to do much:
function bool CheckReplacement(Actor Other)
{
if (Other.IsA('Rx_FamilyInfo_GDI_Soldier') && !Other.IsA('Test_FamilyInfo_GDI_Soldier'))
{
ReplaceWith(Other,"Test_FamilyInfo_GDI_Soldier");
}
return true;
}
Can anyone help me with this perhaps? How do i override the default GDI Soldier (or other characters for that matter) with a mutator?