Well i just started my first Mutator, and got it working in itself just fine, but now the Mutator has one Problem, when the Mutator is active you can no longer switch Weapons. Even if the changed Weapon is dropped it is not possible.
All Changes to the Weapon were just some changes to the Fire Modes. Does anyone have a Clue why the Weapons would no longer switch ?
In an earlier Version i made the Error that dropped Version would be the Standard RO Weapons, after the modded Weapon was dropped Weapon switching worked again.
Or if someone could point me to the Class controlling Weapon switching i might find the Error myself.
Code:
class MutWitzigsWeapon extends Mutator;
//=============================================================================
function BeginPlay()
{
local RORoleInfo RORole;
local int j;
super.BeginPlay();
foreach AllActors(class'RORoleInfo',RORole)
{
if(RORole != None)
{
for(j = 0;j < 3; j++)
{
if(RORole.PrimaryWeapons[j].Item == class'ROInventory.PPD40Weapon')
RORole.PrimaryWeapons[j].Item = class'MutWitzigsWeapon.PPD40WWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.G43Weapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.G43WWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.G43ScopedWeapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.G43WScopedWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.DP28Weapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.DP28WWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.Kar98ScopedWeapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.Kar98WScopedWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.MN9130ScopedWeapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.MN9130WScopedWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.MP40Weapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.MP40WWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.MP41Weapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.MP41WWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.PPS43Weapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.PPS43WWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.PPSH41Weapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.PPSH41WWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.STG44Weapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.STG44WWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.SVT40Weapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.SVT40WWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.SVT40ScopedWeapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.SVT40WScopedWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.MG34Weapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.MG34WWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.MG42Weapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.MG42WWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.SatchelCharge10lb10sWeapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.SatchelCharge10lb10sWWeapon';
if(RORole.PrimaryWeapons[j].Item==class'ROInventory.PanzerFaustWeapon')
RORole.PrimaryWeapons[j].Item=class'MutWitzigsWeapon.PanzerFaustWWeapon';
}
}
}
}
defaultproperties
{
GroupName="Weapon Mut"
FriendlyName="WeaponMut"
Description="blah blah"
}
All Changes to the Weapon were just some changes to the Fire Modes. Does anyone have a Clue why the Weapons would no longer switch ?
In an earlier Version i made the Error that dropped Version would be the Standard RO Weapons, after the modded Weapon was dropped Weapon switching worked again.
Or if someone could point me to the Class controlling Weapon switching i might find the Error myself.