mirror of
https://github.com/APercy/airutils.git
synced 2025-07-15 10:46:42 -04:00
improved tild and speed control
This commit is contained in:
parent
5f78cbdd59
commit
9772e7270d
3 changed files with 59 additions and 30 deletions
|
@ -440,7 +440,7 @@ function airutils.testImpact(self, velocity, position)
|
|||
if self._last_speed_damage_time == nil then self._last_speed_damage_time = 0 end
|
||||
self._last_speed_damage_time = self._last_speed_damage_time + self.dtime
|
||||
if self._last_speed_damage_time > 2 then self._last_speed_damage_time = 2 end
|
||||
if self._longit_speed > self._speed_not_exceed and self._last_speed_damage_time >= 2 then
|
||||
if math.abs(self._longit_speed) > self._speed_not_exceed and self._last_speed_damage_time >= 2 then
|
||||
self._last_speed_damage_time = 0
|
||||
minetest.sound_play("airutils_collision", {
|
||||
--to_player = self.driver_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue