1
This commit is contained in:
parent
c7e6bb1bdd
commit
526cbf2fc0
@ -38,6 +38,33 @@ namespace mt
|
||||
#if 1
|
||||
s_.match_lock_time++;
|
||||
#endif
|
||||
#if 1
|
||||
{
|
||||
std::string point = GetStringParam("newbie_room_born_point", "3471.3662:6.8399:5268.6240");
|
||||
std::vector<std::string> strings;
|
||||
a8::Split(point, strings, ':');
|
||||
if (strings.size() != 3) {
|
||||
abort();
|
||||
}
|
||||
s_.newbie_room_born_point = glm::vec3
|
||||
(
|
||||
(float)a8::XValue(strings[0]).GetDouble(),
|
||||
(float)a8::XValue(strings[1]).GetDouble(),
|
||||
(float)a8::XValue(strings[2]).GetDouble()
|
||||
);
|
||||
}
|
||||
s_.newbie_room_hp_rate = a8::XValue(GetStringParam("newbie_room_hp_rate", "0.8")).GetDouble();
|
||||
s_.newbie_room_hero_id = a8::XValue(GetStringParam("newbie_room_hero_id", ""));
|
||||
s_.newbie_room_weapon_id = a8::XValue(GetStringParam("newbie_room_weapon_id", ""));
|
||||
{
|
||||
std::string point = GetStringParam("newbie_room_skills", "");
|
||||
std::vector<std::string> strings;
|
||||
a8::Split(point, strings, ':');
|
||||
for (auto& str : strings) {
|
||||
s_.newbie_room_skills.push_back(a8::XValue(str));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef DEBUG
|
||||
s_.match_team_time = 6;
|
||||
s_.match_robot_time = 5;
|
||||
|
@ -21,6 +21,9 @@ namespace mt
|
||||
int early_parachute_jump = 0;
|
||||
glm::vec3 newbie_room_born_point = glm::vec3(0.0f, 0.0f, 0.0f);
|
||||
float newbie_room_hp_rate = 0.0f;
|
||||
int newbie_room_hero_id = 0;
|
||||
int newbie_room_weapon_id = 0;
|
||||
std::vector<int> newbie_room_skills;
|
||||
|
||||
int downed_relive_recover_hp = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user