Commit Graph

53 Commits

Author SHA1 Message Date
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
SmallJoker
d54ca696c5 Add setting 'punch_speed_min'
Allow to disable the self-acceleration from inside the cart
2016-04-15 09:45:26 +02:00
SmallJoker
3cac3d8701 Add Sneak+Click info to cart description 2016-01-05 17:04:02 +01:00
SmallJoker
73722136a0 Drop cart when inventory is filled 2015-12-23 21:08:29 +01:00
SmallJoker
307b5d1f92 Adjust 3rd person eye height 2015-12-20 23:15:40 +01:00
SmallJoker
6e01bf2bf9 Early XMAS gift for those who can not install mods correctly 2015-11-13 23:11:08 +01:00
SmallJoker
1b53ebd8e6 Fix typo 2015-11-01 20:12:16 +01:00
SmallJoker
ddb6801b5c Fix detector crafting recipe 2015-09-29 18:20:46 +02:00
SmallJoker
145ca1c61d Fix nil error on tool_capabilities 2015-09-13 19:32:45 +02:00
Craig Davison
afb52ba3b4 Re-add groups to the powerrail and brakerail
Accidentally removed in a7fd733819
2015-06-24 21:09:27 +01:00
SmallJoker
d58f9930d1 Fix player_attached error on some subgames 2015-06-05 20:30:48 +02:00
SmallJoker
a7fd733819 Add boost_cart:register_rail(name, def) 2015-06-05 20:00:53 +02:00
number Zero
adfcfe0841 Detector rail added
Neated the code
2015-06-05 19:46:16 +02:00
SmallJoker
79905e47f4 Prevent from getting suck in walls while moving up 2015-03-30 20:49:56 +02:00
SmallJoker
159d4ec603 Punch cart if mesecon signal is received 2015-03-22 10:52:48 +01:00
SmallJoker
df04aa2a4d Fix different railtype problem 2015-03-15 14:57:53 +01:00
SmallJoker
670f961d35 Allow different railtypes 2015-03-15 13:09:02 +01:00
SmallJoker
eb610a5e9c Punch update - wat? 2015-02-03 11:00:00 +01:00
SmallJoker
f88f0be7ec Run OptiPNG 2015-01-20 20:06:22 +01:00
SmallJoker
1aaa83b428 Fix item pickup 2015-01-11 12:00:17 +01:00
SmallJoker
b6d17c1b34 Allow to stop cart by punching against the moving direction 2015-01-11 11:57:49 +01:00
SmallJoker
573d56de1a More use of default.player_attached 2014-11-08 20:11:51 +01:00
SmallJoker
2929d2ceb7 Confinue driving 2014-11-08 20:05:03 +01:00
SmallJoker
717721c912 Add moreores compatibility 2014-11-08 11:06:12 +01:00
SmallJoker
b6f476db37 Do not update everytime 2014-10-26 12:04:05 +01:00
SmallJoker
a59864dd74 Transport items; do not remove carts in walls 2014-10-25 18:49:28 +02:00
SmallJoker
5373a05c9a Cleanup. 2014-09-20 22:52:23 +02:00
SmallJoker
0fa8c88574 One '\t' more 2014-09-14 08:59:54 +02:00
SmallJoker
f52e4e3641 This happens when coding to fast and without testing. 2014-08-10 17:22:46 +02:00
SmallJoker
faaa422fae Add this. 2014-08-10 17:03:40 +02:00
SmallJoker
c8f03513e3 Better handbrake and fix punch bug 2014-08-10 14:03:13 +02:00
SmallJoker
21e309c414 Shorter codes, allow left/right-down 2014-08-09 18:42:54 +02:00
SmallJoker
c07c92a1fb Crafting is needed! 2014-08-09 17:47:58 +02:00
SmallJoker
3d0401f633 Fail demon was here. 2014-08-09 17:38:41 +02:00
SmallJoker
59b1512cc3 Allow switching with keys 2014-08-09 17:37:02 +02:00
SmallJoker
70f07f4158 less gravity, more speed up/slow down 2014-08-07 13:40:10 +02:00
SmallJoker
c106499bd5 Lowered chance to get stuck 2014-08-07 09:54:25 +02:00
SmallJoker
fa2f2cb71c Remove this line. 2014-08-04 19:08:01 +02:00
SmallJoker
64fa36e796 Using carts:cart, add copper/brk/pwr rails 2014-08-04 19:06:02 +02:00
SmallJoker
8280738bf6 Debug line detected 2014-08-01 17:45:51 +02:00
SmallJoker
4652679f7d I hopeit's fixed now. 2014-08-01 17:45:07 +02:00
SmallJoker
007037c633 test. 2014-08-01 16:16:57 +02:00
SmallJoker
a38aa7d83b Is it really stuck-secure? 2014-08-01 15:59:11 +02:00
SmallJoker
dc20f048b1 better, I don't know. 2014-08-01 15:25:48 +02:00