1
0

This adds a function that allows you to 'shoot' a player towards a direction.

This commit is contained in:
STRWarrior
2013-12-15 18:54:54 +01:00
parent ae061d717b
commit 0efd74f114
5 changed files with 49 additions and 4 deletions

View File

@@ -1069,6 +1069,16 @@ Vector3d cPlayer::GetThrowSpeed(double a_SpeedCoeff) const
void cPlayer::ShootTo(Vector3d a_Direction)
{
SetSpeed(a_Direction);
m_ClientHandle->SendEntityVelocity(*this);
}
void cPlayer::MoveTo( const Vector3d & a_NewPos )
{
if ((a_NewPos.y < -990) && (GetPosY() > -100))