make some parameters configurable

This commit is contained in:
in0finite 2020-06-21 23:35:39 +02:00
parent 9678faa18a
commit 8871702e5b
2 changed files with 4 additions and 1 deletions

View file

@ -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;

View file

@ -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