PDA

View Full Version : stupid client side stuff


Kangus
3rd Jul 2003, 10:58 PM
I was just informed today that my renumbering of inventory slots code in WoRM does not perform it's function client side. It works fine & dandy serverside, but not client side....

function bool CheckReplacement( Actor Other, out byte bSuperRelevant )
{

//stuff

If ( Other.isA('Weapon') && bRenumberWeaps )
{

// starting weapons
If (Other.class == WoRMWeaponClass[0])
Weapon(Other).InventoryGroup = 1;
Else If (Other.class == WoRMWeaponClass[1])
Weapon(Other).InventoryGroup = 2;
Else If (String(Other.class) ~= WoRMExtraWeaponName[0])
Weapon(Other).InventoryGroup = 3;
Else If (String(Other.class) ~= WoRMExtraWeaponName[1])
Weapon(Other).InventoryGroup = 4;
Else If (String(Other.class) ~= WoRMExtraWeaponName[2])
Weapon(Other).InventoryGroup = 5;
Else If (String(Other.class) ~= WoRMExtraWeaponName[3])
Weapon(Other).InventoryGroup = 6;
Else If (String(Other.class) ~= WoRMExtraWeaponName[4])
Weapon(Other).InventoryGroup = 7;
Else If (String(Other.class) ~= WoRMExtraWeaponName[5])
Weapon(Other).InventoryGroup = 8;
Else If (String(Other.class) ~= WoRMExtraWeaponName[6])
Weapon(Other).InventoryGroup = 9;
Else If (String(Other.class) ~= WoRMExtraWeaponName[7])
Weapon(Other).InventoryGroup = 0;
// main weapons
Else If (Other.class == WoRMWeaponClass[2])
Weapon(Other).InventoryGroup = 3;
Else If (Other.class == WoRMWeaponClass[3])
Weapon(Other).InventoryGroup = 4;
Else If (Other.class == WoRMWeaponClass[4])
Weapon(Other).InventoryGroup = 5;
Else If (Other.class == WoRMWeaponClass[5])
Weapon(Other).InventoryGroup = 6;
Else If (Other.class == WoRMWeaponClass[6])
Weapon(Other).InventoryGroup = 7;
Else If (Other.class == WoRMWeaponClass[7])
Weapon(Other).InventoryGroup = 8;
Else If (Other.class == WoRMWeaponClass[8])
Weapon(Other).InventoryGroup = 9;
Else If (Other.class == WoRMWeaponClass[9])
Weapon(Other).InventoryGroup = 0;
Else If (Other.class == WoRMWeaponClass[10])
Weapon(Other).InventoryGroup = 0;

}

//more stuff

}


anyone have any ideas? I've tried moving that stuff to a simulated function, as well as making that function simulated itself, but to no avail.