limbo menu guns


(jamez) #1

in the limbo menu, where is the code to draw the buttons to select the team and where what the primary and secondary weapons that can be selected

i know how the limbo sends them, its just where the limbo gets rendered


(ignition) #2

i think limbo.c in the client game…sounds logical to me?

ignition


(jamez) #3

no lol i know that and its cg_limbopanel.c
im asking how do i change which weapons can be selected like primary and secondary
i want rifles and smgs in primary and pistols come default anyway
secondary a sniper, or a heavy weapon if u get heavy weapons 1
and if u get covert lvl 1 pistols are silenced and lvl 2 a sten
etc and u choose the skil u build up on by choosing the class but everyone is a soldier
also headshots are almost always fatal

i know this sounds pretty dumb and unrealistic but heh im sure i would have fun with it and my friends would have fun playing it

thanks for the response anyway


(nUllSkillZ) #4

Hi,

I’m not sure what exactly you are looking for.
But may be this will help you.
In “bg_misc.c” theres an array. This array is the connection between weaponbanks and the weapons:
int weapBanksMultiPlayer[MAX_WEAP_BANKS_MP][MAX_WEAPS_IN_BANK_MP]


(jamez) #5

dw found it
here are the prototypes


weapon_t CG_LimboPanel_GetWeaponForNumber( int number, int slot, qboolean ignoreDisabled )       <--- returns weps based on loop in 
                                                CG_LimboPanel_WeaponPanel( panel_button_t* button )

int CG_LimboPanel_WeaponCount( void )     <--- loop goes up until the number this returns