mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-14 16:27:19 +00:00
make some parameters configurable
This commit is contained in:
parent
9678faa18a
commit
8871702e5b
2 changed files with 4 additions and 1 deletions
|
@ -23,6 +23,8 @@ namespace SanAndreasUnity.Behaviours.Vehicles
|
|||
|
||||
public float explosionForceMultiplier = 700f;
|
||||
public float explosionChassisForceMultiplier = 11000f;
|
||||
public float explosionDamageRadius = 7f;
|
||||
public float explosionDamageMultiplier = 1f;
|
||||
|
||||
public float explosionLeftoverPartsLifetime = 20f;
|
||||
public float explosionLeftoverPartsMaxDepenetrationVelocity = 15f;
|
||||
|
|
|
@ -184,7 +184,8 @@ namespace SanAndreasUnity.Behaviours.Vehicles
|
|||
|
||||
// inflict damage to nearby objects
|
||||
|
||||
Damageable.InflictDamageToObjectsInArea(explosionCenter, 6f, this.HandlingData.Mass);
|
||||
Damageable.InflictDamageToObjectsInArea(
|
||||
explosionCenter, VehicleManager.Instance.explosionDamageRadius, this.HandlingData.Mass * VehicleManager.Instance.explosionDamageMultiplier);
|
||||
|
||||
// create explosion effect
|
||||
|
||||
|
|
Loading…
Reference in a new issue