-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add slippery #817
Add slippery #817
Conversation
@@ -86,7 +86,7 @@ minetest.register_entity("__builtin:item", { | |||
local nn = minetest.get_node(p).name | |||
-- If node is not registered or node is walkably solid and resting on nodebox | |||
local v = self.object:getvelocity() | |||
if not minetest.registered_nodes[nn] or minetest.registered_nodes[nn].walkable and v.y == 0 then | |||
if not minetest.registered_nodes[nn] or (minetest.registered_nodes[nn].walkable and not minetest.registered_nodes[nn].groups.slippery) and v.y == 0 then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shoud use minetest.get_item_group() here.
@PilzAdam: all fixed |
The wielditem walk animation, view bobbing and footstep sounds are still played why sliding over ice. |
And? Try to slide on ice in real life and you'll see... |
Can't wait what kind of gameplay this would add to the game, Slippery icy mountains or just a big slippery lake @Calinou lol. |
it could be fun and usable |
+1 |
+1 |
What’s preventing this from being merged? The mistakes have been dealth with, the rebase has obviously been done, too (1 commit now). |
@Wuzzy2 I agree. |
c7b9cf1
to
c24e075
Compare
73b8c08
to
56195dc
Compare
Hi, please fix the following things if you want a merge:
|
It would take longer to rebase this than write it from scratch. Best closed IMO |
Wouldn't it kill two birds with one stone just to make ObjectRef slip, and if an entity does not need to slip, change a variable like object.slip? |
@C1ffisme that's something separate, and not as simple as you describe it. And, the effect this PR wants to obtain would not be possible to achieve in a lag-free manner. |
What's use of keeping this one alive if there's obviously noone interested in the feature? |
At least 2 core-devs are expressly interested. |
I've updated this to master and to allow slipping off nodes, with a physics override for mods to utilise per player (e.g. grippy boots): And test values to try for minetest-game: Just need help with how to check the protocol version in "content_cao.cpp", before I can offer it in a pull. |
What's up with it ? |
BlockMen has left, est31 isn't necessarily supporting the feature. @Ekdohibs or anyone interested please could you copy the code for yourselves so we can close this? |
Is it really neccessary to rebase a PR which only has one commit? ;-) |
Time to close this. |
#6237 merged. |
Title says about it.