1
0
mirror of https://github.com/mt-mods/hangglider.git synced 2025-11-17 15:55:29 +01:00
Commit Graph

57 Commits

Author SHA1 Message Date
Medley
17419f721e Add support for games without default game (MTG) (#25)
* Add support for games without `default`

This adds support for games like Mineclonia, and any game xcompat adds
support for. The only asterix is dye support, the pattern for dyes has
been expanded for common dye mods, but if a new dye mod has different
dye names those might not work without an update to the pattern.

* Refactor & fix Farlands dye support

* Add some mcl colors, make names & their order consistent

* Fix old crafting bug & refacfor crafting

* Minor refactor & reorder for clarity

* Fix for Farlands `get_name` returning "" not nil

Farlands seems to return "" instead of nil/0 when no item is present.
By accounting for this, this commit fixes an issue where any empty slot
repaired the glider.

* Separate color handling to new module

* Luacheck fix

* Ignore empty `do end` luacheck warnings

* Replace `minetest.` with `core.`
2025-10-19 10:22:36 -04:00
Niklp
6c23c135dc Improve interoperability without player_monoids and pova (#24)
* Import noobdigital87's changes

Co-authored-by: noobdigital87 <noobdigital87@gmail.com>

* Fix hud type; remove useless code; style

---------

Co-authored-by: noobdigital87 <noobdigital87@gmail.com>
2025-07-11 08:53:07 +02:00
Niklp
f970874855 Cleanup HUD code (#21) 2025-05-24 17:49:24 -04:00
tenplus1
071fe93cf5 add pova support (#20)
* Update mod.conf

add pova optional dependency

* Update init.lua

add support for pova

* Update .luacheckrc

---------

Co-authored-by: Luke aka SwissalpS <161979+SwissalpS@users.noreply.github.com>
2025-01-18 17:42:39 +01:00
Niklp
49a878aa03 Optimize remove_physics_overrides() a bit (#19) 2024-04-28 21:26:12 +02:00
Luke aka SwissalpS
3e304e3e5d Add translation support and ca, de and es translations (#18) 2024-04-25 14:23:20 +10:00
Luke aka SwissalpS
8fc1f596d2 Preserve colour on repair by crafting (#15) 2024-04-13 19:18:52 +02:00
OgelGames
2c708abd88 fix pattern to match dye name with underscores
fixes #12
2023-08-06 00:49:16 +10:00
OgelGames
f4a297eb30 new screenshot 2023-08-05 16:15:26 +10:00
OgelGames
c2f339c0a4 Hangglider rewrite and improvements (#11)
* hangglider rewrite

* correct job name and use faster luacheck action

* more powerful airbrake and less antigravity

* optimize textures

* Update .luacheckrc

* update item texture to match actual appearance

* up to 256 colors of glider with only one recipe

* fix mtg dye colors not working

* almost forgot to add a readme

* export ignore

* Update mod.conf

* Update README.md
2023-08-03 08:33:36 +02:00
Niklp
6f837e9e44 Revert "fix fly upwards" workaround (#10) 2023-08-01 17:59:11 +10:00
luk3yx
cd48ef801f Fix mixed spaces+tabs 2023-03-27 15:34:03 +13:00
luk3yx
e923729c9c Make areas warning time configurable (#8) 2023-03-26 22:29:18 -04:00
Niklp
fd357093e5 fix fly upwards (#7) 2023-03-24 14:55:35 +01:00
Niklp
3c2618437a [WIP] cleanup, remove old 0.4 code (#6) 2023-01-06 21:50:44 +01:00
Niklp
cd67eb2d19 fixes #1 (#5)
* partially fixes #1

* remove support for "minetestmd" and "wardzones"
2022-07-04 21:48:01 +02:00
Niklp
bbde71805a Replace deprecated functions (#4)
* Replace deprecated functions

* add min_minetest_version
2022-06-18 21:15:23 +02:00
Luke aka SwissalpS
b65b6473c7 add Z-Index (#2)
* whitespace indents

* add z_index

* changelog
2022-05-17 06:47:15 +02:00
OgelGames
54afc348ee update luacheck 2021-01-14 14:54:56 +11:00
OgelGames
0b5b18732a correct check for fake player
fixes pandorabox-io/pandorabox.io#547
2021-01-14 14:46:06 +11:00
Buckaroo Banzai
d6af7437b2 check for "is_player()" on "on_use"
fixes https://github.com/pandorabox-io/pandorabox.io/issues/547
2020-10-05 07:00:23 +02:00
OgelGames
a814fbe160 don't shoot down area owners 2020-05-31 20:00:06 +10:00
BuckarooBanzay
c01518913b add luacheck and fix common errors
also fixes https://github.com/pandorabox-io/pandorabox.io/issues/493
2020-04-27 10:44:56 +02:00
BuckarooBanzay
e2d8721a52 check areas only for flak
fixes https://github.com/pandorabox-io/pandorabox.io/issues/377
2020-02-13 14:01:30 +01:00
Piezo_
206704ffab Fixed physicsctl allowing sprinting when gliding at full falling speed 2019-04-01 06:51:46 +00:00
Piezo_
4aa7f85fa0 Merge branch 'modname' of AntumMT/mod-hangglider into master 2019-03-05 09:47:55 +00:00
Piezo_
944efd5af7 Merge branch 'global_check' of AntumMT/mod-hangglider into master 2019-03-05 09:47:46 +00:00
Jordan Irwin
b0ebd689eb Use core.global_exists method to check for globals 2019-03-03 21:37:02 -08:00
Jordan Irwin
c30697805b Clean up some whitespace 2019-03-03 21:33:49 -08:00
Jordan Irwin
1a944d7f04 Set name in mod.conf to avoid startup error due to directory name 2019-03-03 19:37:53 -08:00
Piezo_
37758517ea Improved glider behavior when using minetestd.physicsctl 2019-01-17 16:02:50 -08:00
Piezo_
bcfc19a8b4 Update with newer minetest_systemd support 2019-01-16 22:01:47 -08:00
Piezo_
e85a77edab Fixed glider collision box (something weird's going on in 5.0.0-dev) 2019-01-05 15:18:03 -08:00
Piezo_
2b1f94b888 Merge branch 'master' of SpaghettiToastBook/minetest-hangglider into master 2018-12-30 20:36:57 +00:00
SpaghettiToastBook
e420a1bd79 Added player_monoids support 2018-12-29 20:55:28 -05:00
Piezo_
1ffed41784 Added wardzones support 2018-12-29 13:13:18 -08:00
Piezo_
954ce03435 Merge branch 'master' of https://notabug.org/Piezo_/minetest-hangglider 2018-12-28 17:52:01 -08:00
Piezo_
c88921a81d glider can now be opened anywhere; git push 2018-12-28 17:50:57 -08:00
Piezo_
43056dfe65 Merge branch 'master' of gpcf/minetest-hangglider into master 2018-12-12 02:29:22 +00:00
Gabriel Pérez-Cerezo
bc9edfa15f Merge branch 'master' of https://notabug.org/Piezo_/minetest-hangglider 2018-12-10 12:29:47 +01:00
Piezo_
43a734a57b An entire commit just for one comment 2018-12-09 17:59:23 -08:00
Piezo_
1153c08213 That didn't work, how about now? 2018-12-09 17:58:20 -08:00
Piezo_
62b8366905 simplified liquid check 2018-12-09 17:52:41 -08:00
Piezo_
61b870b9af Removed airstopper until minetest devs are smart enough to implement serverside players 2018-12-09 16:19:10 -08:00
Gabriel Pérez-Cerezo
8381bda2b4 Added option to shoot down hanggliders flying in restricted airspace
Added a /area_flak command to declare areas as closed airspace. Any
hanggliders attempting to fly in such an area will get shot down
within two seconds, which will lead to a massive loss of health to the
occupant (death if flying higher than 6 meters) and the loss of the
hangglider. The closed airspace behaviour depends on the areas mod.
2018-12-09 22:43:13 +01:00
Piezo_
1555555ac4 How did that readme get back in here? o_O 2018-11-29 21:51:56 -08:00
Piezo_
9c3beb79b0 GPL Compliance for minetest_systemd 2018-11-29 21:51:04 -08:00
Piezo_
3865d13887 Minetest_systemd dependency is now optional 2018-11-29 21:46:05 -08:00
Piezo_
9db4dd5fb3 Add glider repair recipe 2018-11-27 04:04:53 +00:00
Piezo_
d087e9648d Simplified gravity/movement internals 2018-11-26 05:43:55 +00:00