[Mod] PlayerPlus [1.4]

User avatar
TenPlus1
Member
Posts: 2871
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

[Mod] PlayerPlus [1.4]

by TenPlus1 » Post

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 ... 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
Last edited by TenPlus1 on Fri May 24, 2019 20:07, edited 22 times in total.

User avatar
Krock
Developer
Posts: 4564
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] PlayerPlus (0.1)

by Krock » Post

How about ice skates?
It would be funny to move around fast with those.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: [Mod] PlayerPlus (0.1)

by ExeterDad » Post

Krock wrote:How about ice skates?
It would be funny to move around fast with those.
+1 :P

Xanthin
Member
Posts: 126
Joined: Fri Mar 07, 2014 14:05
GitHub: Xanthin
IRC: Xanthin
In-game: Xanthin
Location: Germany

Re: [Mod] PlayerPlus (0.1)

by Xanthin » Post

Thank you Ten for the solution and your comments in the code. This helps noobs like me to understand whats going on. :)

User avatar
Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

Re: [Mod] PlayerPlus (0.1)

by Minetestforfun » Post

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 ! :)

Sokomine
Member
Posts: 4138
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] PlayerPlus (0.1)

by Sokomine » Post

Sounds like an intresting mod for servers where the focus lies on survival. May fit well into the Adventuretest game.
A list of my mods can be found here.

User avatar
TenPlus1
Member
Posts: 2871
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] PlayerPlus (0.1)

by TenPlus1 » Post

I've added a patch to 3d_armor mod so that PlayerPlus can read armor physics and adjust accordingly... Testing atm...

User avatar
davidthecreator
Member
Posts: 359
Joined: Mon Aug 18, 2014 19:48
GitHub: daviddoesminetest
In-game: DavidDoesMinetest
Location: Lithuania

Re: [Mod] PlayerPlus (0.2)

by davidthecreator » Post

Does it means armour can change player speed

User avatar
Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

Re: [Mod] PlayerPlus (0.2)

by Minetestforfun » Post

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

User avatar
TenPlus1
Member
Posts: 2871
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] PlayerPlus (0.2)

by TenPlus1 » Post

I will check out sprint mod and see if I can make them work together...

User avatar
Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

Re: [Mod] PlayerPlus (0.2)

by Minetestforfun » Post

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)

User avatar
TenPlus1
Member
Posts: 2871
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] PlayerPlus (0.3)

by TenPlus1 » Post

Minetestforfun: I've included and tweaked the Sprint code and included it in this special edition of PlayerPlus 0.3s for your server...
Attachments
playerplus(0.3s).zip
(1.7 KiB) Downloaded 64 times

User avatar
Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

Re: [Mod] PlayerPlus (0.3)

by Minetestforfun » Post

Thank you very much !

User avatar
TenPlus1
Member
Posts: 2871
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] PlayerPlus (0.4)

by TenPlus1 » Post

0.4 update now has players suffocating when stuck inside nodes like falling sand/gravel etc.

User avatar
TenPlus1
Member
Posts: 2871
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] PlayerPlus (0.4)

by TenPlus1 » Post

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 :)
Last edited by TenPlus1 on Tue Mar 24, 2015 19:57, edited 1 time in total.

User avatar
Krock
Developer
Posts: 4564
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] PlayerPlus (0.4)

by Krock » Post

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.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] PlayerPlus (0.4)

by Don » Post

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.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
pilcrow
Member
Posts: 25
Joined: Thu Sep 12, 2013 09:10

Re: [Mod] PlayerPlus (0.5)

by pilcrow » Post

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.
Attachments
playerplus(0.5s-unofficial).zip
(7.61 KiB) Downloaded 57 times

User avatar
TenPlus1
Member
Posts: 2871
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] PlayerPlus (0.5)

by TenPlus1 » Post

Thanks pilcrow, checking out additions now, sounds handy :)

User avatar
TenPlus1
Member
Posts: 2871
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] PlayerPlus (0.6)

by TenPlus1 » Post

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

wilkgr76
Member
Posts: 833
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76

Re: [Mod] PlayerPlus (0.6)

by wilkgr76 » Post

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.
N/A

User avatar
SaKeL
Member
Posts: 653
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Mod] PlayerPlus (0.6)

by SaKeL » Post

Sounds like a good addition to the game, i will try it tonight on my server ;) Thx for all the good work.

User avatar
everamzah
Member
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: [Mod] PlayerPlus (0.6)

by everamzah » Post

I like the suffocating in the nodes, but why not take a player's breath instead of their hearts?

User avatar
SaKeL
Member
Posts: 653
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Mod] PlayerPlus (0.6)

by SaKeL » Post

haven't seen the code but good point ;)

amadin
Member
Posts: 548
Joined: Tue Jun 16, 2015 16:23

Re: [Mod] PlayerPlus (0.6)

by amadin » Post

Did this mod support ethereal boots?

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 5 guests