Trigger push: Difference between revisions
Jump to navigation
Jump to search
m (fixed confirm note on setpushdir input) |
Deprecated (talk | contribs) (Added internal names for keyvalues, added L4D2 keyvalue and input, fixed incorrect game availability for SetPushDirection, added Garry's Mod availability for CSGO parameters, cleaned up flags) |
||
Line 4: | Line 4: | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Push Direction | {{KV|Push Direction|intn=pushdir|angle|Angles indicating the direction to push touched entities.}} | ||
{{KV|Speed of Push|integer|The speed at which to push entities away, in inches / second.}} | {{KV|Speed of Push|intn=speed|integer|The speed at which to push entities away, in inches / second.}} | ||
{{KV|Scale force for alternate ticks|float|If nonzero, scale the force by this amount when running with alternate ticks. This fixes problems with an overly large force due to the longer frametime on when running with sv_alternateticks 1.}} | {{KV|Scale force for alternate ticks|intn=alternateticksfix|float|If nonzero, scale the force by this amount when running with alternate ticks. This fixes problems with an overly large force due to the longer frametime on when running with <code>sv_alternateticks 1</code>.}} | ||
{{KV|Only Falling Players|boolean|since=CSGO|Only affect players if they are falling (and not pressing jump)}} | {{KV|Trigger on Start Touch|intn=triggeronstarttouch|boolean|Trigger on start touch instead of on touch.|only=l4d2}} | ||
{{KV|Player fall speed|float|since=CSGO| | {{KV|Only Falling Players|intn=OnlyFallingPlayers|boolean|since=CSGO|also=GMOD|Only affect players if they are falling (and not pressing jump).}} | ||
{{KV|Player fall speed|intn=FallingSpeedThreshold|float|since=CSGO|also=GMOD|A player must be falling this fast for them to be pushed.}} | |||
==Flags== | ==Flags== | ||
{{minititle|TriggerPush}} | |||
{{Fl|128|Once Only (possibly means set velocity rather than apply acceleration)}} | |||
{{Fl|256|Affects Ladders (Half-Life 2)}} | |||
{{Fl Trigger}} | {{Fl Trigger}} | ||
==Inputs== | ==Inputs== | ||
{{IO| | {{IO|SetPushSpeed|param=int|Set the push speed in inches / second.|only=l4d2}} | ||
{{IO|SetSpeed|Sets the push speed. Still takes alternate tick | {{IO|SetPushDirection|param=vector|Sets the push angle of the trigger.|since=AS|also=GMOD}} | ||
{{IO|SetSpeed|param=int|Sets the push speed. Still takes alternate tick keyvalue into account.|only={{P2CE}}}} | |||
{{I Trigger}} | {{I Trigger}} | ||
==Outputs== | ==Outputs== | ||
{{O Trigger}} | {{O Trigger}} |
Revision as of 06:01, 28 January 2021
Template:Base brush It is a trigger volume that pushes entities that touch it, except those with a parent.
Keyvalues
- Push Direction (pushdir) <angle>
- Angles indicating the direction to push touched entities.
- Speed of Push (speed) <integer>
- The speed at which to push entities away, in inches / second.
- Scale force for alternate ticks (alternateticksfix) <float>
- If nonzero, scale the force by this amount when running with alternate ticks. This fixes problems with an overly large force due to the longer frametime on when running with
sv_alternateticks 1
.
- Trigger on Start Touch (triggeronstarttouch) <boolean> (only in
)
- Trigger on start touch instead of on touch.
- Only Falling Players (OnlyFallingPlayers) <boolean> (in all games since
) (also in
)
- Only affect players if they are falling (and not pressing jump).
- Player fall speed (FallingSpeedThreshold) <float> (in all games since
) (also in
)
- A player must be falling this fast for them to be pushed.
Flags
TriggerPush:
- Once Only (possibly means set velocity rather than apply acceleration) : [128]
- Affects Ladders (Half-Life 2) : [256]
|
Inputs
- SetPushSpeed <integer > (only in
)
- Set the push speed in inches / second.
- SetSpeed <integer > (only in
)
- Sets the push speed. Still takes alternate tick keyvalue into account.
|
Outputs
|