Decorate: How to create a jetpack-like item?

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Riclo
 
Posts: 26
Joined: Sun Mar 09, 2014 2:14 am

Decorate: How to create a jetpack-like item?

#1

Post by Riclo » Sat Mar 15, 2014 12:36 pm

I'm creating an item that can let the player fly, but only for a limited amount of time and can be turned on and off. (Similar to Duke Nukem's jetpack in Samsara.) How would I be able to code something like this? (And if it isn't too much trouble, how to also have yellow particles spawn out of the player in random directions while they're using it.)

Thanks in advance.

Absolute Zero
 
Posts: 78
Joined: Fri Feb 14, 2014 1:43 am

RE: Decorate: How to create a jetpack-like item?

#2

Post by Absolute Zero » Sat Mar 15, 2014 3:10 pm

IMPLEMENT WEAPON PICKUP PREDICTION 2K14! VOTE NOW! YES/YES

In fact, I hate Kelvins, and humans too, because they are carrying nearly 300 of them EVERYWHERE!

TerminusEst13
Retired Staff / Community Team Member
Posts: 865
Joined: Tue Jun 05, 2012 11:06 pm

RE: Decorate: How to create a jetpack-like item?

#3

Post by TerminusEst13 » Sat Mar 15, 2014 7:44 pm

Riclo wrote: I'm creating an item that can let the player fly, but only for a limited amount of time and can be turned on and off. (Similar to Duke Nukem's jetpack in Samsara.)
You're free to use the code, if you'd like.
The Ranger - New class for HeXen.
ZDoom Wars - I drew some pictures.
Samsara - Some class-based mod I guess?
Metroid: Dreadnought - I am a dumb fanboy.
DemonSteele - ~come with me to anime world~

User avatar
Riclo
 
Posts: 26
Joined: Sun Mar 09, 2014 2:14 am

RE: Decorate: How to create a jetpack-like item?

#4

Post by Riclo » Sat Mar 15, 2014 7:55 pm

TerminusEst13 wrote:
Riclo wrote: I'm creating an item that can let the player fly, but only for a limited amount of time and can be turned on and off. (Similar to Duke Nukem's jetpack in Samsara.)
You're free to use the code, if you'd like.
Would you mind showing me how to implant it? I've already copy/pasted it but it doesn't seem to work, even after I change it to try and get it working without decorate errors.

User avatar
fr blood
Frequent Poster Miles card holder
Posts: 995
Joined: Wed Mar 06, 2013 4:04 pm
Location: France

RE: Decorate: How to create a jetpack-like item?

#5

Post by fr blood » Sun Mar 16, 2014 9:55 am

You can take example of the Flight Sphere in Realm 667.

TerminusEst13
Retired Staff / Community Team Member
Posts: 865
Joined: Tue Jun 05, 2012 11:06 pm

RE: Decorate: How to create a jetpack-like item?

#6

Post by TerminusEst13 » Sun Mar 16, 2014 9:59 am

Riclo wrote:Would you mind showing me how to implant it? I've already copy/pasted it but it doesn't seem to work, even after I change it to try and get it working without decorate errors.
Could you copy/paste both the ACS and the Decorate you're using on Pastebin, please?
The Ranger - New class for HeXen.
ZDoom Wars - I drew some pictures.
Samsara - Some class-based mod I guess?
Metroid: Dreadnought - I am a dumb fanboy.
DemonSteele - ~come with me to anime world~

Post Reply