Change default command ranks.

This commit is contained in:
ratkosrb
2019-02-23 14:08:50 +02:00
parent ed383e83fc
commit dd8f591dd9
5 changed files with 648 additions and 642 deletions
+6 -6
View File
@@ -2627,19 +2627,19 @@ void WorldObject::GetCreatureListWithEntryInGrid(std::list<Creature*>& lList, ui
}
void WorldObject::GetRelativePositions(float avantArriere, float gaucheDroite, float hautBas, float &x, float &y, float &z)
void WorldObject::GetRelativePositions(float fForwardBackward, float fLeftRight, float fUpDown, float &x, float &y, float &z)
{
float orientation = GetOrientation() + M_PI / 2.0f;
float x_coef = cos(orientation);
float y_coef = sin(orientation);
float x_range_add = cos(GetOrientation()) * avantArriere;
float y_range_add = sin(GetOrientation()) * avantArriere;
float x_range_add = cos(GetOrientation()) * fForwardBackward;
float y_range_add = sin(GetOrientation()) * fForwardBackward;
x = GetPositionX() + x_coef * gaucheDroite + x_range_add;
y = GetPositionY() + y_coef * gaucheDroite + y_range_add;
z = GetPositionZ() + hautBas;
x = GetPositionX() + x_coef * fLeftRight + x_range_add;
y = GetPositionY() + y_coef * fLeftRight + y_range_add;
z = GetPositionZ() + fUpDown;
}
void WorldObject::GetInCirclePositions(float dist, uint32 curr, uint32 total, float &x, float &y, float &z, float &o)