Skip to content

[entity] Implement support for target_speed #98

Description

@heysokam

Sets the speed of the player.
If ADD is specified, negative values will reduce the speed.
If LAUNCHER isn't specified the player will only be accelerated if he is moving while the target_speed is triggered, as the player needs a moving direction and this is only given when he moves.
LAUNCHER will split the given speed value to the given directions.
Note that only one of the spawnflags for each coordinate must be set.
For example if +X and -X is active the x-direction will be ignored.
The same is the case if whether +X nor -X is active.
So if you want to accelerate the player up with 900u you have to set the speed value to 900 and activate the spawnflags +Z and LAUNCHER.

Keys

  • targetname | Target Name | targetname | | Activating trigger points to this.
  • speed | Speed | real | 100 | Speed value to set (default: 100).

Flags

  • PERCENTAGE | value is treated as percentage of current speed
  • ADD | adds the speed instead of setting it
  • +X | takes positive X-direction into account
  • -X | takes negative X-direction into account
  • +Y | takes positive Y-direction into account
  • -Y | takes negative Y-direction into account
  • +Z | takes positive Z-direction (up) into account
  • -Z | takes positive Z-direction (up) into account
  • LAUNCHER | will accelerate the player into the given direction (spawnflags)

Activity

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

Metadata

Metadata

Assignees

Labels

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions