[Mod] Motorbikes [motorbike]

User avatar
Extex
Member
Posts: 244
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

[Mod] Motorbikes [motorbike]

by Extex » Post

My fourth mod!

Image

Adds a whole variety of coloured motorbikes to Minetest!

Image

Extra special thanks to Melkor for the AMAZING model.
And thanks to Lone_Wolf for helping me with a glitch!!

Image

Press space to do a wheelie
Shift to activate cruise control (No acceleration No decrease)
And one secret feature
Spoiler
• Make Wheelies more realistic and acceleration based

• Ability to preform jumps (off of ramps)

• Add sounds (could I get help with this? Someone with sound hunting experience see Sounds spoiler)
Spoiler
I would like several sounds
Starting up
And 3 or more sounds at different speeds
Braking sound effect
Burnout sound effect
License: Code (MIT), Media (CC BY-SA 3.0) mixed between me and Melkor

Optional dependencies: signs

Browse code: https://github.com/Extex101/motorbike
Download: here

Spoiler
I'm working on a mod which adds motorbikes.
Anyway this is how they'll behave:
  • The bike will turn based on the player yaw. But only when the bike is moving.
  • Rotate the steering when the player turns
  • When you press space the bike does a wheelie and disables the yaw turning
  • Catapult the player after crash (Motorbikes are dangerous :P)
  • Optional license plate. See here (taken care of)
  • Rotate the bike depending on the slope its on
If you have any more ideas or tips on how to do these I'd love to hear back from you!

Special thanks to Melkor for the motorbike!

Image
Attachments
Screenshot_2020-02-26-17-16-08-2.png
Screenshot_2020-02-26-17-16-08-2.png (647.39 KiB) Viewed 2852 times
Last edited by Extex on Wed Mar 04, 2020 21:32, edited 10 times in total.
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP

User avatar
Melkor
Member
Posts: 369
Joined: Sat Sep 24, 2011 01:03
Location: Underground

Re: Mod idea [motorbike]

by Melkor » Post

Here is a bike
Image
Attachments
image.png
image.png (30.17 KiB) Viewed 2852 times
bike.7z
(156.28 KiB) Downloaded 96 times

User avatar
Extex
Member
Posts: 244
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

Thanks Melkor!!!
Absolutely stunning!
Last edited by Extex on Mon Feb 24, 2020 20:33, edited 1 time in total.
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP

User avatar
GreenXenith
Member
Posts: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
Contact:

Re: Mod idea [motorbike]

by GreenXenith » Post

I suggest looking into my bicycle implementation for inspiration.
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

User avatar
Melkor
Member
Posts: 369
Joined: Sat Sep 24, 2011 01:03
Location: Underground

Re: Mod idea [motorbike]

by Melkor » Post

i'm glad you like it, send me screenshots when you finish the mod, happy modding!

User avatar
Extex
Member
Posts: 244
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

Not done yet but I did a video of what it's like so far.
https://github.com/Extex101/motorbike/b ... HD720p.mp4
But you have to download to view it
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP

User avatar
Extex
Member
Posts: 244
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

Image
Almost done!
Coming soon
Attachments
Bikes.gif
Bikes.gif (97.58 KiB) Viewed 2852 times
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: Mod idea [motorbike]

by runs » Post

Oh, I love it :-)

User avatar
Melkor
Member
Posts: 369
Joined: Sat Sep 24, 2011 01:03
Location: Underground

Re: Mod idea [motorbike]

by Melkor » Post

Colors!

User avatar
Extex
Member
Posts: 244
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

I'm having some problems with the player.
When you mount the bike it changes the player model. And when you dismount it chamges back. But the player no longer animates (Only visible by other players)

I'm using player_api if that's any help
Edit: Just realized I was asking for rubenwardy's help on an irc he wasn't on -_-
Last edited by Extex on Mon Mar 02, 2020 02:07, edited 2 times in total.
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: Mod idea [motorbike]

by runs » Post

Extex wrote:I'm having some problems with the player.
When you mount the bike it changes the player model. And when you dismount it chamges back. But the player no longer animates (Only visible by other players)

I'm using player_api if that's any help

I tried asking rubenwardy on irc but he didn't answer. (I don't think he likes me. Idk why :/)
I believe you have to set detach or set the animation again.

Code: Select all

player:set_detach()
default.player_set_animation(player, "stand" , 30)
But I am not sure at all.

User avatar
Extex
Member
Posts: 244
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

Solved!!
I tried what runs suggested but it didn't work :/
So I asked around on Irc (nobody answered) and decided to ask sofar on inside the box. Which is where Lone Wolf helped me and we eventually discovered the origin of the glitch.
It was so simple XD
I forgot to add player_api.player_attached[name] = false
... That was it lol! Tnx lone_wolf!
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP

u18398

Re: Mod idea [motorbike]

by u18398 » Post

Extex wrote:Not done yet but I did a video of what it's like so far.
https://github.com/Extex101/motorbike/b ... HD720p.mp4
But you have to download to view it
That looks really nice. I like the video. Does it need gasoline to run ?

User avatar
Extex
Member
Posts: 244
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

No but that'd be cool :D
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP

u18398

Re: Mod idea [motorbike]

by u18398 » Post

Extex wrote:No but that'd be cool :D
Yes would be a nice addition. Which entity api do you use for your bike ?

User avatar
Extex
Member
Posts: 244
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

I based it on a mod called lib_mount it's a very very unknown mod. (Made by blert2112) it's actually pretty limited but I've edited almost all of it. It's not exactly an api I used it because I didn't have any experience in entities, it helped me wrap my head arpund it
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP

Nipe
New member
Posts: 9
Joined: Thu Jan 23, 2020 20:56
In-game: Nipe and Merlok

Re: Mod idea [motorbike]

by Nipe » Post

Looks cool cant wait

User avatar
Extex
Member
Posts: 244
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

It's done!
Download will be available soon!
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP

User avatar
Extex
Member
Posts: 244
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: [Mod] Motorbikes [motorbike]

by Extex » Post

Download is now available!!
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP

Nipe
New member
Posts: 9
Joined: Thu Jan 23, 2020 20:56
In-game: Nipe and Merlok

Re: [Mod] Motorbikes [motorbike]

by Nipe » Post

Yay

User avatar
pampogokiraly
Member
Posts: 293
Joined: Wed Jan 08, 2020 22:21
In-game: i_love_mesecon

Re: [Mod] Motorbikes [motorbike]

by pampogokiraly » Post

This is awesome! I only got one problem: I can not destroy the motorbike.
All praise the Bacon God! The one and only god in MineTest

User avatar
Extex
Member
Posts: 244
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: [Mod] Motorbikes [motorbike]

by Extex » Post

pampogokiraly wrote:This is awesome! I only got one problem: I can not destroy the motorbike.
Oh right! I'll add that!
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP

User avatar
Extex
Member
Posts: 244
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: [Mod] Motorbikes [motorbike]

by Extex » Post

Done redownload or update your init.lua
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP

User avatar
Melkor
Member
Posts: 369
Joined: Sat Sep 24, 2011 01:03
Location: Underground

Re: [Mod] Motorbikes [motorbike]

by Melkor » Post

Good Work!
Ask for moving the post to wip mods

User avatar
Extex
Member
Posts: 244
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: [Mod] Motorbikes [motorbike]

by Extex » Post

Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests