1
This commit is contained in:
parent
05556266c3
commit
c233771ea3
@ -97,6 +97,8 @@ namespace mt
|
|||||||
METAMGR_READ(inwater_oxygen_recover, 20);
|
METAMGR_READ(inwater_oxygen_recover, 20);
|
||||||
|
|
||||||
METAMGR_READ(move_step_len, 80);
|
METAMGR_READ(move_step_len, 80);
|
||||||
|
|
||||||
|
METAMGR_READ(early_parachute_jump, 0);
|
||||||
}
|
}
|
||||||
#if 0
|
#if 0
|
||||||
{
|
{
|
||||||
|
@ -18,6 +18,7 @@ namespace mt
|
|||||||
int fighting_mode = 0;
|
int fighting_mode = 0;
|
||||||
float max_oil = 0.0f;
|
float max_oil = 0.0f;
|
||||||
float max_mount_horse_distance = 100.0f;
|
float max_mount_horse_distance = 100.0f;
|
||||||
|
int early_parachute_jump = 0;
|
||||||
|
|
||||||
int downed_relive_recover_hp = 0;
|
int downed_relive_recover_hp = 0;
|
||||||
|
|
||||||
|
@ -1361,7 +1361,8 @@ void Room::UpdateGasJump()
|
|||||||
glm::vec3 len_vec = plane.dir *
|
glm::vec3 len_vec = plane.dir *
|
||||||
((GetFrameNo() - GetGasData().gas_start_frameno)*airline_->plane_speed() / SERVER_FRAME_RATE);
|
((GetFrameNo() - GetGasData().gas_start_frameno)*airline_->plane_speed() / SERVER_FRAME_RATE);
|
||||||
plane.curr_pos = plane.start_point + len_vec;
|
plane.curr_pos = plane.start_point + len_vec;
|
||||||
if (GlmHelper::Norm(plane.end_point - plane.start_point) <= GlmHelper::Norm(len_vec)) {
|
if (GlmHelper::Norm(plane.end_point - plane.start_point) <=
|
||||||
|
GlmHelper::Norm(len_vec) + mt::Param::s().early_parachute_jump) {
|
||||||
TraverseHumanList
|
TraverseHumanList
|
||||||
(
|
(
|
||||||
[] (Human* hum) -> bool
|
[] (Human* hum) -> bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user