alias cl_hook_gameend
alias cl_hook_shutdown
alias cl_hook_activeweapon
+// called on client personal best set
+// $1 new pb time,
+// $2 old pb time,
+// $3 how much time the pb improved by
+// $4 new rank# on the leaderboard
+alias cl_hook_race_pb
f &= ~1;
cvar_set("cl_autodemo_delete", ftos(f)); // don't delete demo with new record!
}
+ localcmd("\ncl_hook_race_pb \"",
+ TIME_ENCODED_TOSTRING(score, false), "\" \"",
+ TIME_ENCODED_TOSTRING(t, false), "\" \"",
+ (t ? TIME_ENCODED_TOSTRING(t-score, false) : "0"), "\" \"",
+ sprintf("%d", race_myrank), "\"\n");
}
if(t != crecordtime_prev) {