Play sound independent from placement/toggle action #6

Open
opened 2026-08-03 19:00:41 +02:00 by dirk · 0 comments
Owner

Sound effects are local to the client. When placement prediction is turned off (i.e. when using the alternative toggle action), neither the placement or toggle sounds are playing.

This could be circumvented by getting the game’s default sound/placement/etc. action and the wall node’s sound definition.

Needs to be configurable and investigation

  • Bind to alternative toggle action?
  • Somehow integrated into registration, too?
  • Optionally use a generic sound (no sound)

Placement logic and sounds after placement are unaffected.

Sound effects are local to the client. When placement prediction is turned off (i.e. when using the alternative toggle action), neither the placement or toggle sounds are playing. This could be circumvented by getting the game’s default sound/placement/etc. action and the wall node’s `sound` definition. * [`toggle_between_types`](https://git.0x7be.net/dirk/sdwalls/src/commit/800a029751513c9d5ae3cb261068eaedbdc28333/system/helper_functions.lua#L57-L81) – Where the toggling happens * [`register_wall`](https://git.0x7be.net/dirk/sdwalls/src/commit/800a029751513c9d5ae3cb261068eaedbdc28333/system/register.lua#L141-L160) – Alternative toggle action * [`register_wall`](https://git.0x7be.net/dirk/sdwalls/src/commit/800a029751513c9d5ae3cb261068eaedbdc28333/system/register.lua#L162-L180) – Types definition needs logic for the sounds Needs to be configurable and investigation * Bind to alternative toggle action? * Somehow integrated into registration, too? * Optionally use a generic sound (no `sound`) Placement logic and sounds after placement are unaffected.
dirk self-assigned this 2026-08-03 19:00:43 +02:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
dirk/sdwalls#6
No description provided.