forked from mtcontrib/hangglider
Update 'init.lua'
This commit is contained in:
parent
9e73a0b12b
commit
cc2cbd4973
2
init.lua
2
init.lua
@ -217,7 +217,7 @@ minetest.register_tool("hangglider:hangglider", {
|
|||||||
minetest.sound_play("bedsheet", {pos=pos, max_hear_distance = 8, gain = 1.0})
|
minetest.sound_play("bedsheet", {pos=pos, max_hear_distance = 8, gain = 1.0})
|
||||||
if HUD_Overlay then user:hud_change(hangglider.id[pname], "text", "glider_struts.png") end
|
if HUD_Overlay then user:hud_change(hangglider.id[pname], "text", "glider_struts.png") end
|
||||||
local vel = user:get_player_velocity().y
|
local vel = user:get_player_velocity().y
|
||||||
if vel < -2 then -- engage mid-air, falling fast, so stop but ramp velocity more quickly
|
if vel < -0.8 then -- engage mid-air, falling fast, so stop but ramp velocity more quickly
|
||||||
hangglider.airbreak[pname] = true
|
hangglider.airbreak[pname] = true
|
||||||
user:set_physics_override({
|
user:set_physics_override({
|
||||||
gravity = 1,
|
gravity = 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user