[MOD] Moving Walkways [walkway]

Post Reply
gpcf
Member
Posts: 360
Joined: Fri May 27, 2016 10:48
In-game: gabriel

[MOD] Moving Walkways [walkway]

by gpcf » Post

I have made a moving walkways mod. It uses the conveyor belts from theFox and LemonLake's factory mod. it speeds up players if they walk in the walkway's direction.
Download:
git: git://gpcf.eu/walkway.git
zip: https://git.gpcf.eu/?p=walkway.git;a=sn ... ter;sf=zip
Bugs:
* Support for animals is buggy, some animals don't work at all (chicken, sheep), some have wrong attachment positions (bunnies, cats)

Todo:
* Add inclined walkways and escalators

Screenshot:
Image
Last edited by gpcf on Wed Jun 28, 2017 16:35, edited 2 times in total.

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [MOD] Moving Walkways [walkway]

by azekill_DIABLO » Post

very cool!

gpcf
Member
Posts: 360
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

I don't know how to make the player visible, does someone know how to do this?

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [MOD] Moving Walkways [walkway]

by azekill_DIABLO » Post

it is on an entity?

User avatar
cx384
Member
Posts: 501
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [MOD] Moving Walkways [walkway]

by cx384 » Post

Is this mod inspired by viewtopic.php?t=7350 ?
Can your read this?

gpcf
Member
Posts: 360
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

azekill: the player is attached to an entity
cx384: yes, only that sadly that other mod doesn't support moving players.

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [MOD] Moving Walkways [walkway]

by azekill_DIABLO » Post

gpcf wrote:azekill: the player is attached to an entity
it should be visible then.

gpcf
Member
Posts: 360
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

i have set visible=true and i now get this:Image
Attachments
screenshot_20170627_182410.png
(425.34 KiB) Not downloaded yet

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [MOD] Moving Walkways [walkway]

by azekill_DIABLO » Post

dummy shouldn't have any texture. set them to blank.png. then the player is miss-scaled... try tweaking this.

gpcf
Member
Posts: 360
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

Ok, the bug is fixed. I also added basic support for moving animals.

dawgdoc
Member
Posts: 253
Joined: Mon Feb 27, 2017 01:10
GitHub: dawgdoc

Re: [MOD] Moving Walkways [walkway]

by dawgdoc » Post

gpcf wrote:Ok, the bug is fixed. I also added basic support for moving animals.
We'll soon see sheep surfing the walkways.
Give a man a fish, feed him for a day. Give a kid a fish, it's going to die.

gpcf
Member
Posts: 360
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

hopefully, sheep are not working yet (I don't know why)

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [MOD] Moving Walkways [walkway]

by azekill_DIABLO » Post

sheeps (as other non-players entities) are handled very differently... with set_velocity.

User avatar
v-rob
Developer
Posts: 778
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob
IRC: v-rob
Location: Right behind you.

Re: [MOD] Moving Walkways [walkway]

by v-rob » Post

Wonderful mod! I like how it works for both dropped items and players. I can think of so many uses already! Can't wait for the escalators and inclined walkways.
+ Spoiler
GUI Core Developer | My Best Mods: Bridger - Slats - Stained Glass

gpcf
Member
Posts: 360
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

I have switched it now to set_velocity, but some animals are still not detected, such as sheep and chicken, which may be because they jump a lot.

BBmine
Member
Posts: 3475
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: [MOD] Moving Walkways [walkway]

by BBmine » Post

Looks kinda.....Cool!

gpcf
Member
Posts: 360
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

Slopes are underway! I'll try to write the code to transport things today.
Image
Attachments
screenshot_20170627_182410.png
(471.22 KiB) Not downloaded yet

gpcf
Member
Posts: 360
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [MOD] Moving Walkways [walkway]

by gpcf » Post

I have added slopes. They work relatively well, I only have to figure out how to be able to walk on them (they currently move players at a fixed speed)

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests