35 Commits

Author SHA1 Message Date
David Leal
42cec29caf
Use vector.new where possible 2023-04-04 11:33:27 -06:00
David Leal
d5ecb09738
Fix entity rotation (#10)
* Fix entity rotation

* Oops
2023-03-30 11:14:16 -06:00
David Leal
2aebdbc37c
Limit mouselook turn speed (#9)
This will make it more realistic as well similar to the WASD turn speed.
Can be enabled and disabled at any time in the Minetest settings.
2023-01-19 14:32:26 -06:00
David Leal
2b8bb9f0ae
Version 1.4 (#8)
- Deprecated functions (`get_look_yaw`) were replaced with newer ones.
- Add support for 3+ passengers (#4).
  - Thanks, @Lazerbeak12345!
- `default` was removed from dependencies. The mod can be used more freely in other games.
2023-01-16 14:02:38 -06:00
Zweihorn
88f02e2b6b
Print when the mod is loaded (#7)
* amend load print

Add a final **print to log** at the end of `init.lua` to indicate the mod was loaded successfully. This idea was derived from other mods which are specifically aimed at MT servers.

This could be useful not only for player support (e.g. in the MT forum) but would certainly be useful for MT server admins using the CLI and reading their server logs.

* amend load print with extra compatibilty

Unfortunately I do not know how to resolve a PR conversation with changing my own commit accordingly (yet).

My prior PR was aiming at compatibilty with legacy clients and servers. If you scan the MT forum you will become aware that there seem to be quite many MT 0.4 servers around which are actively used by many players. I would like to continue in using the one load print for better compatibilty with legacy MT software in the field and would use the minetest.log for all other cases where applicable.

However, the best solution may be this new piece of improved code, if I understand the MT Lua code correctly.

* amend load print with improved compatibility

This should be the more correct code now. Unfortunately I do not know how to resolve a PR conversation with changing my own commit accordingly (yet) or how to revoke a commit be GitHub web GUI.

My prior PR was aiming at compatibilty with legacy clients and servers. If you scan the MT forum you will become aware that there seem to be quite many MT 0.4 servers around which are actively used by many players. I would like to continue in using the one load print for better compatibilty with legacy MT software in the field and would use the minetest.log for all other cases where applicable.

However, the best solution may be this new piece of improved code, if I understand the MT Lua code correctly.

* Apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-21 13:05:56 -06:00
Lazerbeak12345
c9d0dddf18
Allow more than 3 passengers and improve API (#4)
* Remove maximum of 3 passengers from lib_mount

* Fix up the code after actually testing it.

* Fix lint issue

* Provide a way for an API user to stop lib_mount from updating legacy
variables

* Restructure ensure_passengers_exists

- Decreases indentation level
- Makes implicit returns explicit with hopes of more readability
- Fixes lint issue?

* Change (not a == b) to a ~= b. It's convention

* Rename a function

`copya_a_passenger_to_old_api` -> `old_copy_passenger`

Resolves https://github.com/minetest-mods/lib_mount/pull/4/files#r1036365711

* Try out `new_api` change.

See: https://github.com/minetest-mods/lib_mount/pull/4#discussion_r1036364246

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-03 19:06:56 -06:00
David Leal
d2722ed47d
Whoops 2022-11-28 13:03:17 -06:00
David Leal
b78b6dda43
Replace deprecated functions with newer ones (#6) 2022-11-26 22:11:54 -06:00
David Leal
2530938f6e
Update copyright notices to 2022 2022-03-22 09:20:44 -06:00
David Leal
eb4eb4f719
Add the Contributor Covenant Code of Conduct v2.1 2021-11-14 15:20:59 -06:00
David Leal
e55f3acaa6
Fix version in mod.conf 2021-11-14 13:01:06 -06:00
David Leal
274a729ef5
Major improvements for flying entities
Previously, if the entity had the `can_fly` option enabled, when
going upwards or downwards, it went too fast, extremely fast, and its speed increases over time.

With this update, this no longer happens: you can customize your
own upwards and downwards maximum speed for any entity you want.
2021-03-24 12:57:22 -06:00
David Leal
00ff618640
Fix crash when player leaves in a car 2021-02-01 13:10:50 -06:00
David Leal
a4972bfcb0
Minor changes/improvements 2021-01-12 14:53:15 -06:00
David Leal
c353e8e3ac Support to enable/disable individually...
...crashing to an entity.
2020-12-18 08:20:55 +01:00
David Leal
4d00cc937b Add ContentDB badge on README.md 2020-12-18 08:20:55 +01:00
David Leal
fef9374090 Make up and down configurable...
...flying vehicle settings. A vehicle that can fly, can go down and up. This is now configurable.
2020-12-18 08:20:55 +01:00
David Leal
f54743a63c Add documentation on drops
Also remove (soft) depends in code.
2020-12-18 08:20:55 +01:00
David Leal
4744e290d2 Update README.md 2020-12-18 08:20:55 +01:00
Panquesito7
ac829b8d06 Remove LuaCheck URL, use local config 2020-12-18 08:20:55 +01:00
Panquesito7
b1cee5fb22 Improve item dropping 2020-12-18 08:20:55 +01:00
Panquesito7
de43121ba1 Various tweaks and fixes for passengers 2020-12-18 08:20:55 +01:00
Panquesito7
64785bb0e7 Add the ability to carry 3 passengers
Also fix vehicle position.
2020-12-18 08:20:55 +01:00
Panquesito7
324b77a0f9 Fix dependency list on README.md
Also add license badge.
2020-12-18 08:20:55 +01:00
Panquesito7
106c99c610 Add newline at the end of .luacheckrc file 2020-12-18 08:20:55 +01:00
Panquesito7
01f78d3218 Version 1.1
- Add LuaCheck and GitHub workflow.
- Change license to LGPLv2.1+
- Improve `README.md` and add build status badge.
- Use `mod.conf` for dependencies.
- Replace deprecated functions with newer ones.
2020-12-18 08:20:55 +01:00
blert2112
6fb82df894 passenger/driver fixes 2016-08-28 02:50:56 -04:00
blert2112
e2be829ff9 few update
-fixed car moving sideways caused by a shared variable,
-tweaked crash code: added enable_crash and crash_threshold variables,
-mouse steering is now default: "aux1" to toggle,
-removed is_boat in favor of terrain_type,
-tweaked mobs_redo compatablility,
-fixed speed limit enforcement
2016-08-27 22:36:09 -04:00
blert2112
8c83022992 many updates
can now control land, sea, and air mountables
2016-08-13 14:58:24 -04:00
blert2112
cfb0afbe4c new features
jumping possible
mouse control, hold aux1
2016-07-19 23:10:23 -04:00
blert2112
cc21918710 multiplayer flying fix 2016-06-24 11:50:14 -04:00
blert2112
66414b0c9e add flying 2016-06-24 01:50:41 -04:00
blert2112
d7d93a8375 added eye_offset 2016-06-11 10:29:57 -04:00
blert2112
b3f916f40e first commit 2016-06-11 02:06:23 -04:00
blert2112
d36ccf4b49 :neckbeard: Added .gitattributes & .gitignore files 2016-06-11 02:05:56 -04:00