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

Method onselecting

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

Source from the content-addressed store, hash-verified

1061}
1062
1063void weapon::onselecting(bool sound)
1064{
1065 updatelastaction(owner);
1066 bool local = (owner == player1);
1067 if(sound) audiomgr.playsound(S_GUNCHANGE, owner, local ? SP_HIGH : SP_NORMAL);
1068}
1069
1070void weapon::renderhudmodel() { renderhudmodel(owner->lastaction); }
1071void weapon::renderaimhelp(bool teamwarning)

Callers 1

weaponswitchMethod · 0.80

Calls 2

updatelastactionFunction · 0.85
playsoundMethod · 0.80

Tested by

no test coverage detected