|
| override bool | HijackDamageHandling (notnull BaseDamageContext damageContext) |
| | Hijack melee damage on mines so they cannot take melee damage when inactive.
|
| |
| void | ExplodeWrapper () |
| |
| void | GetPhysicalHitZones (out notnull array< HitZone > physicalHitZones) |
| | Return hit zones with colliders assigned.
|
| |
| void | GetRegeneratingHitZones (out notnull array< SCR_RegeneratingHitZone > regeneratingHitZones) |
| | Return hit zones with passive regeneration enabled.
|
| |
| void | RpcDo_SetFireState (int hitZoneIndex, SCR_EBurningState fireState) |
| |
| override bool | FilterContact (IEntity owner, IEntity other, Contact contact) |
| | No contacts for destroyed entities.
|
| |
| int | GetSurroundingHitzones (vector origin, Physics physics, float maxDistance, out array< HitZone > outHitzones) |
| |
| float | GetMinDestroyDamage (EDamageType damageType, array< HitZone > hitzones) |
| |
| ScriptInvoker | GetOnDamage () |
| |
| ScriptInvoker | GetOnDamageOverTimeAdded () |
| |
| ScriptInvoker | GetOnDamageOverTimeRemoved () |
| |
| ScriptInvoker | GetOnDamageStateChanged () |
| |
| void | ~SCR_DamageManagerComponent () |
| |
| int | GetHitZonesOfGroup (EHitZoneGroup hitZoneGroup, out notnull array< HitZone > groupHitZones, bool clearArray=true) |
| | Get a list of all hitzones of specific hitzone group.
|
| |
| int | GetHitZonesOfGroups (notnull array< EHitZoneGroup > hitZoneGroups, out notnull array< HitZone > groupHitZones) |
| | Get a list of all hitzones of specific hitzone group.
|
| |
| float | GetGroupDamageOverTime (ECharacterHitZoneGroup hitZoneGroup, EDamageType damageType) |
| | Get total damage over time of given hitzone group.
|
| |
| void | Kill (notnull Instigator instigator) |
| | Neutralize the entity with a specific damage type, registering the killer entity.
|
| |
| void | DamageRandomHitZones (float damage, EDamageType type, notnull Instigator instigator, bool onlyPhysical=true, vector outMat[3]={}, bool damageDefault=false) |
| | Damage random physical hit zones up to damage amount.
|
| |
| bool | CanBeHealed (bool ignoreHealingDOT=true) |
| | Return true if there is damage that can be repaired.
|
| |
| void | FullHeal (bool ignoreHealingDOT=true) |
| | Fix all the damage.
|
| |
| float | HealHitZones (float healthToDistribute, bool sequential=false, float maxHealThresholdScaled=1, array< HitZone > alternativeHitZones=null) |
| | Partially heal the hitZones of an entity.
|
| |
| void | ReduceSmoke () |
| | Reduce smoke output based on the total health of hit zones.
|
| |
| float | GetHitZonesDamage (float untilThresholdScaled=1, array< HitZone > alternativeHitZones=null) |
| | Get all damage dealt to hitzones.
|
| |
| float | GetHitZonesHealthScaled (array< HitZone > alternativeHitZones=null) |
| | Get Health scaled of all hitzones.
|
| |
| float | GetSingleHitZonesHealthScaled (array< HitZone > alternativeHitZones=null, bool getLowestHealth=true) |
| | Get single Health scaled from hitzones.
|
| |
| ResourceName | GetSecondaryExplosion (float value, SCR_ESecondaryExplosionType explosionType, EResourceType resourceType=EResourceType.SUPPLIES, bool fire=false, out bool hasData=false) |
| | Determine secondary explosion prefab based on explosion value, type and resource type if defined.
|
| |
| SCR_SecondaryExplosion | GetSecondaryExplosionForScale (SCR_ESecondaryExplosionScale scale, SCR_ESecondaryExplosionType explosionType, EResourceType resourceType=EResourceType.SUPPLIES) |
| | Determine secondary explosion prefab based on explosion scale, type and resource type if defined.
|
| |
| SCR_ESecondaryExplosionScale | GetSecondaryExplosionScale (float value, SCR_ESecondaryExplosionType explosionType, EResourceType resourceType=EResourceType.SUPPLIES) |
| | Determine secondary explosion prefab based on explosion value, type and resource type if defined.
|
| |
| ResourceName | GetSecondaryFireParticle (float value, SCR_ESecondaryExplosionType explosionType, EResourceType resourceType=EResourceType.SUPPLIES) |
| | Determine secondary explosion prefab based on explosion value, type and resource type if defined.
|
| |
| bool | IsOnFire (HitZone hitZone=null) |
| | Determine if provided or any hit zone from this damage manager is on fire.
|
| |
| bool | IsOnFire (notnull array< HitZone > hitZones) |
| | Determine if any hit zone from this damage manager is on fire.
|
| |
| void | SecondaryExplosion (ResourceName prefabName, notnull Instigator instigator, notnull EntitySpawnParams spawnParams) |
| | Spawn secondary explosion.
|
| |
| SCR_ResourceEncapsulator | GetResourceEncapsulator (EResourceType suppliesType=EResourceType.SUPPLIES) |
| |
| void | SupplySecondaryExplosion (notnull Instigator instigator) |
| | Spawn supply secondary explosion when vehicle becomes destroyed.
|
| |
| vector | GetSecondaryExplosionPosition (TypeName hitZoneType, out float totalWeight=0) |
| | Get weighed average position of explosion for hitzones of specified type.
|
| |
| void | FuelSecondaryExplosion (notnull Instigator instigator) |
| | Spawn fuel secondary explosion when vehicle becomes destroyed.
|
| |
| void | UpdateFireDamage (float timeSlice) |
| |
| void | UpdateFireParticles (vector position, out ParticleEffectEntity particles, SCR_ESecondaryExplosionScale state, SCR_ESecondaryExplosionType fireType, EResourceType resourceType=EResourceType.SUPPLIES) |
| | Update visual effects and store result in particles variable.
|
| |
| override void | OnDamageOverTimeAdded (EDamageType dType, float dps, HitZone hz) |
| | Invoked every time the DoT is added to certain hitzone.
|
| |
| override void | OnDamageOverTimeRemoved (EDamageType dType, HitZone hz) |
| | Invoked when provided damage type is removed from certain hitzone.
|
| |
| override int | _WB_GetAfterWorldUpdateSpecs (IEntity owner, IEntitySource src) |
| |
| proto external int | ComputeStruckHitZones (out notnull array< HitZone > struckHitZones, notnull BaseDamageContext damageContext) |
| | Clears and fills struckHitZones array with all HZs that should get damaged by this BaseDamageContext.
|
| |
| proto external void | EnableDamageHandling (bool enable) |
| |
| proto external bool | IsDamageHandlingEnabled () |
| |
| proto external void | EnableDamageSystemOnFrame () |
| | Call to enable damage system's on frame.
|
| |
| proto external void | DisableDamageSystemOnFrame () |
| | Call to disable damage system's on frame.
|
| |
| proto external void | SetMovementDamage (float damage) |
| | Sets the movement damage modifier.
|
| |
| proto external float | GetMovementDamage () |
| | Returns the movement damage modifier.
|
| |
| proto external void | SetAimingDamage (float damage) |
| | Sets the aiming damage modifier.
|
| |
| proto external float | GetAimingDamage () |
| | Returns aiming damage modifier.
|
| |
| proto external float | GetHealthScaled () |
| |
| proto external bool | SetHealthScaled (float health) |
| |
| proto external float | GetHealth () |
| |
| proto external float | GetMaxHealth () |
| |
| proto external EDamageState | GetState () |
| |
| proto external bool | IsDestroyed () |
| |
| proto external void | SetInstigatorEntity (IEntity instigator) |
| |
| proto external void | SetInstigator (notnull Instigator instigator) |
| |
| proto external void | SetAndReplicateInstigator (notnull Instigator instigator) |
| | Sets the instigator and broadcasts the change to clients DO NOT USE THIS METHOD UNLESS YOU KNOW EXACTLY WHEN TO USE IT IF YOU ARE USING THIS YOU PROBABLY SHOULD BE DEALING DAMAGE TO THE PLAYER TO KILL THEM.
|
| |
| proto external notnull Instigator | GetInstigator () |
| |
| proto external int | GetAttachedColliderIDs (out notnull array< int > outAttachedColliderIDs) |
| | Fills colliderIDs with all the colliders attached to hitzones this dmg manager owns.
|
| |
| proto external void | HandleDamage (notnull BaseDamageContext damageContext) |
| |
| proto external bool | IsDamagedOverTime (EDamageType dType) |
| |
| proto external float | GetDamageOverTime (EDamageType dType) |
| |
| proto external void | RemoveDamageOverTime (EDamageType dType) |
| | Removes DOT of provided damageType from all currently affected HitZones.
|
| |
| GameMaterial | OverrideHitMaterial (HitZone struckHitzone) |
| | Not all armors are physical so the surface that gets struck by projectiles will not be the one the armor, but the hitzone.
|
| |
| bool | ShouldCountAsHit (notnull BaseDamageContext damageContext) |
| | Called after HijackDamageHandling.
|
| |
| proto external IEntity | GetOwner () |
| |
| proto external HitZone | GetDefaultHitZone () |
| |
| proto external HitZone | GetHitZoneByName (string hitZoneName) |
| | Get the HitZone that matches the provided collider name.
|
| |
| proto external HitZone | GetHitZoneByColliderID (int colliderID) |
| | Get the HitZone that matches the provided collider ID.
|
| |
| proto external int | GetHitZonesByColliderIDs (out notnull array< HitZone > outHitZones, notnull array< int > colliderIDs) |
| | Clears and fills the specified outHitZones array with all HZs that are attached to colliderIDs.
|
| |
| proto external HitZone | GetHitZone (string colliderName) |
| |
| proto external int | CountAllHitZones () |
| | Counts the number of hitzones in this entity.
|
| |
| proto external int | CountAllHitZonesInHierarchy () |
| | Counts the number of hitzones in this entity and its children.
|
| |
| proto external int | GetAllHitZones (out notnull array< HitZone > outHitZones) |
| | Clears and fills the specified outHitZones array with all HZs in this entity Returns the count of elements that were filled into the array.
|
| |
| proto external int | GetAllHitZonesInHierarchy (out notnull array< HitZone > outHitZones) |
| | Clears and fills the specified outHitZones array with all HZs in this entity and its children.
|
| |
| proto external HitZoneContainerComponent | GetParentHitZoneContainer () |
| |
| bool | OnTicksOnRemoteProxy () |
| |
|
| override void | OnDamageStateChanged (EDamageState newState, EDamageState previousDamageState, bool isJIP) |
| | Invoked when damage state changes.
|
| |
| void | RpcDo_SetFireState_ (int hitZoneIndex, SCR_EBurningState fireState) |
| | Set fire rate of a flammable hitzone.
|
| |
| notnull SCR_DamageManagerData | GetScriptedDamageManagerData () |
| |
| override void | OnDamage (notnull BaseDamageContext damageContext) |
| |
| override bool | ShouldOverrideInstigator (notnull Instigator currentInstigator, notnull Instigator newInstigator) |
| | Called whenever an instigator is going to be set.
|
| |
| float | HealHitZonesInSequence (float healthToDistribute, float maxHealThresholdScaled, array< HitZone > targetHitZones) |
| |
| float | HealHitZonesInParallel (float healthToDistribute, float maxHealThresholdScaled, array< HitZone > targetHitZones) |
| |
| void | ConnectToFireDamageSystem () |
| |
| void | DisconnectFromFireDamageSystem () |
| |
| override void | _WB_AfterWorldUpdate (IEntity owner, float timeSlice) |
| |
| void | DiagOnlyIfPossessedByPlayerController (notnull IEntity owner) |
| | Use this to run diag for the character who is currently possessed by player controller.
|
| |
| void | OnHandleFallDamage (EFallDamageType fallDamageType, vector velocityVector) |
| | Called when fall related damage is relevant.
|
| |
| void | OnHealthSet () |
| | Called when SetHealth() is used on default hitzone.
|
| |
| void | OnMaxHealthChanged () |
| | Called when SetMaxHealth() is used on default hitzone.
|
| |
| void | OnPostInit (IEntity owner) |
| | Called after all components are initialized.
|
| |
| void | OnDelete (IEntity owner) |
| |
| void | OnFrame (IEntity owner, float timeSlice) |
| | Called during EOnFrame.
|
| |
| void | OnFilteredContact (IEntity owner, IEntity other, Contact contact) |
| | Only called if FilterContact returned true.
|
| |
| void | OnDiag (IEntity owner, float timeSlice) |
| | Called during EOnDiag.
|
| |
| bool | HasDataToReplicate () |
| | Use it to save bandwidth in some default conditions. Use it if Save and Load are overriden.
|
| |
| bool | OnRplSave (ScriptBitWriter writer) |
| |
| bool | OnRplLoad (ScriptBitReader reader) |
| |