[Mod] PlayerPlus (0.7)

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

[Mod] PlayerPlus (0.7)

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!

Source: https://github.com/tenplus1/playerplus

License: MIT

Updates:
- 0.1 - Initial release
- 0.2 - Added support for 3d_armor mod
- 0.3 - Optimized code
- 0.4 - Added player suffocation when head inside block (only solid "normal" nodes)
- 0.5 - Player walks slower in water
- 0.6 - Code tidy and tweak, increased damage caused by cactus and suffocation
- 0.7 - Added global 'playerplus' table to hold node names around player

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
Attachments
playerplus(0.7).zip
(2.41 KiB) Downloaded 225 times
Last edited by TenPlus1 on Fri Aug 19, 2016 18:46, edited 15 times in total.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
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.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
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
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

Xanthin
Member
 
Posts: 121
Joined: Fri Mar 07, 2014 14:05
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
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: 2980
Joined: Sun Sep 09, 2012 17:31

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: 1874
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: 179
Joined: Mon Aug 18, 2014 19:48
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
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: 1874
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
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: 1874
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 194 times
 

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

Re: [Mod] PlayerPlus (0.3)

by Minetestforfun » Thu Sep 18, 2014 17:24

Thank you very much !
 

User avatar
TenPlus1
Member
 
Posts: 1874
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: 1874
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
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
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.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Don
Member
 
Posts: 1641
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: 19
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 211 times
 

User avatar
TenPlus1
Member
 
Posts: 1874
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: 1874
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
 

User avatar
wilkgr76
Member
 
Posts: 680
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76
IRC: wilkgr
In-game: wilkgr

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.
I do not care.
 

User avatar
SaKeL
Member
 
Posts: 193
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.
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

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: 193
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 ;)
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

amadin
Member
 
Posts: 471
Joined: Tue Jun 16, 2015 16:23
GitHub: Amadin

Re: [Mod] PlayerPlus (0.6)

by amadin » Tue Feb 16, 2016 16:32

Did this mod support ethereal boots?
 

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

Re: [Mod] PlayerPlus (0.6)

by TenPlus1 » Tue Feb 16, 2016 20:41

Yep, fully compatible with all of the 3d_armor mods registered armor.
 

amadin
Member
 
Posts: 471
Joined: Tue Jun 16, 2015 16:23
GitHub: Amadin

Re: [Mod] PlayerPlus (0.7)

by amadin » Fri Nov 11, 2016 16:43

I noticed it is not compatible with potions of speed (tested with Pep mod and with my potions mod). If use potion of speed (walking on the default dirt with grass) then speed not change.
 

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

Re: [Mod] PlayerPlus (0.7)

by TenPlus1 » Fri Nov 11, 2016 21:09

So many mods tinker with player settings like speed and gravity, it would be a nightmare to be compatible with them all... I went for the mod common which is 3d_armor.
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 19 guests

cron