The point of this mutator is when people type 'mutate sniper' or 'mutate SNIPER' into the command line, it will award them with a sniper. I know this has no real value, but it's just practice. There is only one problem, it won't compile due to an error in the 6th line. Apparently this has something to do with the code of Rx_InventoryManager and there is nothing I can do about it right now. Waiting for some more info from the devs.
Error 9 Bad or missing expression after '&&': 'Rx_InventoryManager' C:\Rx_SDK\Rx_SDK_March_22_2015\Development\Src\CZ_BuySniper\Classes\CZ_BuySniper.uc 6 1 RenXMP
class CZ_BuySniper extends UTMutator;
function Mutate(string MutateString, PlayerController Sender)
{
if (Caps(MutateString) == "SNIPER" && Rx_InventoryManager(Sender.Pawn.InvManager) != none)
Rx_InventoryManager(Sender.Pawn.InvManager).AddWeaponOfClass(class'Rx_Weapon_SniperRifle_Nod',CLASS_PRIMARY);
Super.Mutate(MutateString, Sender);
}
DefaultProperties
{
}