Page 1 of 1

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

Posted: Mon Dec 31, 2012 1:00 pm
by Southpark2010
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?

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

Posted: Mon Dec 31, 2012 4:23 pm
by Llewellyn
I don't know about "proper" but you can just give them a form of PowerFlight.

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

Posted: Sat Jan 05, 2013 8:14 pm
by XutaWoo
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.

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

Posted: Sat Jan 05, 2013 11:00 pm
by Southpark2010
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.

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

Posted: Mon Jan 14, 2013 3:59 pm
by ZzZombo

Code: Select all

+NOGRAVITY
+FLOAT
This produces a bit different result.