mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-08 13:14:33 +00:00
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:
parent
e664a2e20c
commit
ca454bfc7a
3 changed files with 82 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue