News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Mods > WoD Mod Pod > Ask a Coder

Reply
 
Thread Tools Display Modes
Old 3rd Jul 2003, 09:58 PM   #1
Kangus
Zombie on your pwn!
 
Kangus's Avatar
 
Join Date: Jan. 29th, 2001
Location: Illinois, USA
Posts: 978
stupid client side stuff

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.
__________________
--Kangus
Kangus is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:28 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer