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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue