Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_SpawnProtectionComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_SpawnProtectionComponentClass
 

Functions

SCR_SpawnProtectionComponentClass SCR_BaseGameModeComponentClass Attribute (defvalue:"0.1", desc:"How long should be player protected?")
 
override void OnPlayerSpawnFinalize_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnHandlerComponent handlerComponent, SCR_SpawnData data, IEntity entity)
 
override void OnSpawnPlayerEntityFailure_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnHandlerComponent handlerComponent, IEntity entity, SCR_SpawnData data, SCR_ESpawnResult reason)
 
protected void OnPlayerAmmoChangeCallback (BaseWeaponComponent currentWeapon, BaseMuzzleComponent currentMuzzle, BaseMagazineComponent magazine, int ammoCount, bool isChambered)
 
protected void DisablePlayerProtection (IEntity playerEntity)
 
override void OnPostInit (IEntity owner)
 Called on PostInit when all components are added. More...
 

Function Documentation

◆ Attribute()

SCR_SpawnProtectionComponentClass SCR_BaseGameModeComponentClass Attribute ( defvalue:"0.1"  ,
desc:"How long should be player protected?"   
)

Definition at line 8 of file SCR_SpawnProtectionComponent.c.

◆ DisablePlayerProtection()

protected void DisablePlayerProtection ( IEntity  playerEntity)

Definition at line 108 of file SCR_SpawnProtectionComponent.c.

◆ OnPlayerAmmoChangeCallback()

protected void OnPlayerAmmoChangeCallback ( BaseWeaponComponent  currentWeapon,
BaseMuzzleComponent  currentMuzzle,
BaseMagazineComponent  magazine,
int  ammoCount,
bool  isChambered 
)

Callback to be used by eventHandler in PreparePlayerEntity_S.

Parameters
[in]currentWeapon
[in]currentMuzzle
[in]magazine
[in]ammoCount
[in]isChambered

Definition at line 91 of file SCR_SpawnProtectionComponent.c.

◆ OnPlayerSpawnFinalize_S()

override void OnPlayerSpawnFinalize_S ( SCR_SpawnRequestComponent  requestComponent,
SCR_SpawnHandlerComponent  handlerComponent,
SCR_SpawnData  data,
IEntity  entity 
)
Parameters
[in]requestComponent
[in]handlerComponent
[in]data
[in]entity

Definition at line 72 of file SCR_SpawnProtectionComponent.c.

◆ OnSpawnPlayerEntityFailure_S()

override void OnSpawnPlayerEntityFailure_S ( SCR_SpawnRequestComponent  requestComponent,
SCR_SpawnHandlerComponent  handlerComponent,
IEntity  entity,
SCR_SpawnData  data,
SCR_ESpawnResult  reason 
)
Parameters
[in]requestComponent
[in]handlerComponent
[in]entity
[in]data
[in]reason

Definition at line 79 of file SCR_SpawnProtectionComponent.c.