![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Protected Member Functions | |
| void | OnInit (IEntity owner, BaseSightsComponent sights) |
| void | OnUpdate (IEntity owner, BaseSightsComponent sights, float timeSlice) |
| event bool | WB_GetZeroingData (float weaponAngle, float distance, out vector offset, out vector angles) |
| event float | WB_CalculateWeaponZeroingAnimationValue (float pitch, float distance, out vector offset, out vector angles) |
| event vector | WB_GetPivotPoint () |
| event bool | WB_InitGenerator () |
| event void | WB_CleanupGenerator () |
Definition at line 7 of file ScriptedBaseZeroingGenerator.c.
|
protected |
Called on initialization.
| owner | Parent entity. |
| sights | Parent sights component. |
|
protected |
Called every frame when active to update current state.
| owner | Parent entity. |
| sights | Parent sights component. |
| timeSlice | Delta of time since last update. |
|
protected |
Return the animation value for the sights animation. This usually outputs a value that makes the sight line up with the eye as close as possible.
| pitch | The angle at which the weapon is held. |
| distance | The distance this zeroing data is calculated for |
| offset | output Computed offset of the weapon to the eye position |
| angles | output Computed angles for holding the weapon |
|
protected |
Clean up. This method is only called automatically if WB_InitGenerator has return true. Otherwise, cleanup either needs to take place within WB_InitGenerator itself, or WB_InitGenerator must call this function
|
protected |
Returns the pivot point of the sights. Usually defined in the sights component, but might be missing if for example the front sight pivot is not on the owner but rather on the entity it is attached to (like the M203)
| owner | Parent entity |
| sights | Parent Sights component |
|
protected |
Called to obtain zeroing data for a given weapon angle.
| weaponAngle | Angle how the weapon should be held |
| distance | The distance this zeroing data is calculated for |
| offset | output Computed offset of the weapon to the eye position |
| angles | output Computed angles for holding the weapon |
|
protected |
Initialize the generator