Home
last modified time | relevance | path

Searched refs:wep_idx (Results 1 – 3 of 3) sorted by relevance

/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/pilotfile/
H A Dcsg.cpp516 int j, count, ship_idx = -1, wep_idx = -1; in csg_read_loadout() local
576 wep_idx = cfread_int(cfp); in csg_read_loadout()
578 if ( (wep_idx >= (int)weapon_list.size()) || (wep_idx < -1) ) { in csg_read_loadout()
580 wep_idx = -1; in csg_read_loadout()
585 if (wep_idx == -1) { // -1 means no weapon in this slot in csg_read_loadout()
588 slot->wep[j] = weapon_list[wep_idx].index; in csg_read_loadout()
603 wep_idx = cfread_int(cfp); in csg_read_loadout()
605 if ( (wep_idx >= (int)weapon_list.size()) || (wep_idx < -1) ) { in csg_read_loadout()
607 wep_idx = -1; in csg_read_loadout()
611 if (wep_idx == -1) { // -1 means no weapon in this slot in csg_read_loadout()
[all …]
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/pilotfile/
H A Dcsg.cpp555 int j, count, ship_idx = -1, wep_idx = -1; in csg_read_loadout() local
615 wep_idx = cfread_int(cfp); in csg_read_loadout()
617 if ( (wep_idx >= (int)weapon_list.size()) || (wep_idx < -1) ) { in csg_read_loadout()
619 wep_idx = -1; in csg_read_loadout()
624 if (wep_idx == -1) { // -1 means no weapon in this slot in csg_read_loadout()
627 slot->wep[j] = weapon_list[wep_idx].index; in csg_read_loadout()
642 wep_idx = cfread_int(cfp); in csg_read_loadout()
644 if ( (wep_idx >= (int)weapon_list.size()) || (wep_idx < -1) ) { in csg_read_loadout()
646 wep_idx = -1; in csg_read_loadout()
650 if (wep_idx == -1) { // -1 means no weapon in this slot in csg_read_loadout()
[all …]
/dports/games/alephone/alephone-release-20190331/Source_Files/Lua/
H A Dlua_hud_objects.cpp1358 int wep_idx = Lua_HUDPlayer_Weapon_Trigger::WeaponIndex(L, 1); in Lua_HUDPlayer_Weapon_Trigger_Get_Bullet() local
1360 …struct weapon_interface_ammo_data *wia = &weapon_interface_definitions[wep_idx].ammo_data[trig_idx… in Lua_HUDPlayer_Weapon_Trigger_Get_Bullet()
1362 Lua_HUDPlayer_Weapon_Trigger_Bullet::Push(L, wep_idx, trig_idx); in Lua_HUDPlayer_Weapon_Trigger_Get_Bullet()
1370 int wep_idx = Lua_HUDPlayer_Weapon_Trigger::WeaponIndex(L, 1); in Lua_HUDPlayer_Weapon_Trigger_Get_Energy() local
1372 …struct weapon_interface_ammo_data *wia = &weapon_interface_definitions[wep_idx].ammo_data[trig_idx… in Lua_HUDPlayer_Weapon_Trigger_Get_Energy()
1374 Lua_HUDPlayer_Weapon_Trigger_Energy::Push(L, wep_idx, trig_idx); in Lua_HUDPlayer_Weapon_Trigger_Get_Energy()