Awesome tutorial!
I have it working, but I want to know how to make it replace all other weapons on the map without using UT_Arena(which does work)
the original code you used is:
function bool CheckReplacement(Actor Other)
{
if (Other.IsA('UTWeap_Enforcer') && !Other.IsA('UTWeap_EnforcerPlusOne'))
{
ReplaceWith(Other, "UTWeap_EnforcerPlusOne");
}
I tried using:
function bool CheckReplacement(Actor Other)
{
if (!Other.IsA('UTWeap_EnforcerPlusOne'))
{
ReplaceWith(Other, "UTWeap_EnforcerPlusOne");
}
and it compiled fine(as expected) and it replaced the enforcer on spawn(as expected) but nothing else. All of the other weapons are still there. Any help?
**NOTE**: I changed other values in the weapon code [EnforcerPlusOne.uc] (firerate, burst, etc.) and they work fine. In the other file [FirstMutator.uc], I only made the changes as shown above. I hope this does not make a difference.
Thanks for the help,
~``Tyc_00n
Tyc_00n
Kevin joined
This member has provided no bio about themself...