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

Method deselectable

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

Source from the content-addressed store, hash-verified

1077float weapon::dynrecoil() { return info.recoil; }
1078bool weapon::selectable() { return this != owner->weaponsel && owner->state == CS_ALIVE && !owner->weaponchanging; }
1079bool weapon::deselectable() { return !reloading; }
1080
1081void weapon::equipplayer(playerent *pl)
1082{

Callers 2

selectweaponFunction · 0.80
shiftweaponFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected