[Mod] PlayerPlus (1.3)

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

[Mod] PlayerPlus (1.3)

by TenPlus1 » Mon Sep 08, 2014 18:33

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
Last edited by TenPlus1 on Fri Oct 12, 2018 14:01, edited 21 times in total.
 

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

Re: [Mod] PlayerPlus (0.1)

by Krock » Mon Sep 08, 2014 18:45

How about ice skates?
It would be funny to move around fast with those.
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
Location: New Hampshire U.S.A
In-game: ExeterDad

Re: [Mod] PlayerPlus (0.1)

by ExeterDad » Tue Sep 09, 2014 03:35

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
Location: Germany
GitHub: Xanthin
IRC: Xanthin
In-game: Xanthin

Re: [Mod] PlayerPlus (0.1)

by Xanthin » Tue Sep 09, 2014 09:46

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: 936
Joined: Tue Aug 05, 2014 14:09
Location: On earth
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Mod] PlayerPlus (0.1)

by Minetestforfun » Tue Sep 09, 2014 20:57

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: 3616
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] PlayerPlus (0.1)

by Sokomine » Wed Sep 10, 2014 01:46

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: 2419
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] PlayerPlus (0.1)

by TenPlus1 » Wed Sep 10, 2014 07:21

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: 271
Joined: Mon Aug 18, 2014 19:48
Location: Lithuania
GitHub: daviddoesminetest
In-game: DavidDoesMinetest

Re: [Mod] PlayerPlus (0.2)

by davidthecreator » Sat Sep 13, 2014 10:10

Does it means armour can change player speed
 

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

Re: [Mod] PlayerPlus (0.2)

by Minetestforfun » Sat Sep 13, 2014 13:22

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: 2419
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] PlayerPlus (0.2)

by TenPlus1 » Sat Sep 13, 2014 19:26

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

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

Re: [Mod] PlayerPlus (0.2)

by Minetestforfun » Sat Sep 13, 2014 19:33

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: 2419
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] PlayerPlus (0.3)

by TenPlus1 » Thu Sep 18, 2014 16:41

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 39 times
 

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

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

Re: [Mod] PlayerPlus (0.4)

by TenPlus1 » Thu Nov 20, 2014 14:07

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

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

Re: [Mod] PlayerPlus (0.4)

by TenPlus1 » Tue Mar 24, 2015 19:36

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: 4145
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [Mod] PlayerPlus (0.4)

by Krock » Tue Mar 24, 2015 19:42

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.
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

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

Re: [Mod] PlayerPlus (0.4)

by Don » Tue Mar 24, 2015 20:27

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: 24
Joined: Thu Sep 12, 2013 09:10

Re: [Mod] PlayerPlus (0.5)

by pilcrow » Fri Mar 27, 2015 01:47

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 34 times
 

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

Re: [Mod] PlayerPlus (0.5)

by TenPlus1 » Fri Mar 27, 2015 20:38

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

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

Re: [Mod] PlayerPlus (0.6)

by TenPlus1 » Tue Jan 26, 2016 12:13

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: 831
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76

Re: [Mod] PlayerPlus (0.6)

by wilkgr76 » Thu Jan 28, 2016 02:47

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: 651
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Mod] PlayerPlus (0.6)

by SaKeL » Thu Jan 28, 2016 07:27

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 » Thu Jan 28, 2016 09:15

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

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

Re: [Mod] PlayerPlus (0.6)

by SaKeL » Thu Jan 28, 2016 10:32

haven't seen the code but good point ;)
 

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

Next

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 2 guests