Wire production aircraft callbacks and diagnose native prison action selection
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user