19 lines
608 B
C
19 lines
608 B
C
// Only a flight that already owns its qualified airframe can receive controls.
|
|
// No allocation, automatic dispatch, input-manager access or periodic work here.
|
|
modded class SCR_CharacterControllerComponent
|
|
{
|
|
override void OnPrepareControls(IEntity owner, ActionManager am, float dt, bool player)
|
|
{
|
|
ERR_AircraftFlight.DispatchActions(this, owner, am, dt, player);
|
|
super.OnPrepareControls(owner, am, dt, player);
|
|
}
|
|
}
|
|
modded class SCR_HelicopterControllerComponent
|
|
{
|
|
protected override event void OnPrepareControls()
|
|
{
|
|
super.OnPrepareControls();
|
|
ERR_AircraftFlight.DispatchHelicopter(this);
|
|
}
|
|
}
|