|
Arma Reforger Script API
|
Public Member Functions | |
| override void | OnPostInit (IEntity owner) |
| override void | EOnInit (IEntity owner) |
| bool | IsBeingLoaded () |
| void | SetLoadingState (bool newState) |
| vector | GetMuzzleDirection () |
| float | GetMuzzleElevation () |
| void | OnShellLoaded (IEntity item, int slotID) |
| Call back method that is triggered on item insertion and is used to play shell loading sound. | |
| void | LoadShell (notnull SCR_MortarShellGadgetComponent shellComp, notnull ChimeraCharacter character, float fuzeTime=-1, bool fromLeftSide=false) |
| Starts the animation of dropping the shell in the mortar barrel. | |
| void | OnWeaponFired (IEntity effectEntity, BaseMuzzleComponent muzzle, IEntity projectileEntity) |
| Callback method used to trigger mortar recoil animation. | |
| void | ResetRecoilAnimationVariable (TAnimGraphVariable varId) |
| Method used to reset the animation variable to its default value. | |
Public Member Functions inherited from MortarMuzzleComponent | |
| proto external void | LoadMortar (IEntity shell) |
Public Member Functions inherited from MuzzleInMagComponent | |
| proto external int | GetInitialAmmoCount () |
Public Member Functions inherited from BaseMuzzleComponent | |
| proto external bool | IsMuzzleSuppressed () |
| proto external EMuzzleType | GetMuzzleType () |
| proto external int | GetNextFireModeIndex () |
| proto external int | GetFireModesCount () |
| proto external int | GetFireModeIndex () |
| proto external int | GetFireModesList (out notnull array< BaseFireMode > outFireModes) |
| proto external BaseFireMode | GetCurrentFireMode () |
| proto external BaseFireMode | GetFireMode (int fireModeIndex) |
| proto external void | SetTriggerEffect (int fireModeIndex, bool bEnable, WeaponGamepadEffectsManagerComponent pEffectsManager, bool isCharged=true) |
| proto external void | SetFiringTriggerEffectEnabled (int fireModeIndex, bool bEnable, WeaponGamepadEffectsManagerComponent pEffectsManager) |
| proto external int | GetBarrelsCount () |
| proto external int | GetCurrentBarrelIndex () |
| proto external int | GetLastBarrelFired () |
| proto external bool | IsBarrelChambered (int barrelIndex) |
| proto external bool | IsCurrentBarrelChambered () |
| proto external bool | IsChamberingPossible () |
| proto external bool | ClearChamber (int barrelIndex) |
| proto external bool | IsDisposable () |
| proto external int | GetAmmoCount () |
| proto external int | GetMaxAmmoCount () |
| proto external BaseMagazineComponent | GetMagazine () |
| proto external BaseMagazineWell | GetMagazineWell () |
| proto external ResourceName | GetDefaultMagazineOrProjectileName () |
| proto external UIInfo | GetUIInfo () |
| proto external bool | GetOpenBoltState () |
| proto external owned string | GetGamepadEffectContext () |
| proto external void | SetGamepadEffectsEnabled (bool val) |
| proto external WeaponGamepadEffectsManagerComponent | GetGamepadEffectsManager () |
| proto external IEntity | GetOwner () |
Public Member Functions inherited from GameComponent | |
| bool | OnTicksOnRemoteProxy () |
Protected Member Functions | |
| void | SetAnimationAttributes (notnull CharacterControllerComponent controller, bool loadedFromLeftSide) |
| Method used to set currently used animation attributes. | |
| ChimeraCharacter | FindResponsibleCharacter (notnull SCR_CharacterControllerComponent controller) |
| Method used determine who should be blamed for the damage that shell will do. | |
| void | OnAnimationEvent (AnimationEventID animEventType, AnimationEventID animUserString, int intParam, float timeFromStart, float timeToEnd, SCR_CharacterControllerComponent controller) |
| Callback called when animation event happens. | |
| void | TransferShellToMortar () |
| Moves currently loaded shell from loaders inventory to the mortar inventory It will also attempt to find next shell that should be equipped when current shell is successfully transferred. | |
| void | OnAnimationEnded (IEntity item, bool successful, ItemUseParameters animParams) |
| Callback called when animation of using the item ends. | |
| void | SynchronizeLoaderData (RplId loaderRplId, RplId shellRplId, float fuseTime, bool loadedFromLeftSide) |
Protected Attributes | |
| string | m_sFireActionName |
| string | m_sFirePowerSignalName |
| ref PointInfo | m_LoaderPosition |
| ref PointInfo | m_LoaderPositionLeft |
| vector | m_vVerticalAngleLimits |
| SCR_CharacterControllerComponent | m_CharController |
| SCR_MortarShellGadgetComponent | m_ShellComponent |
| TurretControllerComponent | m_TurretController |
| AnimationEventID | m_MortarFireEnd = -1 |
| AnimationEventID | m_MortarFireReady = -1 |
| AnimationEventID | m_MortarFireStart = -1 |
| bool | m_bLoadedFromLeftSide |
| bool | m_bBeingLoaded |
Static Protected Attributes | |
| const string | ANIM_EVENT_NAME_FIRE = "MortarFireReady" |
| const string | ANIM_EVENT_NAME_START = "MortarFireStart" |
| const string | ANIM_EVENT_NAME_END = "Event_DetachCharacter" |
| const string | ANIM_VARIABLE_FIRING = "Firing" |
| const string | ANIM_VARIABLE_LEFT_SIDE = "IsLeftSide" |
| const string | ANIM_BIND_COMMAND = "CMD_Item_Action" |
| const string | ANIM_ENTRY_POINT = "FireMasterControl" |
| const string | ANIM_BINDING_NAME = "Weapon" |
| override void SCR_MortarMuzzleComponent.EOnInit | ( | IEntity | owner | ) |
Implements MortarMuzzleComponent.
|
protected |
Method used determine who should be blamed for the damage that shell will do.
| [in] | controller | of the loader |
| vector SCR_MortarMuzzleComponent.GetMuzzleDirection | ( | ) |
| float SCR_MortarMuzzleComponent.GetMuzzleElevation | ( | ) |
| bool SCR_MortarMuzzleComponent.IsBeingLoaded | ( | ) |
| void SCR_MortarMuzzleComponent.LoadShell | ( | notnull SCR_MortarShellGadgetComponent | shellComp, |
| notnull ChimeraCharacter | character, | ||
| float | fuzeTime = -1, | ||
| bool | fromLeftSide = false ) |
Starts the animation of dropping the shell in the mortar barrel.
| [in] | shellComp | from loaded shell |
| [in] | character | loader who will be responsible for the damage that shell will cause |
| [in] | fuzeTime | when set to -1 then new one will be calculated based on curent muzzle elevation |
| [in] | fromLeftSide | if loading animation should use left point info |
|
protected |
Callback called when animation of using the item ends.
| [in] | item | animated item |
| [in] | successful | if animation was able to finish or was interrupted |
| [in] | animParams | parameters that were used to play this animation |
|
protected |
Callback called when animation event happens.
| [in] | animEventType | ID of animation event. |
| [in] | animUserString | String parameter of animation event |
| [in] | intParam | int parameter of animation event |
| [in] | timeFromStart | time from Start of animation event |
| [in] | timeToEnd | time to end of animation event |
| [in] | controller | which triggered this event |
Reset camera override so it does not follow animation
Override camera to follow animation while firing
| override void SCR_MortarMuzzleComponent.OnPostInit | ( | IEntity | owner | ) |
Implements MortarMuzzleComponent.
| void SCR_MortarMuzzleComponent.OnShellLoaded | ( | IEntity | item, |
| int | slotID ) |
Call back method that is triggered on item insertion and is used to play shell loading sound.
| [in] | item | that was inserted |
| [in] | slotID |
| void SCR_MortarMuzzleComponent.OnWeaponFired | ( | IEntity | effectEntity, |
| BaseMuzzleComponent | muzzle, | ||
| IEntity | projectileEntity ) |
Callback method used to trigger mortar recoil animation.
| [in] | effectEntity | |
| [in] | muzzle | |
| [in] | projectileEntity |
| void SCR_MortarMuzzleComponent.ResetRecoilAnimationVariable | ( | TAnimGraphVariable | varId | ) |
Method used to reset the animation variable to its default value.
|
protected |
Method used to set currently used animation attributes.
| [in] | controller | of the character that is going to be executing the animation |
| [in] | loadedFromLeftSide |
| void SCR_MortarMuzzleComponent.SetLoadingState | ( | bool | newState | ) |
|
protected |
|
protected |
Moves currently loaded shell from loaders inventory to the mortar inventory It will also attempt to find next shell that should be equipped when current shell is successfully transferred.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |