adding of weapons


(brendank310) #1

there are a few functions which im curious about as far as adding weapons goes.
is there a particular order to the weapons in these functions, or do they work from the weapon names. these are found in bg_misc.c around line 94.


int weapBanksMultiPlayer[MAX_WEAP_BANKS_MP][MAX_WEAPS_IN_BANK_MP] = {
int reloadableWeapons[] = { 
ammotable_t ammoTableMP[WP_NUM_WEAPONS] = {

those are the functions, i didnt put all the data in them in here to save room. so is it an order or is linked to the WP_NAME and MOD_NAME.


(brendank310) #2

bump anyone have any ideas?


(bacon) #3

int weapBanksMultiPlayer[MAX_WEAP_BANKS_MP][MAX_WEAPS_IN_BANK_MP] = { = no order
int reloadableWeapons[] = { = no order
ammotable_t ammoTableMP[WP_NUM_WEAPONS] = { = same order as the weapons enum, I might be wrong here.


(brendank310) #4

thanks, i will give that a shot first. maybe some sd guys could shed some light.