]> git.xonotic.org Git - xonotic/xonotic.wiki.git/commitdiff
Added effects section
authorLegendaryGuard <rootuser999@gmail.com>
Tue, 16 Mar 2021 00:16:40 +0000 (00:16 +0000)
committerLegendaryGuard <rootuser999@gmail.com>
Tue, 16 Mar 2021 00:16:40 +0000 (00:16 +0000)
Programming-QuakeC-stuff-in-Xonotic.md

index 4561f418bfecd6938ed17dc489e8ef53b37f1f88..10d48caf5dc5655067e950decaa3abad2d8ea42e 100644 (file)
@@ -304,5 +304,19 @@ It's recommended use the final product in this [**repository**](https://gitlab.c
 
 [**SMB modpack repository**](https://github.com/MarioSMB/modpack/tree/master/mod/common/gamemodes/survival) has added Survival gamemode and others.
 
+# Effects
+
+Spawns effect particle in-game.
+
+The effects can be used with `Send_Effect(effect, org, vel, howmany)` function to test the effects from [**qcsrc/common/effects/all.inc**](https://timepath.github.io/scratchspace/d9/d95/effects_2all_8inc_source.html)
+
+**Send_Effect** function definition is inside: [**qcsrc/common/effects/effect.qh**](https://timepath.github.io/scratchspace/d5/de6/effect_8qh_source.html)
+
+For example, you can test the smokes, using `EFFECT_SMOKE_LARGE`:
+```c
+Send_Effect(EFFECT_SMOKE_LARGE, this.origin, '0 0 0', 1);
+```
+
+EFFECT list: [**qcsrc/common/effects/all.inc**](https://timepath.github.io/scratchspace/d9/d95/effects_2all_8inc_source.html)
 
 <br />
\ No newline at end of file