Bullets. Whizby
"Whizby" - the sound of an enemy projectile passing close to the listener/object. For each projectile (BP_Projectile_), a unique sound event is assigned. The sound event "whizby" is played only for enemy projectiles and is relevant only to the main listener. Invocation mechanism: The sound event is triggered at the moment the projectile exits a sphere (whizby is not played when the projectile stops inside the sphere). The center of the sphere is the main listener's mech, and the radius of the sphere is one and a half times the height of the mech.
The mechanics of the Whizby system
The mechanics operate through a set of switches called ASW_ProjectileTypeSwitch.
Similar to the impact system for bullets, tags were introduced for the primary projectile types for the Whizby system:
- "Rifle" (Wwise switch ASW_ImpactType_MachineGun) - all light bullets from machine guns, SMGs, etc.
- "Buckshot" (Wwise switch ASW_ImpactType_Shotgun) - all shotgun shells
- "Heavy" (Wwise switch ASW_ImpactType_Sniper) - all heavy bullets like Trebuchet
- "Rocket" (Wwise switch ASW_ImpactType_Rocket) - all rockets
- "Energy" (Wwise switch ASW_ImpactType_Energy) - all energy-based shots
To trigger the appropriate Whizby for a projectile, it needs to be tagged first. In the projectile's blueprint, the tag is set in the Projectile Sound Type.
Playback Rule
- Common Playback - the Whizby checks the tag from the Projectile Sound Type and plays according to the specified type.
- Forbid Playback - cancels the sound playback for this particular Whizby.
- Override Playback - opens a slot for a unique Whizby sound event. The tag from the Projectile Sound Type stops working for this projectile.



