mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 03:18:25 +00:00
Teleport replay bot to start on new WR
(untested, should work tho)
This commit is contained in:
parent
ab82bf8448
commit
245940f9c4
@ -674,19 +674,22 @@ public void Shavit_OnWorldRecord(int client, BhopStyle style, float time)
|
|||||||
gA_Frames[style] = gA_PlayerFrames[client].Clone();
|
gA_Frames[style] = gA_PlayerFrames[client].Clone();
|
||||||
|
|
||||||
ClearFrames(client);
|
ClearFrames(client);
|
||||||
|
|
||||||
gRS_ReplayStatus[style] = Replay_Running;
|
|
||||||
gI_ReplayTick[style] = gA_PlayerFrames[client].Length;
|
|
||||||
|
|
||||||
SaveReplay(style);
|
SaveReplay(style);
|
||||||
|
|
||||||
char[] sWRTime = new char[16];
|
|
||||||
FormatSeconds(time, sWRTime, 16);
|
|
||||||
|
|
||||||
if(gI_ReplayBotClient[style] != 0)
|
if(gI_ReplayBotClient[style] != 0)
|
||||||
{
|
{
|
||||||
UpdateReplayInfo(gI_ReplayBotClient[style], style, time);
|
UpdateReplayInfo(gI_ReplayBotClient[style], style, time);
|
||||||
CS_RespawnPlayer(gI_ReplayBotClient[style]);
|
CS_RespawnPlayer(gI_ReplayBotClient[style]);
|
||||||
|
|
||||||
|
gRS_ReplayStatus[style] = Replay_Running;
|
||||||
|
gI_ReplayTick[style] = 0;
|
||||||
|
|
||||||
|
float vecPosition[3];
|
||||||
|
vecPosition[0] = gA_Frames[style].Get(0, 0);
|
||||||
|
vecPosition[1] = gA_Frames[style].Get(0, 1);
|
||||||
|
vecPosition[2] = gA_Frames[style].Get(0, 2);
|
||||||
|
|
||||||
|
TeleportEntity(client, vecPosition, NULL_VECTOR, NULL_VECTOR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user