void BotGetWeaponInfo(int weaponstate, int weapon, weaponinfo_t *weaponinfo) { bot_weaponstate_t *ws; if (!BotValidWeaponNumber(weapon)) return; ws = BotWeaponStateFromHandle(weaponstate); if (!ws) return; if (!weaponconfig) return; memcpy(weaponinfo, &weaponconfig->weaponinfo[weapon], sizeof(weaponinfo_t)); }
//=========================================================================== // // Parameter: - // Returns: - // Changes Globals: - //=========================================================================== void BotGetWeaponInfo( int weaponstate, int weapon, weaponinfo_t *weaponinfo ) { bot_weaponstate_t *ws; if ( !BotValidWeaponNumber( weapon ) ) { return; } ws = BotWeaponStateFromHandle( weaponstate ); if ( !ws ) { return; } if ( !weaponconfig ) { return; } memcpy( weaponinfo, &weaponconfig->weaponinfo[weapon], sizeof( weaponinfo_t ) ); } //end of the function BotGetWeaponInfo