Page 1 of 3

[Mod] PlayerPlus [1.4]

PostPosted: Mon Sep 08, 2014 18:33
by TenPlus1
This mod changes the player speed depending on what they walk upon, stepping through snow or water will slow the player down, walking on ice will make them go faster, and as a bonus touching a cactus will hurt the player like in Minecraft... enjoy!

Download: https://notabug.org/TenPlus1/playerplus/archive/master.zip
Source: https://notabug.org/TenPlus1/playerplus
License: MIT

API:

Every second the mod checks which node the player is standing on, which node is
at foot and head level and stores inside a global table to be used by mods:

- playerplus[name].nod_stand
- playerplus[name].nod_foot
- playerplus[name].nod_head

Player Knock-back:

This feature is enabled by default and can be turned off by adding this line to
your minetest.conf file:

player_knockback = false

Knock-back is determined by tool strength or a specific 'knockback' value which
can be added to the tool damage_groups itself.


Older Sneak-glitch:

When enabled this allows players to use the old sneak glitch movement that lets
you climb sneak ladders and jump double blocks when using sneak+jump,

old_sneak = false


Node 'on_walk_over' function:

When added to a node definition the function will be called whenever a player
walks on top of the node e.g.

Code: Select all
on_walk_over = function(pos, node, player)
   print ("---", node.name, player:get_player_name() )
end

Re: [Mod] PlayerPlus (0.1)

PostPosted: Mon Sep 08, 2014 18:45
by Krock
How about ice skates?
It would be funny to move around fast with those.

Re: [Mod] PlayerPlus (0.1)

PostPosted: Tue Sep 09, 2014 03:35
by ExeterDad
Krock wrote:How about ice skates?
It would be funny to move around fast with those.


+1 :P

Re: [Mod] PlayerPlus (0.1)

PostPosted: Tue Sep 09, 2014 09:46
by Xanthin
Thank you Ten for the solution and your comments in the code. This helps noobs like me to understand whats going on. :)

Re: [Mod] PlayerPlus (0.1)

PostPosted: Tue Sep 09, 2014 20:57
by Minetestforfun
thank you for your work and share this mod !
Thank you also for your very detailed comments, i've make little changes for my own server ! :)

Re: [Mod] PlayerPlus (0.1)

PostPosted: Wed Sep 10, 2014 01:46
by Sokomine
Sounds like an intresting mod for servers where the focus lies on survival. May fit well into the Adventuretest game.

Re: [Mod] PlayerPlus (0.1)

PostPosted: Wed Sep 10, 2014 07:21
by TenPlus1
I've added a patch to 3d_armor mod so that PlayerPlus can read armor physics and adjust accordingly... Testing atm...

Re: [Mod] PlayerPlus (0.2)

PostPosted: Sat Sep 13, 2014 10:10
by davidthecreator
Does it means armour can change player speed

Re: [Mod] PlayerPlus (0.2)

PostPosted: Sat Sep 13, 2014 13:22
by Minetestforfun
i have found a compatibility problem with the mod "sprint", indeed, the after the beginning of the sprint, the player stop his sprint after 0.5/1 sec

Re: [Mod] PlayerPlus (0.2)

PostPosted: Sat Sep 13, 2014 19:26
by TenPlus1
I will check out sprint mod and see if I can make them work together...

Re: [Mod] PlayerPlus (0.2)

PostPosted: Sat Sep 13, 2014 19:33
by Minetestforfun
Thank you :)

(EDIT : so, for the moment i disabled your mod in my server, i hope you will update it soon for a quick re-activated)

Re: [Mod] PlayerPlus (0.3)

PostPosted: Thu Sep 18, 2014 16:41
by TenPlus1
Minetestforfun: I've included and tweaked the Sprint code and included it in this special edition of PlayerPlus 0.3s for your server...

Re: [Mod] PlayerPlus (0.3)

PostPosted: Thu Sep 18, 2014 17:24
by Minetestforfun
Thank you very much !

Re: [Mod] PlayerPlus (0.4)

PostPosted: Thu Nov 20, 2014 14:07
by TenPlus1
0.4 update now has players suffocating when stuck inside nodes like falling sand/gravel etc.

Re: [Mod] PlayerPlus (0.4)

PostPosted: Tue Mar 24, 2015 19:36
by TenPlus1
How would everyone feel if walking in water slowed you down too, forcing you to use boats to travel across it ?

Update: added and works fine :)

Re: [Mod] PlayerPlus (0.4)

PostPosted: Tue Mar 24, 2015 19:42
by Krock
Well, water is not the best element to walk through, so it's logical to slow down.
But that's already included in the default nodedef, so I think it's not required to add it here too.

Re: [Mod] PlayerPlus (0.4)

PostPosted: Tue Mar 24, 2015 20:27
by Don
TenPlus1 wrote:How would everyone feel if walking in water slowed you down too, forcing you to use boats to travel across it ?

That makes sense. I say do it.

Re: [Mod] PlayerPlus (0.5)

PostPosted: Fri Mar 27, 2015 01:47
by pilcrow
I wanted sprint support too, but both you and GunshipPenguin have made a lot of changes since your 0.3s release, so instead of bothering you to make the changes yourself, I've cobbled together the code on my own. It's a bit hacky, but I thought it'd be nice to share it. Feel free use anything you feel like from it.

I've added stamina support (including support for Wuzzy's Hudbars mod, using GunshipPenguin's textures), split some numbers out into initial configuration variables, and split the cactus damage into an ABM so it can affect other entities such as mobs.

Re: [Mod] PlayerPlus (0.5)

PostPosted: Fri Mar 27, 2015 20:38
by TenPlus1
Thanks pilcrow, checking out additions now, sounds handy :)

Re: [Mod] PlayerPlus (0.6)

PostPosted: Tue Jan 26, 2016 12:13
by TenPlus1
Udated to version 0.6

- Increased damage caused by cactus and suffocation
- Player now suffocates inside all solid "normal" type nodes
- Tweaked and tidied code

Re: [Mod] PlayerPlus (0.6)

PostPosted: Thu Jan 28, 2016 02:47
by wilkgr76
This might be bit hard, but I'm not easy to satisfy...

How about slowing down the player too depending how full their inventory is? i.e. New players with an empty inventory can outrun me who is lugging around stacks of cobble, steel, etc.

Re: [Mod] PlayerPlus (0.6)

PostPosted: Thu Jan 28, 2016 07:27
by SaKeL
Sounds like a good addition to the game, i will try it tonight on my server ;) Thx for all the good work.

Re: [Mod] PlayerPlus (0.6)

PostPosted: Thu Jan 28, 2016 09:15
by everamzah
I like the suffocating in the nodes, but why not take a player's breath instead of their hearts?

Re: [Mod] PlayerPlus (0.6)

PostPosted: Thu Jan 28, 2016 10:32
by SaKeL
haven't seen the code but good point ;)

Re: [Mod] PlayerPlus (0.6)

PostPosted: Tue Feb 16, 2016 16:32
by amadin
Did this mod support ethereal boots?