From 5821e1c7494727bb8817a09e0593c147e94b1e5b Mon Sep 17 00:00:00 2001 From: LegendaryGuard Date: Sun, 11 Dec 2022 21:35:48 +0000 Subject: [PATCH] Fix contents and effect code block --- Effectinfo-Scripting.md | 103 +++++++++++++++++++--------------------- 1 file changed, 50 insertions(+), 53 deletions(-) diff --git a/Effectinfo-Scripting.md b/Effectinfo-Scripting.md index ca9daa7..a7a261b 100644 --- a/Effectinfo-Scripting.md +++ b/Effectinfo-Scripting.md @@ -17,41 +17,38 @@ Each effect can have several emitters which is defined in effectinfo.txt or maps ## Contents -* [1 General syntax](http://web.archive.org/web/20100729132930/http://dpwiki.slipgateconstruct.com/index.php?title=Effectinfo_Scripting_Reference#General_syntax) -* [2 Console variables](http://web.archive.org/web/20100729132930/http://dpwiki.slipgateconstruct.com/index.php?title=Effectinfo_Scripting_Reference#Console_variables) -* [3 Particle parameters](http://web.archive.org/web/20100729132930/http://dpwiki.slipgateconstruct.com/index.php?title=Effectinfo_Scripting_Reference#Particle_parameters) -* [4 Particles leaving decals](http://web.archive.org/web/20100729132930/http://dpwiki.slipgateconstruct.com/index.php?title=Effectinfo_Scripting_Reference#Particles_leaving_decals) -* [5 Dynamic lights](http://web.archive.org/web/20100729132930/http://dpwiki.slipgateconstruct.com/index.php?title=Effectinfo_Scripting_Reference#Dynamic_lights) -* [6 Engine effect names](http://web.archive.org/web/20100729132930/http://dpwiki.slipgateconstruct.com/index.php?title=Effectinfo_Scripting_Reference#Engine_effect_names) -* [7 Known bugs](http://web.archive.org/web/20100729132930/http://dpwiki.slipgateconstruct.com/index.php?title=Effectinfo_Scripting_Reference#Known_bugs) +* [1. General syntax](http://web.archive.org/web/20100729132930/http://dpwiki.slipgateconstruct.com/index.php?title=Effectinfo_Scripting_Reference#General_syntax) +* [2. Console variables](http://web.archive.org/web/20100729132930/http://dpwiki.slipgateconstruct.com/index.php?title=Effectinfo_Scripting_Reference#Console_variables) +* [3. Particle parameters](http://web.archive.org/web/20100729132930/http://dpwiki.slipgateconstruct.com/index.php?title=Effectinfo_Scripting_Reference#Particle_parameters) +* [4. Particles leaving decals](http://web.archive.org/web/20100729132930/http://dpwiki.slipgateconstruct.com/index.php?title=Effectinfo_Scripting_Reference#Particles_leaving_decals) +* [5. Dynamic lights](http://web.archive.org/web/20100729132930/http://dpwiki.slipgateconstruct.com/index.php?title=Effectinfo_Scripting_Reference#Dynamic_lights) +* [6. Engine effect names](http://web.archive.org/web/20100729132930/http://dpwiki.slipgateconstruct.com/index.php?title=Effectinfo_Scripting_Reference#Engine_effect_names) +* [7. Known bugs](http://web.archive.org/web/20100729132930/http://dpwiki.slipgateconstruct.com/index.php?title=Effectinfo_Scripting_Reference#Known_bugs) - ## General syntax -
-
-// emitter 1\
-effect EFFECT_NAME\
-parm value\
-parm2 value\
-...\
-\
-// emitter 2\
-effect EFFECT_NAME\
-parm value\
-parm2 value\
-...\
-\
-// emitter for another effect\
-effect ANOTHER_EFFECT\
-parm value\
-parm2 value\
+```
+// emitter 1
+effect EFFECT_NAME
+parm value
+parm2 value
+...
+
+// emitter 2
+effect EFFECT_NAME
+parm value
+parm2 value
 ...
 
-
+// emitter for another effect +effect ANOTHER_EFFECT +parm value +parm2 value +... +``` ## Console variables @@ -67,21 +64,21 @@ parm2 value\ ## Particle parameters -**effect ** +**effect** Defines a new emitter with effectname is belongs to, all parms after that will be applied to that emitter. -**count ** +**count** How many particles to spawn at this emitter, this setting is affected by cl_particles_quality cvar -**countabsolute ** +**countabsolute** Defines a count of particles spawned regardless of cl_particles_quality setting Total particles count = countabsolute + count \* cl_particles_quality -**type ** +**type** Sets a generic particle type, affect appearance, blending, physics. @@ -102,7 +99,7 @@ List of particle types:
entityparticle: alpha-blended, this particle gets removed after being drawn (used on EF_BRIGHTFIELD)
-**blend ** +**blend** Generic blend is set by type, but with this parm it cound be changed after type is defined. @@ -114,7 +111,7 @@ List of blend types:
invmod: inverse modulation (used on blood and blood decals)
-**orientation ** +**orientation** Same as for blend, generic orientation is set by type, could be altered by this parm. @@ -148,9 +145,9 @@ Sets a index of particle from particlefont. Indexes are counted from left to rig Size of particle in game units, typical value is 4, randomized. -**sizeincrease ** +**sizeincrease** -This will make particle grow or diminish over time. is to how much utits to add or subtract per second. Note that while diminishing particle, engine will not check if particle will go to negative size, it will just invert it. +This will make particle grow or diminish over time. is to how much utits to add or subtract per second. Note that while diminishing particle, engine will not check if particle will go to negative size, it will just invert it. **alpha ** @@ -160,39 +157,39 @@ Opacity of particles, 256 is opaque, 0 is transparent. Randomized. Could be more Particle time-to-live in seconds, randomized. -**gravity ** +**gravity** Particle gravity modifier, 1 is full gravity, 0.5 is half etc., negative values are supported (particle go up). -**bounce ** +**bounce** Particle bounce-of-walls factor, 1 – bounce with full speed, 0.5 bounce with half speed. A value of -1 means particle will be removed on impact. Not that particle physics considered slow and spawning lots of bouncing particles is not recommended. -**airfriction ** +**airfriction** Particle friction while moving in air, good option for smoke emitters. A value of 0 means no friction, negative values will do acceleration. -**liquidfriction ** +**liquidfriction** Particle friction while moving in liquids. -**originoffset ** +**originoffset** Offset particle spawning origin by this values. Coordspace are world, x – forward, y – right, z – up. -**velocityoffset ** +**velocityoffset** Add this amount of constant velocity to particle on spawn. -**originjitter ** +**originjitter** Like originoffset but each axis is jittered between -value/+value. Hence it is defining spherical shape of particle random spawning. -**velocityjitter ** +**velocityjitter** Same as originjitter but for velocity. -**velocitymultiplier ** +**velocitymultiplier** Multiply particle starting velocity (one that set by QC or engine, whatever calls effect) by this value. Useful with trails. Negative values are supported. @@ -204,11 +201,11 @@ Sets underwater flag for particles. Particles that are underwater will be remove Sets notunderwater flag for particles. Particles that are notunderwater will be removed in liquid. Useful for fire particles. -**trailspacing ** +**trailspacing** This parm is only useful when effect is spawned as trail, defines a game units gap between effect invocations. -**stretchfactor ** +**stretchfactor** A custom stretch factor that is used on sparks. @@ -244,29 +241,29 @@ Disables decal spawning and returns all parms to it’s default values. Dynamic realtime lights could be placed in particle effects (useful for explosions) with this range of parms. This parms applied just like standart ones. -**lightradius ** +**lightradius** Radius of light in game units. Typical value is 200. -**lightradiusfade ** +**lightradiusfade** Radius fade rate, how many units to add/subtract per second. Once light reaches radius of 0 it gets removed. -**lighttime