mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-04-03 16:29:01 +03:00
add new cvar "bot_excellent_morale" (#1035)
This commit is contained in:
parent
b8e9726347
commit
316405b00d
@ -123,6 +123,7 @@ This means that plugins that do binary code analysis (Orpheu for example) probab
|
||||
| mp_ammo_respawn_time | 20 | 0.0 | - | The respawn time for ammunition. |
|
||||
| mp_vote_flags | km | 0 | - | Vote systems enabled in server.<br/>`0` voting disabled<br/>`k` votekick enabled via `vote` command<br/>`m` votemap enabled via `votemap` command |
|
||||
| mp_votemap_min_time | 180 | 0.0 | - | Minimum seconds that must elapse on map before `votemap` command can be used. |
|
||||
| bot_excellent_morale | 0 | 0 | 1 | Bots always have great morale regardless of defeat or victory. |
|
||||
|
||||
</details>
|
||||
|
||||
|
9
dist/game.cfg
vendored
9
dist/game.cfg
vendored
@ -521,7 +521,7 @@ mp_give_c4_frags "3"
|
||||
// Default value: "1.0"
|
||||
mp_hostages_rescued_ratio "1.0"
|
||||
|
||||
// Legacy func_vehicle behavior when blocked by another entity.
|
||||
// Legacy func_vehicle behavior when blocked by another entity.
|
||||
// New one is more useful for playing multiplayer.
|
||||
//
|
||||
// 0 - New behavior
|
||||
@ -620,3 +620,10 @@ mp_vote_flags "km"
|
||||
//
|
||||
// Default value: "180"
|
||||
mp_votemap_min_time "180"
|
||||
|
||||
// Bots always have great morale regardless of defeat or victory.
|
||||
// 0 - disabled (default behaviour)
|
||||
// 1 - enabled
|
||||
//
|
||||
// Default value: "0"
|
||||
bot_excellent_morale "0"
|
||||
|
@ -1119,6 +1119,11 @@ inline bool CCSBot::IsAtBombsite()
|
||||
|
||||
inline CCSBot::MoraleType CCSBot::GetMorale() const
|
||||
{
|
||||
#ifdef REGAMEDLL_ADD
|
||||
if (cv_bot_excellent_morale.value != 0.0f)
|
||||
return EXCELLENT;
|
||||
#endif
|
||||
|
||||
return m_morale;
|
||||
}
|
||||
|
||||
|
@ -65,6 +65,7 @@ cvar_t cv_bot_join_delay = { "bot_join_delay", "0", FCVAR_SERVER, 0.
|
||||
cvar_t cv_bot_freeze = { "bot_freeze", "0", 0, 0.0f, nullptr };
|
||||
cvar_t cv_bot_mimic = { "bot_mimic", "0", 0, 0.0f, nullptr };
|
||||
cvar_t cv_bot_mimic_yaw_offset = { "bot_mimic_yaw_offset", "0", 0, 0.0f, nullptr };
|
||||
cvar_t cv_bot_excellent_morale = { "bot_excellent_morale", "0", 0, 0.0f, nullptr };
|
||||
#else
|
||||
// Migrated to bot_quota_mode, use "match"
|
||||
cvar_t cv_bot_quota_match = { "bot_quota_match", "0", FCVAR_SERVER, 0.0f, nullptr };
|
||||
@ -136,6 +137,7 @@ void Bot_RegisterCVars()
|
||||
CVAR_REGISTER(&cv_bot_freeze);
|
||||
CVAR_REGISTER(&cv_bot_mimic);
|
||||
CVAR_REGISTER(&cv_bot_mimic_yaw_offset);
|
||||
CVAR_REGISTER(&cv_bot_excellent_morale);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
@ -65,6 +65,7 @@ extern cvar_t cv_bot_join_delay;
|
||||
extern cvar_t cv_bot_freeze;
|
||||
extern cvar_t cv_bot_mimic;
|
||||
extern cvar_t cv_bot_mimic_yaw_offset;
|
||||
extern cvar_t cv_bot_excellent_morale;
|
||||
#else
|
||||
extern cvar_t cv_bot_quota_match;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user