diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-11-16 10:21:50 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-11-16 10:21:50 +0100 |
commit | 7339ebce60eaab4dd229e4fb95e333e57300cbfe (patch) | |
tree | 4dfa4b30fcb481fe4001e2717094ed630dd869dc /src/control/CarCtrl.h | |
parent | car AI revision (diff) | |
download | re3-7339ebce60eaab4dd229e4fb95e333e57300cbfe.tar re3-7339ebce60eaab4dd229e4fb95e333e57300cbfe.tar.gz re3-7339ebce60eaab4dd229e4fb95e333e57300cbfe.tar.bz2 re3-7339ebce60eaab4dd229e4fb95e333e57300cbfe.tar.lz re3-7339ebce60eaab4dd229e4fb95e333e57300cbfe.tar.xz re3-7339ebce60eaab4dd229e4fb95e333e57300cbfe.tar.zst re3-7339ebce60eaab4dd229e4fb95e333e57300cbfe.zip |
Diffstat (limited to 'src/control/CarCtrl.h')
-rw-r--r-- | src/control/CarCtrl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/control/CarCtrl.h b/src/control/CarCtrl.h index 5efbe275..61ebb35c 100644 --- a/src/control/CarCtrl.h +++ b/src/control/CarCtrl.h @@ -130,6 +130,9 @@ public: static void SteerAIBoatWithPhysicsAttackingPlayer(CVehicle*, float*, float*, float*, bool*); static void SteerAICarBlockingPlayerForwardAndBack(CVehicle*, float*, float*, float*, bool*); + static bool OkToCreateVehicleAtThisPosition(const CVector&) { return true; } + static float GetATanOfXY(float x, float y) { float t = CGeneral::GetATanOfXY(x, y); if (t < 0.0f) t += TWOPI; return t; } // TODO(LCS): replace where required + static float GetPositionAlongCurrentCurve(CVehicle* pVehicle) { uint32 timeInCurve = CTimer::GetTimeInMilliseconds() - pVehicle->AutoPilot.m_nTimeEnteredCurve; |