-
Notifications
You must be signed in to change notification settings - Fork 0
ADrone
Ivory edited this page Nov 2, 2024
·
6 revisions
The drone methodmap wraps around the core entity that handles the drone. Drones hold seats and weapons that determine their functionality, each having their own sub properties that can be modified.
This methodmap is automatically closed when the drone is removed. Do not manually close this handle.
-
bool CanMove- If true, allows this drone to move from player input. Drone cannot move from player input when set to false. -
float CameraHeight- Determines the height offset for the attached camera on this drone. -
bool NoHud- If true, the default drone hud will not render for the pilot of this drone. -
bool Alive- Determines whether or not this drone is alive. This is handled by the core plugin and generally does not need to be modified. -
float MaxSpeed- Maximum speed for this drone when moving from player input. -
float Acceleration- Rate at which the drone's speed changes by when moving. -
float Deceleration- Rate at which this drone's speed changes by when not moving. -
float TurnRate- Rate, in degrees per second, that this drone turns towards the player's view angles. -
float UsePlayerAngles- If true, this drone will turn towards the pilot's view angles. -
TFTeam Team- Team this drone is associated with. This will generally be the team of the pilot. -
EMoveType
MoveType- The movement type of this drone. Determines how the drone will behave when piloted.
-
bool HeloChangePitch- If true and a helo drone, this drone will match the player's pitch angles. -
bool HeloChangeRoll- If true and a helo drone, this drone will update roll angles while moving side to side. -
bool HeloVerticalAxis- If true and a helo drone, this drone will move vertically based on the world vertical axis, rather than the drone's up vector.
-
ADronePlayer
Pilot- Player currently piloting this drone. (Note: Once multi-seat functionality is implemented, this will return the occupier of the pilot seat rather than be a modifiable property). -
FComponentArray
Weapons- Array of weapons associated with this drone. Wraps an ArrayList -
ArrayList Seats- Array of seats associated with this drone. As of now this only supports a single pilot seat.