MCPcopy Create free account
hub / github.com/assaultcube/AC / loopi

Function loopi

source/src/weapon.cpp:90–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 // collect available weapons
89 vector<weapon *> availweapons;
90 loopi(NUMGUNS)
91 {
92 weapon *w = player1->weapons[i];
93 if(!w) continue;
94 if(w->selectable() || w==curweapon || (w->type==GUN_PISTOL && player1->akimbo))
95 {
96 availweapons.add(w);
97 }
98 }
99
100 // replace pistol by akimbo
101 if(player1->akimbo)

Callers 5

updatelastactionFunction · 0.70
intersectgeometryFunction · 0.70
accuracyinfoFunction · 0.70
moveoutsidebboxMethod · 0.70
attackfxMethod · 0.70

Calls 9

vecClass · 0.85
intersectclosestFunction · 0.85
shortenFunction · 0.85
hitpushFunction · 0.85
selectableMethod · 0.80
mulMethod · 0.80
resetinterpMethod · 0.80
magnitudeMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected