1
This commit is contained in:
parent
a676e22867
commit
00ef4b98a3
@ -19,6 +19,8 @@ namespace mt
|
||||
{
|
||||
{
|
||||
s_.gas_inactive_time = GetIntParam("gas_inactive_time");
|
||||
s_.rank_gas_inactive_time = GetIntParam("rank_gas_inactive_time", 40);
|
||||
s_.master_rank_gas_inactive_time = GetIntParam("rank_gas_inactive_time", 60);
|
||||
|
||||
s_.downed_relive_recover_hp = GetIntParam("downed_relive_recover_hp");
|
||||
|
||||
|
@ -13,6 +13,8 @@ namespace mt
|
||||
struct S {
|
||||
int android_auto_combine_team = 1;
|
||||
int gas_inactive_time = 10;
|
||||
int rank_gas_inactive_time = 40;
|
||||
int master_rank_gas_inactive_time = 60;
|
||||
float kill_param = 0.0f;
|
||||
float rank_param = 0.0f;
|
||||
int fighting_mode = 0;
|
||||
|
@ -2279,7 +2279,15 @@ long long Room::GetGasInactiveTime()
|
||||
if (IsPveRoom()) {
|
||||
return 10;
|
||||
} else {
|
||||
return mt::Param::s().gas_inactive_time;
|
||||
if (IsPvpRankModeRoom()) {
|
||||
if (IsPvpMasterRankModeRoom()) {
|
||||
return mt::Param::s().master_rank_gas_inactive_time;
|
||||
} else {
|
||||
return mt::Param::s().rank_gas_inactive_time;
|
||||
}
|
||||
} else {
|
||||
return mt::Param::s().gas_inactive_time;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -3498,3 +3506,8 @@ bool Room::MoveCanReach(const glm::vec3& start, const glm::vec3& end)
|
||||
{
|
||||
return BulletCanReach(start, end);
|
||||
}
|
||||
|
||||
bool Room::IsPvpMasterRankModeRoom()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -116,6 +116,7 @@ public:
|
||||
bool IsSurvivalRoom();
|
||||
bool IsNewBieRoom();
|
||||
bool IsPvpRankModeRoom() { return GetRoomMode() == kPvpRankMode; }
|
||||
bool IsPvpMasterRankModeRoom();
|
||||
|
||||
int GetPlayerNum();
|
||||
int GetHumanNum();
|
||||
|
Loading…
x
Reference in New Issue
Block a user