Audio: Projectile Sounds Module – Arma Reforger
Category: Arma Reforger/Modding/Guidelines/Audio
Lou Montana (talk | contribs) m (Lou Montana moved page Arma Reforger:Audio: Projectile Sounds Manager to Arma Reforger:Audio: Projectile Sounds Module: ProjectileSoundsManager renamed to ProjectileSoundsModule (unavailable in script)) |
Lou Montana (talk | contribs) m (Add note) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
The {{hl|ProjectileSoundsModule}}: | |||
{{ | |||
* Handles Sonic Crack / Bullet Flyby sounds. | * Handles Sonic Crack / Bullet Flyby sounds. | ||
* The World has to contain a | * The World has to contain a ProjectileSoundsModule entity for Sonic Cracks / Bullet Flybys to work. | ||
* You can use the prepared prefab (\Prefabs\Sounds\Weapons\ | * You can use the prepared prefab (\Prefabs\Sounds\Weapons\ProjectileSoundsModule.et) or create a new one. | ||
* The | * The ProjectileSoundsModule needs to have all bulletCrack/flyBy acps which will be used defined in the "unsorted" category. | ||
* The | * The ProjectileSoundsModule entity has MaxAudibleDistance parameters for Subsonic (Bullet FlyBy) and supersonic sounds (Sonic Crack). | ||
* The "Exclusion Radius" parameter defined the radius to the projectile's spawn location in which no sound will be played. Helps to prevent the projectiles from playing sounds when they shouldn't in some edge-cases. | * The "Exclusion Radius" parameter defined the radius to the projectile's spawn location in which no sound will be played. Helps to prevent the projectiles from playing sounds when they shouldn't in some edge-cases. | ||
{{Feature|informative|Before {{GVI|armaR|1.6.0}}, {{hl|ProjectileSoundsModule}} was named {{hl|ProjectileSoundsManager}}.}} | |||
== ShellMoveComponent == | == ShellMoveComponent == | ||
| Line 14: | Line 15: | ||
* Ammo prefabs need to have a ShellMoveComponent. | * Ammo prefabs need to have a ShellMoveComponent. | ||
* Subsonic and supersonic flyby/crack sounds can be defined in the "Audio Resources" tab. | * Subsonic and supersonic flyby/crack sounds can be defined in the "Audio Resources" tab. | ||
{{Feature|important|The defined acps need to also be defined in the {{ | |||
{{Feature|important|The defined acps need to also be defined in the {{hl|ProjectileSoundsModule}}.}} | |||
== Sound Events == | == Sound Events == | ||
See {{Link|Arma Reforger:Audio: Sound Events# | See {{Link|Arma Reforger:Audio: Sound Events#ProjectileSoundsModule}}. | ||
== Signals == | == Signals == | ||
Latest revision as of 14:52, 3 November 2025
The ProjectileSoundsModule:
- Handles Sonic Crack / Bullet Flyby sounds.
- The World has to contain a ProjectileSoundsModule entity for Sonic Cracks / Bullet Flybys to work.
- You can use the prepared prefab (\Prefabs\Sounds\Weapons\ProjectileSoundsModule.et) or create a new one.
- The ProjectileSoundsModule needs to have all bulletCrack/flyBy acps which will be used defined in the "unsorted" category.
- The ProjectileSoundsModule entity has MaxAudibleDistance parameters for Subsonic (Bullet FlyBy) and supersonic sounds (Sonic Crack).
- The "Exclusion Radius" parameter defined the radius to the projectile's spawn location in which no sound will be played. Helps to prevent the projectiles from playing sounds when they shouldn't in some edge-cases.
ShellMoveComponent
- Ammo prefabs need to have a ShellMoveComponent.
- Subsonic and supersonic flyby/crack sounds can be defined in the "Audio Resources" tab.
Sound Events
See Audio: Sound Events - ProjectileSoundsModule.
Signals
- Distance: from listener to projectile sound
- Angle: between projectile trajectory and shooter-listener direction [0..180 degrees]
- Speed: Initial speed of projectile.
- IsDeflected: 0 if passing projectile never touched the ground, 1 if passing projectile got deflected before reaching the listener