What is the proper way of making a Player Class fly?

Discuss all aspects related to modding Zandronum here.
Post Reply
Southpark2010
 
Posts: 84
Joined: Wed Jun 06, 2012 6:28 pm
Location: Hell

What is the proper way of making a Player Class fly?

#1

Post by Southpark2010 » Mon Dec 31, 2012 1:00 pm

I'm trying to make my player class fly, but +FLOAT doesn't work, and if I use 'Gravity 0.0', the class moves at normal pace on the ground, but speeds off if in the air, and you can't fly up if you're already in the air. What is the proper way of making a player class fly?
Last edited by Southpark2010 on Mon Dec 31, 2012 1:01 pm, edited 1 time in total.
Current Projects:
HELL Vs Marines - Thread

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

RE: What is the proper way of making a Player Class fly?

#2

Post by Llewellyn » Mon Dec 31, 2012 4:23 pm

I don't know about "proper" but you can just give them a form of PowerFlight.

XutaWoo
Forum Regular
Posts: 113
Joined: Mon Jun 04, 2012 7:04 am

RE: What is the proper way of making a Player Class fly?

#3

Post by XutaWoo » Sat Jan 05, 2013 8:14 pm

SetPlayerProperty, if I remember correctly, is what's used in Virus.

Pretty sure it does the same thing as PowerFlight, but I'm pretty sure it persists through respawns so it's more reliable when making something multiplayer compatible.
[spoiler]Image[/spoiler]
Image

Southpark2010
 
Posts: 84
Joined: Wed Jun 06, 2012 6:28 pm
Location: Hell

RE: What is the proper way of making a Player Class fly?

#4

Post by Southpark2010 » Sat Jan 05, 2013 11:00 pm

PowerFlight seems to work.

I did this:

Code: Select all

ACTOR CacoFlight : PowerFlight
{
  Powerup.Duration 0x7FFFFFFF
}
Then added 'Player.StartItem CacoFlight' to the class, and it seems to behave as it should.
Last edited by Southpark2010 on Sat Jan 05, 2013 11:01 pm, edited 1 time in total.
Current Projects:
HELL Vs Marines - Thread

ZzZombo
Forum Regular
Posts: 323
Joined: Mon Jun 11, 2012 12:11 pm
Location: Ravenholm

RE: What is the proper way of making a Player Class fly?

#5

Post by ZzZombo » Mon Jan 14, 2013 3:59 pm

Code: Select all

+NOGRAVITY
+FLOAT
This produces a bit different result.

Post Reply