conf: get decal indices during config load
combat: do not init hitbox aiming if disabled nav: reverted some last changes nav: fixed check fall on ladders chat: added %g keyword that is replaced with graph author
This commit is contained in:
parent
7157cf1b2f
commit
ecb1f20303
12 changed files with 79 additions and 106 deletions
11
inc/config.h
11
inc/config.h
|
|
@ -48,7 +48,7 @@ private:
|
|||
SmallArray <WeaponInfo> m_weapons {};
|
||||
SmallArray <WeaponProp> m_weaponProps {};
|
||||
|
||||
StringArray m_logos {};
|
||||
IntArray m_logosIndices {};
|
||||
StringArray m_avatars {};
|
||||
|
||||
HashMap <uint32_t, String, Hash <int32_t>> m_language {};
|
||||
|
|
@ -244,13 +244,8 @@ public:
|
|||
}
|
||||
|
||||
// get's random logo index
|
||||
int32_t getRandomLogoIndex () const {
|
||||
return static_cast <int32_t> (m_logos.index (m_logos.random ()));
|
||||
}
|
||||
|
||||
// get random name by index
|
||||
StringRef getLogoName (int index) {
|
||||
return m_logos[index];
|
||||
int32_t getRandomLogoDecalIndex () const {
|
||||
return static_cast <int32_t> (m_logosIndices.random ());
|
||||
}
|
||||
|
||||
// get custom value
|
||||
|
|
|
|||
|
|
@ -439,12 +439,12 @@ constexpr auto kSprayDistanceX2 = kSprayDistance * 2;
|
|||
constexpr auto kMaxChatterRepeatInterval = 99.0f;
|
||||
constexpr auto kViewFrameUpdate = 1.0f / 25.0f;
|
||||
constexpr auto kGrenadeDamageRadius = 385.0f;
|
||||
constexpr auto kMinMovedDistance = 2.0f;
|
||||
constexpr auto kMinMovedDistance = 3.0f;
|
||||
|
||||
constexpr auto kInfiniteDistanceLong = static_cast <int> (kInfiniteDistance);
|
||||
constexpr auto kMaxWeapons = 32;
|
||||
constexpr auto kNumWeapons = 26;
|
||||
constexpr auto kMaxCollideMoves = 3;
|
||||
constexpr auto kMaxCollideMoves = 4;
|
||||
constexpr auto kGameMaxPlayers = 32;
|
||||
constexpr auto kGameTeamNum = 2;
|
||||
constexpr auto kInvalidNodeIndex = -1;
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ public:
|
|||
bool findNearestPlayer (void **holder, edict_t *to, float searchDistance = 4096.0, bool sameTeam = false, bool needBot = false, bool needAlive = false, bool needDrawn = false, bool needBotWithC4 = false);
|
||||
|
||||
// tracing decals for bots spraying logos
|
||||
void decalTrace (entvars_t *pev, TraceResult *trace, int logotypeIndex);
|
||||
void decalTrace (TraceResult *trace, int decalIndex);
|
||||
|
||||
// update stats on clients
|
||||
void updateClients ();
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ struct WeaponInfo {
|
|||
int id {}; // the weapon id value
|
||||
StringRef name {}; // name of the weapon when selecting it
|
||||
StringRef model {}; // model name to separate cs weapons
|
||||
StringRef alias {}; // alias name for weapon
|
||||
int price {}; // price when buying
|
||||
int minPrimaryAmmo {}; // minimum primary ammo
|
||||
int teamStandard {}; // used by team (number) (standard map)
|
||||
|
|
@ -235,7 +236,6 @@ private:
|
|||
float m_prevTime {}; // time previously checked movement speed
|
||||
float m_heavyTimestamp {}; // is it time to execute heavy-weight functions
|
||||
float m_prevSpeed {}; // speed some frames before
|
||||
float m_prevVelocity {}; // velocity some frames before
|
||||
float m_timeDoorOpen {}; // time to next door open check
|
||||
float m_timeHitDoor {}; // specific time after hitting the door
|
||||
float m_lastChatTime {}; // time bot last chatted
|
||||
|
|
@ -315,7 +315,6 @@ private:
|
|||
|
||||
PathWalk m_pathWalk {}; // pointer to current node from path
|
||||
Dodge m_dodgeStrafeDir {}; // direction to strafe
|
||||
Dodge m_avoidAction {}; // player avoid action
|
||||
Fight m_fightStyle {}; // combat style to use
|
||||
CollisionState m_collisionState {}; // collision State
|
||||
FindPath m_pathType {}; // which pathfinder to use
|
||||
|
|
@ -351,6 +350,7 @@ private:
|
|||
Vector m_breakableOrigin {}; // origin of breakable
|
||||
Vector m_rightRef {}; // right referential vector
|
||||
Vector m_checkFallPoint[2] {}; // check fall point
|
||||
Vector m_prevVelocity {}; // velocity some frames before
|
||||
|
||||
Array <edict_t *> m_ignoredBreakable {}; // list of ignored breakables
|
||||
Array <edict_t *> m_ignoredItems {}; // list of pointers to entity to ignore for pickup
|
||||
|
|
@ -651,7 +651,7 @@ public:
|
|||
int m_voteKickIndex {}; // index of player to vote against
|
||||
int m_lastVoteKick {}; // last index
|
||||
int m_voteMap {}; // number of map to vote for
|
||||
int m_logotypeIndex {}; // index for logotype
|
||||
int m_logoDecalIndex {}; // index for logotype
|
||||
int m_buyState {}; // current count in buying
|
||||
int m_blindButton {}; // buttons bot press, when blind
|
||||
int m_radioOrder {}; // actual command
|
||||
|
|
@ -930,6 +930,7 @@ extern ConVar cv_camping_time_min;
|
|||
extern ConVar cv_camping_time_max;
|
||||
extern ConVar cv_smoke_grenade_checks;
|
||||
extern ConVar cv_check_darkness;
|
||||
extern ConVar cv_use_hitbox_enemy_targeting;
|
||||
|
||||
extern ConVar mp_freezetime;
|
||||
extern ConVar mp_roundtime;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue