mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
fix replay bots not teleporting to start
This commit is contained in:
parent
c490eecde0
commit
a655f025c8
@ -714,7 +714,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3
|
|||||||
MakeVectorFromPoints(vecCurrentPosition, vecPosition, vecVelocity);
|
MakeVectorFromPoints(vecCurrentPosition, vecPosition, vecVelocity);
|
||||||
ScaleVector(vecVelocity, gF_Tickrate);
|
ScaleVector(vecVelocity, gF_Tickrate);
|
||||||
|
|
||||||
TeleportEntity(client, NULL_VECTOR, vecAngles, vecVelocity);
|
TeleportEntity(client, (gI_ReplayTick[iReplayBotStyle] == 1)? vecPosition:NULL_VECTOR, vecAngles, vecVelocity);
|
||||||
|
|
||||||
return Plugin_Changed;
|
return Plugin_Changed;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user