add projectile example changes

These changes are a placeholder because technically we could remove the effects from the projectile class altogether. but for now it fires the effects and uses the projectiles explosion/emitter as a fallback.

Also added a specific Ricochet sound effect
This commit is contained in:
marauder2k7 2026-05-16 19:53:54 +01:00
parent e664a2e20c
commit ca454bfc7a
3 changed files with 82 additions and 6 deletions

View file

@ -55,6 +55,8 @@ public:
DECLARE_ASSET_SETGET(MaterialPropertiesData, MediumImpactSound)
DECLARE_SOUNDASSET(MaterialPropertiesData, HardImpactSound)
DECLARE_ASSET_SETGET(MaterialPropertiesData, HardImpactSound)
DECLARE_SOUNDASSET(MaterialPropertiesData, RicochetSound)
DECLARE_ASSET_SETGET(MaterialPropertiesData, RicochetSound)
// Optional: separate sounds for melee (crowbar clink vs bullet ping
// on the same metal surface feel very different)
@ -180,6 +182,7 @@ public:
F32 impactVelocity,
F32 impactForce,
bool isMelee,
bool isRicochet,
bool clientOnly = true);
void setDefaultEffect(MaterialPropertiesData* data);