Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AnimatedBeltComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_AnimatedBeltComponentClass

Functions

override void OnAddedToParent (IEntity child, IEntity parent)
 Establish listeners to gunners entering this turret only after the magazine was attached to the turret.
void OnCompartmentEntered (IEntity vehicle, BaseCompartmentManagerComponent mgr, IEntity occupant, int managerId, int slotID)
 establish listener to gunner firing to move the belt
void OnProjectileShot (int playerID, BaseWeaponComponent weapon, IEntity entity)
 Start the UV shifting.
void Update (float timeSlice)
 Smoothly move the belt by exactly one bullet.
void OnCompartmentLeft (IEntity vehicle, BaseCompartmentManagerComponent mgr, IEntity occupant, int managerId, int slotID)
 remove listeners to gunner when they leave and disconnect system
override void OnDelete (IEntity owner)
 removing all established invokers
void DisconnectSystem ()
void SetBeltSystemIdx (int index)
int GetBeltSystemIdx ()
void RemoveTurretInvokers (IEntity owner)
void RemoveCharacterInvokers (IEntity owner)

Variables

SCR_AnimatedBeltComponentClass s_system
float m_fBeltProgress
float m_fBeltTarget
float m_fBeltStartPoint
int m_iBeltSystemIdx = -1

Function Documentation

◆ DisconnectSystem()

void DisconnectSystem ( )
protected

Definition at line 111 of file SCR_AnimatedBeltComponent.c.

◆ GetBeltSystemIdx()

int GetBeltSystemIdx ( )
protected

Definition at line 126 of file SCR_AnimatedBeltComponent.c.

◆ OnAddedToParent()

override void OnAddedToParent ( IEntity child,
IEntity parent )
protected

Establish listeners to gunners entering this turret only after the magazine was attached to the turret.

Definition at line 33 of file SCR_AnimatedBeltComponent.c.

◆ OnCompartmentEntered()

void OnCompartmentEntered ( IEntity vehicle,
BaseCompartmentManagerComponent mgr,
IEntity occupant,
int managerId,
int slotID )
protected

establish listener to gunner firing to move the belt

Definition at line 52 of file SCR_AnimatedBeltComponent.c.

◆ OnCompartmentLeft()

void OnCompartmentLeft ( IEntity vehicle,
BaseCompartmentManagerComponent mgr,
IEntity occupant,
int managerId,
int slotID )
protected

remove listeners to gunner when they leave and disconnect system

Definition at line 95 of file SCR_AnimatedBeltComponent.c.

◆ OnDelete()

override void OnDelete ( IEntity owner)
protected

removing all established invokers

Definition at line 103 of file SCR_AnimatedBeltComponent.c.

◆ OnProjectileShot()

void OnProjectileShot ( int playerID,
BaseWeaponComponent weapon,
IEntity entity )
protected

Start the UV shifting.

Definition at line 61 of file SCR_AnimatedBeltComponent.c.

◆ RemoveCharacterInvokers()

void RemoveCharacterInvokers ( IEntity owner)
protected

Definition at line 147 of file SCR_AnimatedBeltComponent.c.

◆ RemoveTurretInvokers()

void RemoveTurretInvokers ( IEntity owner)
protected

Definition at line 132 of file SCR_AnimatedBeltComponent.c.

◆ SetBeltSystemIdx()

void SetBeltSystemIdx ( int index)
protected

Definition at line 120 of file SCR_AnimatedBeltComponent.c.

◆ Update()

void Update ( float timeSlice)
protected

Smoothly move the belt by exactly one bullet.

Parameters
[in]timeSlice

Definition at line 80 of file SCR_AnimatedBeltComponent.c.

Variable Documentation

◆ m_fBeltProgress

float m_fBeltProgress
protected

Definition at line 26 of file SCR_AnimatedBeltComponent.c.

◆ m_fBeltStartPoint

float m_fBeltStartPoint
protected

Definition at line 28 of file SCR_AnimatedBeltComponent.c.

◆ m_fBeltTarget

float m_fBeltTarget
protected

Definition at line 27 of file SCR_AnimatedBeltComponent.c.

◆ m_iBeltSystemIdx

int m_iBeltSystemIdx = -1
protected

Definition at line 29 of file SCR_AnimatedBeltComponent.c.

◆ s_system