Skip to content

Commit ee3792f

Browse files
leopsleo-paul.couturier
andauthored
Add gravity direction properties (#292)
Co-authored-by: leo-paul.couturier <leo-paul.couturier@sloclap.com>
1 parent 81acce1 commit ee3792f

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

fgd/bases/BaseDustParticleSpawner.fgd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
= BaseDustParticleSpawner
44
[
55
startdisabled(boolean) : "Start Disabled" : 0
6-
color(color255) : "Particle Color (R G B)" : "255 255 255"
6+
color(color255) : "Start Particle Color (R G B)" : "255 255 255"
7+
color2(color255) : "End Particle Color (R G B)" : "255 255 255"
78
spawnrate(integer) : "Particle Per Second" : 40 : "Number of particles to spawn, per second."
89
speedmax(integer) : "Maximum Particle Speed" : 13 : "Maximum speed that the particles can move after spawning."
910
fallspeed(integer) : "Particle Fall Speed" : 0 : "How fast the particles fall to the ground. This value is subtracted from the particle speed in the Z-axis only."
11+
falldirection(vector) : "Particle Fall Direction" : "0 0 0" : "The direction the particles should fall towards, if they are affected by gravity. Note: setting this vector will prevent the particles from being affected by wind."
1012
lifetimemin(integer) : "Minimum Particle Lifetime" : 3 : "Minimum number of seconds until each particle dies. Particles live for a random duration between this and 'Maximum Particle Lifetime'."
1113
lifetimemax(integer) : "Maximum Particle Lifetime" : 5 : "Maximum number of seconds until each particle dies. Particles live for a random duration between 'Minimum Particle Lifetime' and this. Will be clamped to a max of 15."
1214
distmax(integer) : "Maximum Visible Distance" : 1024 : "Maximum distance at which particles are visible. They fade to translucent at this distance."
@@ -19,4 +21,5 @@
1921
// Inputs
2022
input TurnOn(void) : "Turn on."
2123
input TurnOff(void) : "Turn off."
24+
input SetFallDirection(vector) : "Update the particle fall direction."
2225
]

fgd/brush/trigger/trigger_gravity.fgd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
[
44
gravity(float) : "Gravity (0-1)" : 1
55
persist(boolean) : "Persist" : 0 : "Whether the gravity change persists. A setting of 0 will reset gravity to default on exiting. 1 will persist and thus act like how it did in older games like TF2."
6+
gravityvector(angle) : "Gravity Direction" : "90 0 0" : "Override the gravity vector of players and paint blobs touching the volume to this direction."
7+
8+
input SetGravityDirection(vector) : "Update the gravity vector."
69
]

fgd/brush/trigger/trigger_vphysics_motion.fgd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
]
88

99
setgravityscale(float) : "Gravity Scale" : 1.0 : "Scale gravity of objects in the field by this amount."
10+
setgravitydirection(vector) : "Gravity Direction" : "0 0 0" : "Orient gravity for objects in the field towards this direction."
11+
disableaircontrol(boolean) : "Disable Air Control" : 1 : "Disable air control for players touching this volume."
1012
setadditionalairdensity(float) : "Additional air density for drag" : 0
1113
setvelocitylimit(float) : "Velocity Limit" : 0.0 : "Max velocity in field (0 disables)"
1214
setvelocitylimitdelta(float) : "Velocity Limit Force" : 0.0 : "Max amount to reduce velocity per second when it exceeds the velocity limit (0 disables)"
@@ -32,4 +34,5 @@
3234
input SetAngVelocityLimit(float) : "Max angular velocity in field."
3335
input SetAngVelocityScale(float) : "Angular Velocity scale/drag"
3436
input SetLinearForce(float) : "Linear force (0 disables)"
37+
input SetGravityDirection(vector) : "Update the gravity direction."
3538
]

0 commit comments

Comments
 (0)