Tweaking the order of weapons ?


(Svartberg.) #1

I was looking to change the order of weapons,
I’ve taken a look into the various switch weapon functions, and i’ve noticed they all do a check for the order through the weapBanksMultiPlayer[][] table, so i tried to do my changes in the table, and simply nothing happened, i tried things like switching between weapons, in the same and in different banks, and even tried to change entire banks.

Simply nothing, i tried taking a look at the weapon-switch functions again and again, but all i see is that this table should be my solution, i’m simply clueless here.


// Arnout: the new loadout for WolfXP
int weapBanksMultiPlayer[MAX_WEAP_BANKS_MP][MAX_WEAPS_IN_BANK_MP] = {
	{0,						 0,						  0,					0...	},	// empty bank '0'
	{WP_KNIFE,				0,						  0,					0...	},
	{WP_LUGER,				WP_COLT,				  WP_AKIMBO_COLT,  WP_AKIMBO_LUGER...	},
	{WP_MP40,				 WP_THOMPSON,			 WP_STEN,		   WP_GARAND...	},
	{WP_GRENADE_LAUNCHER, WP_GRENADE_PINEAPPLE, 0,					0...			},
	{WP_MEDIC_SYRINGE,	 WP_PLIERS,				WP_SMOKE_MARKER, WP_SMOKE_BOMB...			},
	{WP_DYNAMITE,			WP_MEDKIT,				WP_AMMO,			WP_SATCHEL...			},
	{WP_LANDMINE,			WP_MEDIC_ADRENALINE,  0,					0...			},
	{WP_BINOCULARS,		 0,						  0,					0...			},
	{0,						 0,						  0,					0...			},
};

*Bg_misc.c - the weapBanksMultiPlayer[][] table.

Thanks in advance.