MCPcopy Create free account
hub / github.com/diasurgical/devilution / On_KNOCKBACK

Function On_KNOCKBACK

Source/msg.cpp:1995–2005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1993}
1994
1995DWORD On_KNOCKBACK(TCmd *pCmd, int pnum)
1996{
1997 TCmdParam1 *p = (TCmdParam1 *)pCmd;
1998
1999 if (gbBufferMsgs != 1 && currlevel == plr[pnum].plrlevel) {
2000 M_GetKnockback(p->wParam1);
2001 M_StartHit(p->wParam1, pnum, 0);
2002 }
2003
2004 return sizeof(*p);
2005}
2006
2007DWORD On_RESURRECT(TCmd *pCmd, int pnum)
2008{

Callers 1

ParseCmdFunction · 0.85

Calls 2

M_GetKnockbackFunction · 0.85
M_StartHitFunction · 0.85

Tested by

no test coverage detected