[Mod] Sprint [sprint]

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: [Mod] Sprint [sprint]

by Calinou » Sun Feb 22, 2015 09:45

Hamguy wrote:Double tap is stupid, and pressing e is stupid

[ Left Shift ] would make more sense.


So you would sneak to sprint? This is impossible.

If you want, change your Use key to [Left shift] and change your Sneak key to [E].
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Sprint [sprint]

by Wuzzy » Sun Feb 22, 2015 17:16

This mod is now compatible with the HUD bars mod. :-)

Image

If HUD bars is installed, a HUD bar is shown like in the screenshot. If not, the old simple icon-based statbar is shown.
 

User avatar
GunshipPenguin
Member
 
Posts: 94
Joined: Tue Jan 28, 2014 00:38
GitHub: GunshipPenguin
IRC: GunshipPenguin
In-game: GunshipPenguin

Re: [Mod] Sprint [sprint]

by GunshipPenguin » Mon Feb 23, 2015 18:35

Wuzzy wrote:This is a very interesting mod, I have finally tried it out on my computer and it works pretty fine.

This looks like a very good candidate to make use of my still experimental HUD bars mod. As soon as I hit the 1.0.0 milestone with it, I will seek to modifiy the code of this mod so it makes use of the HUD bars mod and use the current standard statbar as a fall-back option when this mod is not present.
When I am finished, I will open a pull request on GitHub.

Edit: I noticed that, sadly, this mod has a hard dependency on default, because it uses default_dirt.png as image for its particles. This dependency is completely unjustified if you ask me. The quick and lazy solution would be to provide your own particle image with the mod and use this instead. The sophisticated solution would be to use the top texture image of the node the player runs on. It is probably possible, but tricky, as one must account for all the possible node types, drawtypes etc. and find a solution which works on every node where creating a particle makes sense (i.e. walkable ones). Also, animated textures are probably tricky, too.

Also, I would recommend renaming “stamina.png” to something like “sprint_stamina_icon.png”, so it includes the prefix “sprint_”. It is a general recommendation to always name the textures under the scheme “<modname>_texturename.png” to prevent possible name clashes.


I wanted to use the node that the player is on for the particles originally but I couldn't find any way to do that with the modding API. I'll add my own sprint particle image instead.
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Sprint [sprint]

by Wuzzy » Mon Feb 23, 2015 21:30

That's fine, too.
 

User avatar
mahmutelmas06
Member
 
Posts: 355
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

Re: [Mod] Sprint [sprint]

by mahmutelmas06 » Tue Mar 03, 2015 19:02

There is an issue with sprint mod

Sprint bar keeps decreasing while we are driving a car/helicopter/ufo when pushed E button.
My Mods:

Beverage
 

User avatar
GunshipPenguin
Member
 
Posts: 94
Joined: Tue Jan 28, 2014 00:38
GitHub: GunshipPenguin
IRC: GunshipPenguin
In-game: GunshipPenguin

Re: [Mod] Sprint [sprint]

by GunshipPenguin » Thu Mar 05, 2015 01:35

mahmutelmas06 wrote:There is an issue with sprint mod

Sprint bar keeps decreasing while we are driving a car/helicopter/ufo when pushed E button.


If SPRINT_METHOD is set to 1 (It is by default). Your stamina will always decrease when you're pressing e and you will travel faster, regardless of any other mods installed. I see that the UFO mod requires you to press e to use the UFO. Unfortunately, the e (aux1) key is the only key that I can access through the API and that would work with this mod.
 

User avatar
nater6927
Member
 
Posts: 28
Joined: Thu Feb 21, 2013 23:30

Re: [Mod] Sprint [sprint]

by nater6927 » Sun Jul 05, 2015 02:21

I have a problem

When I run it works fine, but when other players on my server without privs run they get glitched backwards. The server says that the player moved too fast and was set back to their position. I noticed when I gave them 'fast' privilege they can run just great. Is there any fix to this without them having the 'fast' priv?
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Sprint [sprint]

by Wuzzy » Sun Jul 05, 2015 03:19

This is probably the automatic anti-cheat protection at work here. If you add the line “disable_anticheat = true” into minetest.conf, you disable it. This should stop position resetting.
 

User avatar
nater6927
Member
 
Posts: 28
Joined: Thu Feb 21, 2013 23:30

Re: [Mod] Sprint [sprint]

by nater6927 » Sun Jul 05, 2015 04:23

Wuzzy wrote:This is probably the automatic anti-cheat protection at work here. If you add the line “disable_anticheat = true” into minetest.conf, you disable it. This should stop position resetting.


Thank You! I can use this mod once again.
 

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

Re: [Mod] Sprint [sprint]

by amadin » Thu Dec 24, 2015 07:53

Do you can use hunger bar instead stamina bar like in minecraft, if hunger mod enabled? If player is running then hunger indicator reduced. If hunger is 3 or less then player can't run.
 

User avatar
GunshipPenguin
Member
 
Posts: 94
Joined: Tue Jan 28, 2014 00:38
GitHub: GunshipPenguin
IRC: GunshipPenguin
In-game: GunshipPenguin

Re: [Mod] Sprint [sprint]

by GunshipPenguin » Thu Dec 24, 2015 08:09

amadin wrote:Do you can use hunger bar instead stamina bar like in minecraft, if hunger mod enabled? If player is running then hunger indicator reduced. If hunger is 3 or less then player can't run.


When you say hunger bar, I assume you mean adding support for a hunger / food mod. While I agree that integrating this mod with a hunger / food mod would probably make for nicer survival gameplay, there are a number of hunger / food mods already out there, and picking one to add support for would difficult, and would require me to constantly keep an eye on the development of that mod in case there are any API changes. I'd rather just stick with the stamina bar for now.
 

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

Re: [Mod] Sprint [sprint]

by amadin » Thu Dec 24, 2015 08:22

GunshipPenguin wrote:
amadin wrote:Do you can use hunger bar instead stamina bar like in minecraft, if hunger mod enabled? If player is running then hunger indicator reduced. If hunger is 3 or less then player can't run.


When you say hunger bar, I assume you mean adding support for a hunger / food mod. While I agree that integrating this mod with a hunger / food mod would probably make for nicer survival gameplay, there are a number of hunger / food mods already out there, and picking one to add support for would difficult, and would require me to constantly keep an eye on the development of that mod in case there are any API changes. I'd rather just stick with the stamina bar for now.

So you must create you own hunger mod for use it with sprint :)
 

User avatar
BrunoMine
Member
 
Posts: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

Re: [Mod] Sprint [sprint]

by BrunoMine » Tue Aug 09, 2016 00:26

I edited the mod. It's working on my minemacro server. I became it compatible with anticheat.

This is a exelente work. Congratulations.
 

User avatar
BrunoMine
Member
 
Posts: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

Re: [Mod] Sprint [sprint]

by BrunoMine » Tue Aug 09, 2016 16:28

I improved a little the particles. It makes sense when dark particles is running on clean floors (wood, glass, tile, etc.)
I put small clouds of dust (comic inspiration)
Image
example of inspiration
Image
License: CC BY
(texture attached)
Attachments
sprint_particle.png
sprint_particle.png (299 Bytes) Viewed 2193 times
 

User avatar
texmex
Member
 
Posts: 226
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: [Mod] Sprint [sprint]

by texmex » Tue Mar 14, 2017 14:41

PR for you, GunshipPenguin!
I spend all my days going down to the mines. Under the ground where the sun never shines. Breaking my back I put heat in your house. I’ve got the roar of a digtron, the breath of a mouse.
 

Previous

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 27 guests

cron