Hello,
I wonder about how I could manage to make the player able to fly around when he picks up a certain weapon, then fall down when he deselects it.
I tried to mess with DECORATE and set some A_Gravity/A_NoGravity in the weapon's states, but to no avail.
I manage to get the player to float in the air, but there are problems : He falls downs if he fires the weapon, and he cannot actually gain/drop altitude.
Also I tried to mess with CVar commands and stuff (make so the 'fly' command is automatically written when the player picks up the weapon), but although I think the solution might be in there I'm not so sure anymore.
Is it possible to activate (via the DECORATE code) an ACS script that set an APROP of flying for the player ?
Thanks!
Question about flying
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
-
- Posts: 59
- Joined: Thu Jul 30, 2015 8:41 am
- Location: Death Star
- TheBadHustlex
- Posts: 1914
- Joined: Thu Oct 03, 2013 12:50 am
- Location: 'stria
Re: Question about flying
When you raise the weapon, give the Player a Flight-Powerupgiver with a powerup.duration of 0x7FFFFFFF. When he deselects it, take an actor called "PowerFlight" from him.
-
- Posts: 59
- Joined: Thu Jul 30, 2015 8:41 am
- Location: Death Star
Re: Question about flying
Thanks. I'll try that!