mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
fixing issues pointed by Stella
This commit is contained in:
parent
8bf6bb87aa
commit
cf7cd5f7dc
2 changed files with 5 additions and 2 deletions
|
@ -522,7 +522,7 @@ function airutils.logic(self)
|
|||
self.object:set_rotation({x=newpitch,y=newyaw,z=newroll})
|
||||
--end
|
||||
|
||||
if longit_speed > self._max_speed and self._flap == true then
|
||||
if (longit_speed / 2) > self._max_speed and self._flap == true then
|
||||
if is_attached and self.driver_name then
|
||||
minetest.chat_send_player(self.driver_name, core.colorize('#ff0000', " >>> Flaps retracted due for overspeed"))
|
||||
end
|
||||
|
|
|
@ -327,7 +327,10 @@ function airutils.testImpact(self, velocity, position)
|
|||
end
|
||||
end
|
||||
|
||||
if vertical_impact > 0.5 and self._longit_speed > self._min_speed/2 then
|
||||
if self._last_touch == nil then self._last_touch = 1 end
|
||||
if self._last_touch <= 1 then self._last_touch = self._last_touch + self.dtime end
|
||||
if vertical_impact > 0.5 and self._longit_speed > self._min_speed/2 and self._last_touch >= 1 then
|
||||
self._last_touch = 0
|
||||
local noded = airutils.nodeatpos(airutils.pos_shift(p,{y=touch_point}))
|
||||
if (noded and noded.drawtype ~= 'airlike') then
|
||||
minetest.sound_play("airutils_touch", {
|
||||
|
|
Loading…
Add table
Reference in a new issue