Add sprint_begin and sprint_end notifies for GSC.

This commit is contained in:
JezuzLizard
2023-04-29 21:10:35 -07:00
parent 2416967be7
commit 0598cee8f5
4 changed files with 29 additions and 0 deletions

View File

@@ -695,6 +695,11 @@ namespace game
}
}
bool PM_IsSprinting(const playerState_s* ps)
{
return ps->sprintState.lastSprintStart && ps->sprintState.lastSprintStart > ps->sprintState.lastSprintEnd;
}
game::pathnode_t* Path_ConvertIndexToNode(int index)
{
return &(*game::gameWorldCurrent)->path.nodes[index];