Demote Unity weapon effects to presentation

This commit is contained in:
Meta Vens 2026-07-05 19:36:19 +01:00
commit da6ab814c8
19 changed files with 52 additions and 84 deletions

View file

@ -25,11 +25,8 @@ public class ProjectileManager : InstantWeaponEffectManager
p.StartPosition = p.transform.position = barrel.position + p.Velocity * (Random.value * Time.deltaTime);
if(InheritVelocity)
p.Velocity += (Vector3)AetheriaMath.ToUnityXZ(source.Entity.CultVelocity);
p.Damage = weapon.Damage;
p.Range = weapon.Range;
p.Penetration = weapon.Penetration;
p.Spread = weapon.DamageSpread;
p.DamageType = weapon.DamageType;
p.ImpactIntensity = 1;
p.AirburstDistance = target != null
? CultMath.math.length(source.Entity.CultPosition - target.Entity.CultPosition)
: (weapon.Range * .75f);