Commit Graph

96 Commits

Author SHA1 Message Date
SmallJoker ae33bd7a68 Bump to 5.0.0 and fix the copper rail
moreores only adds the copper rail when the 'carts' mod was found
2019-10-18 10:09:29 +02:00
SmallJoker e4edb96d30 Use initial_properties, backup old_pos for loading 2018-09-01 14:49:16 +02:00
SmallJoker 3386942d71 Add basic documentation 2018-07-30 17:16:14 +02:00
SmallJoker d486143f42 Reset acceleration at speed limit 2018-07-07 15:23:30 +02:00
SmallJoker 34155473a9 Fix controls not working when going uphill 2018-07-04 22:04:55 +02:00
SmallJoker 7e275e1985 Disallow rail switching up/downhill 2018-07-04 21:23:06 +02:00
SmallJoker c6b9e4b672 Various improvements and bugfixes
Clear driver on leave using the detach callback (0.5.x and later)
Fix upright_sprite attachment position
Fallback to the regular node sound when metal does not exist
Set animation to "stand" on attach
2018-05-12 11:36:00 +02:00
SmallJoker 3781f6d4c0 Make moreores' copper rail connect again, add metal sounds 2018-05-04 14:38:52 +02:00
SmallJoker f4c1a2ec3b Fix edge case crash due nil old_pos, remove player_api warning 2018-01-15 18:41:40 +01:00
SmallJoker 57d09fac79 Revert velocity calculation change from e3688b5
Accelerates carts too much when going up/downhill
Caused by wrong vector length calculation. This will need to be altered again if there will be 45° rails
2017-11-28 18:33:37 +01:00
SmallJoker 49028ca123 More weight, Handbrake + Railparams, animation fix
Slightly higher (2 -> 2.1) weight impact on slopes
Sum up rail param speed and handbrake
Fix animation when driving slowly towards a slope, turning and stopping on that slope
2017-11-24 17:07:36 +01:00
SmallJoker ca55c6f3c0 Change Y rotation from 45° to 30°. Only send velocity when required.
Smoother position correction when the X,Y,Z directions weren't changed
2017-11-18 12:38:25 +01:00
SmallJoker 4498605509 Hacky bugfix: Force updating player attachment rotation after detach 2017-11-06 17:38:20 +01:00
SmallJoker e19d8701ce Reduce eye position, rotation update frequency 2017-10-28 17:22:47 +02:00
SmallJoker 9a2a2b9d69 Correct feet position for rotated model 2017-10-27 12:51:26 +02:00
SmallJoker 6ac106c1a7 Pitch-Rotate player model and unblock downwards-going view 2017-10-27 12:40:27 +02:00
SmallJoker be0c56edef Pathfinder: Fix bounce back effect at rail end 2017-10-14 11:28:05 +02:00
SmallJoker 5502952bbd Fix rail counting in on_rail_step, localize API functions for faster access 2017-10-13 15:27:06 +02:00
SmallJoker ad93d338b3 Better wiggle prevention when stopping the cart 2017-10-09 12:55:50 +02:00
SmallJoker e3688b5380 Pathfinder: Auto-correct position on failure (smoother)
Dynamic pathfinder distance, depending on speed and dtime
Replace various deprecated function names
2017-10-09 11:09:17 +02:00
SmallJoker 2229ededa5 Remove settings legacy, require 0.4.15-dev or newer 2017-10-03 08:35:20 +02:00
SmallJoker e8119a63cd README: Add the settings for server owners, minor edits.
Drop 0.4.12 compatibility
2017-08-13 10:58:04 +02:00
SmallJoker 11a1ebad74 Correct the player attachment position for the new player model
Requires the player_api mod to 'detect' the new model
2017-08-13 10:15:03 +02:00
SmallJoker 3c646ee4df Pathfinder: Also use the last computed position prediction 2017-07-29 09:51:09 +02:00
SmallJoker af25c5411b Use minetest.raillike_group, do not connect rails with other raillike 2017-07-01 10:48:14 +02:00
SmallJoker b80d3aed4c Make the maximal speed configurable using minetest.conf 2017-06-09 22:25:58 +02:00
SmallJoker 08918701b0 Add mod.conf 2017-05-28 19:42:50 +02:00
SmallJoker 66e4613432 Overwrite carts:rail instead of default:rail if existing (#17) 2017-05-26 20:43:29 +02:00
SmallJoker 61b19d77d9 Start-stop rail: Do not stop when punching
Reported/requested in: https://forum.minetest.net/viewtopic.php?p=270534#p270534
2017-05-21 20:43:42 +02:00
SmallJoker acf697cd43 Fix crash caused by stop rail and 8b4487c (#15) 2017-03-28 18:01:42 +02:00
SmallJoker 8b4487c2b8 Revert cart gravity from 2.5 to 2
Allows 50% powerrail-rail mix to transport the cart in an 45° angle
2017-03-23 21:02:52 +01:00
SmallJoker cba969903a register_rail: Fix the table overwrite behaviour 2017-02-12 11:35:54 +01:00
SmallJoker 71af46f027 Use MTG cart model and textures in compability mode 2016-12-02 20:55:13 +01:00
SmallJoker 99d0480169 Rails: Make names consistent and redo all rail textures
Add rail templates
2016-11-27 13:00:39 +01:00
SmallJoker de5fb1825a Fix jerky movement on punch 2016-11-26 21:13:33 +01:00
SmallJoker cf9b82de37 Huge rewrite
Add sounds
Change Y acceleration to -2.5
Add partwise compatibility for MTG-registered rails
2016-11-22 20:36:00 +01:00
SmallJoker 74d8b8f931 Remove unused vector.floor, check if cart is centered on rail
Fix cart wiggle/swing partwise
Simplify the curve velocity calculations
2016-11-19 19:37:13 +01:00
SmallJoker 75132269d7 Fix forgotten variable to rename 2016-10-26 19:48:05 +02:00
SmallJoker b741282843 Do not take cart from inventory in creative mode
Correct comments and move some variables
2016-10-12 17:22:49 +02:00
SmallJoker 7d6132e748 Fix mesecon variable bug caused by f3bc9d7 2016-08-12 20:44:49 +02:00
SmallJoker 4391d2356f Update the readme 2016-08-11 18:59:51 +02:00
SmallJoker 5526754e37 Add description and screenshot, run OptiPNG 2016-08-11 10:56:51 +02:00
Stefan Sauer f3bc9d795d Fix undeclared global variable "mesecon" 2016-08-09 09:30:16 +02:00
SmallJoker eb6a833b66 Break too long lines and simplify the code
- Add boost_cart:get_rail_groups to get the default rail groups
- Remove duplicated code
- Do not boost the cart backwards when the brake rail gets activated
- Attempt to fix the cart swing problem
- Trim tailings and tidy up code
- TODO: Document all the stuff
2016-07-22 11:07:00 +02:00
Christopher Head d166b7ea68
Add start-stop rail. 2016-07-21 22:46:20 -07:00
SmallJoker 947d8633ff Make a stopped cart resume in its last direction
Largely based on PR #10. Thanks to @Hawk777 for this tweak

- Fix player rotation when cart stopped (or punched the first time)
2016-07-21 13:21:54 +02:00
Christopher Head 9d059b8e31
Rename a parameter to match its purpose. 2016-07-20 00:14:54 -07:00
SmallJoker cbe0ab9770 Check for regular behavior too
- HAAAAAAAANDS
2016-07-04 20:56:49 +02:00
SmallJoker d63f8ae024 Add pathfinding function (pilot version!)
- Add more comments
2016-07-04 20:34:52 +02:00
SmallJoker 46c03dd4d1 Attempt to fix: Cart not working after re-login 2016-06-20 19:16:57 +02:00