Skip to content

Instantly share code, notes, and snippets.

static int pv_enter = 0;
static int pv_exit = 1;
void CSDKGameRules::CalculateSlowMoForPlayer(CSDKPlayer* pPlayer)
{
/*pv_enter should always be less than pv_exit.
If it isn't then it means this function is getting called asynchronously.
pv_enter and pv_exit are incremented at opposing sides of the function,
this is a cheap bid to increase the resolution of this diagnostic.*/
Assert (pv_enter < pv_exit);
if (!pPlayer)