What is the proper way of making a Player Class fly?
-
Southpark2010
- Posts: 84
- Joined: Wed Jun 06, 2012 6:28 pm
- Location: Hell
What is the proper way of making a Player Class fly?
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.
RE: What is the proper way of making a Player Class fly?
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?
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.
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.
-
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?
PowerFlight seems to work.
I did this:
Then added 'Player.StartItem CacoFlight' to the class, and it seems to behave as it should.
I did this:
Code: Select all
ACTOR CacoFlight : PowerFlight
{
Powerup.Duration 0x7FFFFFFF
}
Last edited by Southpark2010 on Sat Jan 05, 2013 11:01 pm, edited 1 time in total.
RE: What is the proper way of making a Player Class fly?
Code: Select all
+NOGRAVITY
+FLOAT
[/spoiler]
