Commit Graph

69 Commits

Author SHA1 Message Date
HybridDog
62dbd6bc0d Fix a legacy setting support 2019-01-05 13:26:29 +01:00
HybridDog
02683056e5 Fix item magnet
There is no field named physical_state, so the item didn't lose the physical property, but it happily hopped towards me after I dropped it.
Disabling physical looked quite wrong, because the item flew through mountains. Instead, it gets zero acceleration now.
To avoid resetting the acceleration in the on_step function, it is overridden to disable acceleration and velocity changes during executing the original on_step.
Small code fix: Add underscores in set_velocity and set_acceleration
2018-10-03 17:58:58 +02:00
HybridDog
1d2e42eaab Fix crash when a node texture is a table 2018-08-12 10:33:55 +02:00
HybridDog
0112f1f9ec Tidy up pickup_particle code 2018-08-12 10:33:49 +02:00
tacotexmex
608b5dfe6e Simplify inventorycube code (again) 2018-06-23 10:09:02 +02:00
tacotexmex
1e5718cbac Fix settings bug 2018-06-23 10:02:04 +02:00
tacotexmex
c57d3c1514 Fix crash on no drops (@HybridDog) 2018-06-23 10:01:40 +02:00
tacotexmex
b6b1a8e95b Complete pickup particle feature 2018-06-18 10:18:06 +02:00
tacotexmex
08ba364510 Look for legacy setting names 2018-06-17 09:27:43 +02:00
Hybrid Dog
f1fcc478a1 Rename the key press test function 2017-09-16 13:18:20 +02:00
Hybrid Dog
3d88b7b5c6 Disable item pickup age if the player has to hold a key for taking items 2017-09-16 12:59:28 +02:00
tacotexmex
70068fd307 Typo 2017-09-15 18:40:11 +02:00
Hybrid Dog
d5b28e01b0 Fix missing division for dropped item velocity calculation 2017-09-15 10:27:28 +02:00
Hybrid Dog
609d441ef4 Always collect items one by one 2017-09-12 10:13:49 +02:00
Hybrid Dog
3a9a985cfc Revert "Adjust default key settings"
This reverts commit 3bc3a4bd25.
2017-09-12 09:55:16 +02:00
Hybrid Dog
8543bad2aa Call on_punch to pick items (DS) 2017-09-11 14:44:31 +02:00
Hybrid Dog
f811009c80 Don't override handle_node_drops in creative mode 2017-09-11 14:35:55 +02:00
Hybrid Dog
ac2da1689e Update item dropping code 2017-09-11 14:22:17 +02:00
Hybrid Dog
35786b597c Update mod load logging
There's no official setting called log_mods
2017-09-11 14:09:24 +02:00
Hybrid Dog
1e2287a672 Do not pick items if the player has no interact 2017-09-11 14:08:01 +02:00
texmex
06c1212d5b Lower pickup sound gain 2017-09-11 13:09:11 +02:00
Hybrid Dog
253cc75c51 Higher update delay if no item was found
avoid loud pop noise (in zero velocity mode)
2017-09-08 21:26:08 +02:00
Hybrid Dog
88df92b125 Fix key triggering disabling 2017-09-08 20:57:05 +02:00
Hybrid Dog
6de1402ebc Remove damage setting test 2017-09-08 20:46:36 +02:00
Hybrid Dog
b06129c3a3 Fix redundant minetest.after invocations 2017-09-08 20:43:30 +02:00
Hybrid Dog
c86bc605bd Add item flight time setting, set it to 5 seconds by default 2017-09-08 20:42:28 +02:00
Hybrid Dog
c21158ffab Adjust default key settings 2017-09-08 20:38:20 +02:00
Hybrid Dog
9de8d39af6 Add keyinvert setting 2017-09-08 20:36:36 +02:00
Hybrid Dog
f2e3338265 Add magnet_radius setting 2017-09-08 20:32:48 +02:00
Hybrid Dog
31229760e8 Play the pickup sound positional to all players 2017-09-07 21:22:23 +02:00
Hybrid Dog
fced0590c6 Add code for zero velocity mode 2017-09-07 21:13:10 +02:00
Hybrid Dog
f91c73d2e3 Fix multiplayer support 2017-09-07 21:00:55 +02:00
Hybrid Dog
8c3a470690 Move item flight code 2017-09-07 20:57:02 +02:00
Hybrid Dog
ce059ad5ad Simplify velocity calculation 2017-09-07 20:44:08 +02:00
Hybrid Dog
ac3386a402 Add item pickup age 2017-09-07 20:39:49 +02:00
Hybrid Dog
0eace77417 Add item_drop. prefix to settings 2017-09-06 15:56:04 +02:00
Hybrid Dog
bfcc14bb4b Use tabs for indentation 2017-09-06 15:51:34 +02:00
Hybrid Dog
04c441768f Use minetest.after instead of globalstep 2017-09-06 13:29:48 +02:00
Hybrid Dog
31e8c9b0cc Load settings only if they are used 2017-09-06 13:27:21 +02:00
Hybrid Dog
a88fa5f1b7 Short code a bit 2017-09-02 23:58:29 +02:00
tacotexmex
5aed10c3e7 Code touch-up 2017-08-30 21:13:33 +02:00
LouisCyfer
dbd9538a78 Pickup radius, new keytypes, limited globalstep (#1)
Thank you @LouisCyfer 🌮 🎉
2017-08-03 22:42:53 +02:00
tacotexmex
1091537584 Use ctrl var 2017-07-11 23:29:18 +02:00
tacotexmex
a7cdd68cc9 Fix var bug 2017-07-09 18:38:44 +02:00
tacotexmex
dbb43c2ed1 Proper global settingtypes 2017-07-09 17:33:22 +02:00
tacotexmex
67025939e7 Remove remove_items, superseded by item_entity_ttl 2017-07-09 16:25:11 +02:00
tacotexmex
7f38ae5261 Fix global settings bool fallbacks 2017-07-09 16:12:57 +02:00
tacotexmex
a523b5a574 Add optional pickup key, either sneak, use or a+d key. Add settable sound gain. 2017-06-26 15:57:23 +02:00
tacotexmex
04f75caeb3 Add settings for pickups and drops 2017-06-26 15:24:56 +02:00
tacotexmex
2d42301d85 Replace deprecated calls 2017-06-26 15:15:48 +02:00