Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/assaultcube/AC
/ attackevent
Function
attackevent
source/src/weapon.cpp:584–587 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
582
hitweap accuracym[NUMGUNS];
583
584
inline void attackevent(playerent *owner, int weapon)
585
{
586
if(owner == player1) exechook(HOOK_SP,
"onAttack"
,
"%d"
, weapon);
587
}
588
589
vector<hitmsg> hits;
590
Callers
1
attack
Method · 0.85
Calls
1
exechook
Function · 0.85
Tested by
no test coverage detected