mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
commit
c631f2f549
@ -23,7 +23,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#define _shavit_included
|
#define _shavit_included
|
||||||
|
|
||||||
#define SHAVIT_VERSION "2.5.0"
|
#define SHAVIT_VERSION "2.5.1"
|
||||||
#define STYLE_LIMIT 256
|
#define STYLE_LIMIT 256
|
||||||
#define MAX_ZONES 64
|
#define MAX_ZONES 64
|
||||||
#define MAX_NAME_LENGTH_SQL 32
|
#define MAX_NAME_LENGTH_SQL 32
|
||||||
|
|||||||
@ -86,6 +86,7 @@ enum struct persistent_data_t
|
|||||||
int iTargetname;
|
int iTargetname;
|
||||||
int iClassname;
|
int iClassname;
|
||||||
ArrayList aFrames;
|
ArrayList aFrames;
|
||||||
|
bool bPractice;
|
||||||
}
|
}
|
||||||
|
|
||||||
// game specific
|
// game specific
|
||||||
@ -1116,6 +1117,7 @@ void PersistData(int client)
|
|||||||
aData.iMoveType = GetEntityMoveType(client);
|
aData.iMoveType = GetEntityMoveType(client);
|
||||||
aData.fGravity = GetEntityGravity(client);
|
aData.fGravity = GetEntityGravity(client);
|
||||||
aData.fSpeed = GetEntPropFloat(client, Prop_Send, "m_flLaggedMovementValue");
|
aData.fSpeed = GetEntPropFloat(client, Prop_Send, "m_flLaggedMovementValue");
|
||||||
|
aData.bPractice = Shavit_IsPracticeMode(client);
|
||||||
|
|
||||||
float fPosition[3];
|
float fPosition[3];
|
||||||
GetClientAbsOrigin(client, fPosition);
|
GetClientAbsOrigin(client, fPosition);
|
||||||
@ -1224,12 +1226,17 @@ public Action Timer_LoadPersistentData(Handle Timer, any data)
|
|||||||
SetEntPropString(client, Prop_Data, "m_iClassname", sClassname);
|
SetEntPropString(client, Prop_Data, "m_iClassname", sClassname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TeleportEntity(client, fPosition, fAngles, view_as<float>({ 0.0, 0.0, 0.0 }));
|
||||||
|
|
||||||
if(gB_Replay && aData.aFrames != null)
|
if(gB_Replay && aData.aFrames != null)
|
||||||
{
|
{
|
||||||
Shavit_SetReplayData(client, aData.aFrames);
|
Shavit_SetReplayData(client, aData.aFrames);
|
||||||
}
|
}
|
||||||
|
|
||||||
TeleportEntity(client, fPosition, fAngles, view_as<float>({ 0.0, 0.0, 0.0 }));
|
if(aData.bPractice)
|
||||||
|
{
|
||||||
|
Shavit_SetPracticeMode(client, true, false);
|
||||||
|
}
|
||||||
|
|
||||||
delete aData.aFrames;
|
delete aData.aFrames;
|
||||||
gA_PersistentData.Erase(iIndex);
|
gA_PersistentData.Erase(iIndex);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user