File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88* Prevent automatically packing models specified only as Hammer previews in various entities.
99* Fix propcombine sometimes removing collisions entirely from component props.
1010* Add an option to allow the sources for compiled models to be preserved.
11+ * #210 : Add ` OnFinished ` output to ` comp_numeric_transition ` .
1112
1213--------------------
1314
Original file line number Diff line number Diff line change 5959 "sine" : "Sinusoidal"
6060 // "overshoot" : "Overshoot"
6161 ]
62+
63+ output OnFinished(void) : "Fired once the transition has completed."
6264 ]
Original file line number Diff line number Diff line change @@ -172,6 +172,12 @@ def compute_point(x: float) -> float:
172172 # Directly sets the location at every point.
173173 result = map (compute_point , points )
174174
175+ # Add the duration so the output fires after the transition finishes.
176+ for out in ent .outputs :
177+ if out .output .casefold () == 'onfinished' :
178+ out .output = 'OnTrigger'
179+ out .delay += duration
180+
175181 last_inp = None
176182 for i , point in enumerate (result ):
177183 if io_type == 'kv' :
You can’t perform that action at this time.
0 commit comments