1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

stupid client side stuff

Discussion in 'Ask a Coder' started by Kangus, Jul 3, 2003.

  1. Kangus

    Kangus Zombie on your pwn!

    Joined:
    Jan 29, 2001
    Messages:
    978
    Likes Received:
    0
    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....
    Code:
    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.
     

Share This Page