Skip to content

[All] fix trigger_wind brush rotation - #1997

Open
SirYodaJedi wants to merge 3 commits into
ValveSoftware:masterfrom
Yuis-Archives:trigger_wind-rotation_fix
Open

[All] fix trigger_wind brush rotation#1997
SirYodaJedi wants to merge 3 commits into
ValveSoftware:masterfrom
Yuis-Archives:trigger_wind-rotation_fix

Conversation

@SirYodaJedi

@SirYodaJedi SirYodaJedi commented Aug 15, 2026

Copy link
Copy Markdown

Description

Fixes "angles" KV conflict, having been used for both wind direction and brush rotation (as discussed on VDC page).

  • A new "WindAngle" KV has been added, which maps directly to the preexisting m_nDirBase variable. Wind direction is modified by brush angles if using the new method (ensures yaw-rotated instances work correctly).
  • A new "SetWindAngle" input has been added, which properly updates the wind angle.
  • m_nDirBase now defaults to -1 if absent from the entity lump, which reverts to the old method.

Legalese

All code in this PR was written by me based upon existing Source SDK code. Permission is granted to use it as is laid out in the LICENSE and CONTRIBUTING files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant