Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/assaultcube/AC
/ updatelastaction
Function
updatelastaction
source/src/weapon.cpp:22–26 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
20
bool quicknade = false;
21
22
void updatelastaction(playerent *d, int millis = lastmillis)
23
{
24
loopi(NUMGUNS) d->weapons[i]->updatetimers(millis);
25
d->lastaction = millis;
26
}
27
28
void checkweaponswitch()
29
{
Callers
5
reload
Method · 0.85
onselecting
Method · 0.85
activatenade
Method · 0.85
thrownade
Method · 0.85
attack
Method · 0.85
Calls
2
updatetimers
Method · 0.80
loopi
Function · 0.70
Tested by
no test coverage detected