MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / MultiMatchWeapon

Function MultiMatchWeapon

Descent3/multi.cpp:6638–6644  ·  view source on GitHub ↗

Return index of generic that has matching table entry

Source from the content-addressed store, hash-verified

6636
6637// Return index of generic that has matching table entry
6638int MultiMatchWeapon(uint32_t unique_id) {
6639 for (int i = 0; i < MAX_WEAPONS; i++)
6640 if (Multi_weapon_match_table[i] == unique_id)
6641 return i;
6642
6643 return -1;
6644}
6645
6646// Builds the tables for uniquely identifying powerups and robots
6647void MultiBuildMatchTables() {

Callers 8

MultiDoRobotFireFunction · 0.85
MultiDoObjectFunction · 0.85
MultiBuildMatchTablesFunction · 0.85
DemoReadWeaponFireFunction · 0.85
MultiGetTypeIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected