fixed mistakes
This commit is contained in:
parent
f0c35ba9e9
commit
818ffd2d62
2 changed files with 7 additions and 6 deletions
|
|
@ -1049,10 +1049,11 @@ private:
|
||||||
bool OutOfBombTimer (void);
|
bool OutOfBombTimer (void);
|
||||||
void SelectLeaderEachTeam (int team);
|
void SelectLeaderEachTeam (int team);
|
||||||
|
|
||||||
const Vector &CheckToss (const Vector &start, Vector end);
|
Vector CheckToss (const Vector &start, Vector end);
|
||||||
const Vector &CheckThrow (const Vector &start, Vector end);
|
Vector CheckThrow (const Vector &start, Vector end);
|
||||||
|
Vector CheckBombAudible (void);
|
||||||
|
|
||||||
const Vector &GetAimPosition (void);
|
const Vector &GetAimPosition (void);
|
||||||
const Vector &CheckBombAudible (void);
|
|
||||||
|
|
||||||
float GetZOffset (float distance);
|
float GetZOffset (float distance);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5658,7 +5658,7 @@ void Bot::DebugMsg (const char *format, ...)
|
||||||
AddLogEntry (false, LL_DEFAULT, "%s: %s", STRING (pev->netname), buffer);
|
AddLogEntry (false, LL_DEFAULT, "%s: %s", STRING (pev->netname), buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
const Vector &Bot::CheckToss (const Vector &start, Vector end)
|
Vector Bot::CheckToss (const Vector &start, Vector end)
|
||||||
{
|
{
|
||||||
// this function returns the velocity at which an object should looped from start to land near end.
|
// this function returns the velocity at which an object should looped from start to land near end.
|
||||||
// returns null vector if toss is not feasible.
|
// returns null vector if toss is not feasible.
|
||||||
|
|
@ -5713,7 +5713,7 @@ const Vector &Bot::CheckToss (const Vector &start, Vector end)
|
||||||
return nadeVelocity * 0.777;
|
return nadeVelocity * 0.777;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Vector &Bot::CheckThrow (const Vector &start, Vector end)
|
Vector Bot::CheckThrow (const Vector &start, Vector end)
|
||||||
{
|
{
|
||||||
// this function returns the velocity vector at which an object should be thrown from start to hit end.
|
// this function returns the velocity vector at which an object should be thrown from start to hit end.
|
||||||
// returns null vector if throw is not feasible.
|
// returns null vector if throw is not feasible.
|
||||||
|
|
@ -5752,7 +5752,7 @@ const Vector &Bot::CheckThrow (const Vector &start, Vector end)
|
||||||
return nadeVelocity * 0.7793;
|
return nadeVelocity * 0.7793;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Vector &Bot::CheckBombAudible (void)
|
Vector Bot::CheckBombAudible (void)
|
||||||
{
|
{
|
||||||
// this function checks if bomb is can be heard by the bot, calculations done by manual testing.
|
// this function checks if bomb is can be heard by the bot, calculations done by manual testing.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue