MCPcopy 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

582hitweap accuracym[NUMGUNS];
583
584inline void attackevent(playerent *owner, int weapon)
585{
586 if(owner == player1) exechook(HOOK_SP, "onAttack", "%d", weapon);
587}
588
589vector<hitmsg> hits;
590

Callers 1

attackMethod · 0.85

Calls 1

exechookFunction · 0.85

Tested by

no test coverage detected