mirror of
https://codeberg.org/SumianVoice/sum_airship.git
synced 2025-04-29 21:51:43 -04:00
Merge pull request 'Changed controls to be more consistent with MTG ladder behavior' (#4) from natey2000/sum_airship:main into main
Reviewed-on: https://codeberg.org/SumianVoice/sum_airship/pulls/4
This commit is contained in:
commit
2780f6321f
2 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ Mod for [Luanti](https://luanti.org). You can download it from the in-game conte
|
||||||
|
|
||||||
This mod adds an airship to Minetest. It should work in most games, but only Minetest Game, MineClone (VoxeLibre) and RePixture are supported for crafting recipes. Games based on those may still have crafting if they use the same items. Other games are not because the mod doesn't know what each game calls each item or node. Although, it shouldn't crash no matter what game you use, this is only for crafting recipes.
|
This mod adds an airship to Minetest. It should work in most games, but only Minetest Game, MineClone (VoxeLibre) and RePixture are supported for crafting recipes. Games based on those may still have crafting if they use the same items. Other games are not because the mod doesn't know what each game calls each item or node. Although, it shouldn't crash no matter what game you use, this is only for crafting recipes.
|
||||||
|
|
||||||
**Controls:** Flies like a boat, WASD, jump and aux1 (sprint) for up and down. Shift to dismount. Does not require fuel but will go faster when given any type of coal.
|
**Controls:** Flies like a boat, WSAD controls with the addition of jump for up, sneak for down, and aux1 (sprint) to dismount. Does not require fuel but will go faster when given any type of coal.
|
||||||
|
|
||||||
### Crafting
|
### Crafting
|
||||||
|
|
||||||
|
|
|
@ -289,7 +289,7 @@ function ship.on_step(self, dtime, moveresult)
|
||||||
if self._driver and self._driver:is_player() then
|
if self._driver and self._driver:is_player() then
|
||||||
local name = self._driver:get_player_name()
|
local name = self._driver:get_player_name()
|
||||||
pi = self._driver:get_player_control()
|
pi = self._driver:get_player_control()
|
||||||
exit = pi.sneak
|
exit = pi.aux1
|
||||||
end
|
end
|
||||||
if exit then
|
if exit then
|
||||||
me.detach(self)
|
me.detach(self)
|
||||||
|
@ -316,7 +316,7 @@ function ship.on_step(self, dtime, moveresult)
|
||||||
if pi.up then forward = 1
|
if pi.up then forward = 1
|
||||||
elseif pi.down then forward = -1 end
|
elseif pi.down then forward = -1 end
|
||||||
if pi.jump then climb = 1
|
if pi.jump then climb = 1
|
||||||
elseif pi.aux1 then climb = -1 end
|
elseif pi.sneak then climb = -1 end
|
||||||
if pi.right then right = 1
|
if pi.right then right = 1
|
||||||
elseif pi.left then right = -1 end
|
elseif pi.left then right = -1 end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue