mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
don't print practice mode warning when teleporting to practice mode checkpoint while already in practice mode
This commit is contained in:
parent
f3ec01870b
commit
f5652c641e
@ -1456,6 +1456,14 @@ void LoadCheckpointCache(int client, cp_cache_t cpcache, bool isPersistentData)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cpcache.aSnapshot.bPracticeMode || !(cpcache.bSegmented || isPersistentData) || GetSteamAccountID(client) != cpcache.iSteamID)
|
||||||
|
{
|
||||||
|
cpcache.aSnapshot.bPracticeMode = true;
|
||||||
|
|
||||||
|
// Do this here to trigger practice mode alert
|
||||||
|
Shavit_SetPracticeMode(client, true, true);
|
||||||
|
}
|
||||||
|
|
||||||
Shavit_LoadSnapshot(client, cpcache.aSnapshot);
|
Shavit_LoadSnapshot(client, cpcache.aSnapshot);
|
||||||
|
|
||||||
SetEntPropFloat(client, Prop_Send, "m_flLaggedMovementValue", cpcache.fSpeed);
|
SetEntPropFloat(client, Prop_Send, "m_flLaggedMovementValue", cpcache.fSpeed);
|
||||||
@ -1469,14 +1477,8 @@ void LoadCheckpointCache(int client, cp_cache_t cpcache, bool isPersistentData)
|
|||||||
// Used to trigger all endtouch booster events which are then wiped via eventqueuefix :)
|
// Used to trigger all endtouch booster events which are then wiped via eventqueuefix :)
|
||||||
MaybeDoPhysicsUntouch(client);
|
MaybeDoPhysicsUntouch(client);
|
||||||
|
|
||||||
if (cpcache.aSnapshot.bPracticeMode || !(cpcache.bSegmented || isPersistentData) || GetSteamAccountID(client) != cpcache.iSteamID)
|
if (!cpcache.aSnapshot.bPracticeMode)
|
||||||
{
|
{
|
||||||
Shavit_SetPracticeMode(client, true, true);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Shavit_SetPracticeMode(client, false, true);
|
|
||||||
|
|
||||||
if (gB_ReplayRecorder)
|
if (gB_ReplayRecorder)
|
||||||
{
|
{
|
||||||
Shavit_HijackAngles(client, cpcache.fAngles[0], cpcache.fAngles[1], -1);
|
Shavit_HijackAngles(client, cpcache.fAngles[0], cpcache.fAngles[1], -1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user