From a3b0d40f99f58ea9a8cdb17cb5735ee98f853b30 Mon Sep 17 00:00:00 2001 From: LegendaryGuard Date: Tue, 16 Mar 2021 00:16:40 +0000 Subject: [PATCH] Added effects section --- Programming-QuakeC-stuff-in-Xonotic.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Programming-QuakeC-stuff-in-Xonotic.md b/Programming-QuakeC-stuff-in-Xonotic.md index 4561f41..10d48ca 100644 --- a/Programming-QuakeC-stuff-in-Xonotic.md +++ b/Programming-QuakeC-stuff-in-Xonotic.md @@ -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)
\ No newline at end of file -- 2.39.2