X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.wiki.git;a=blobdiff_plain;f=Programming-QuakeC-stuff-in-Xonotic.md;h=10d48caf5dc5655067e950decaa3abad2d8ea42e;hp=19cb2139ab38c8670a230060a67164ecd58e5d79;hb=52f2c3f96b06d44b9b89b224739bcaf170890bfb;hpb=d995450c9ead782cf1fbb673d8b7c9eba0a300b8 diff --git a/Programming-QuakeC-stuff-in-Xonotic.md b/Programming-QuakeC-stuff-in-Xonotic.md index 19cb213..10d48ca 100644 --- a/Programming-QuakeC-stuff-in-Xonotic.md +++ b/Programming-QuakeC-stuff-in-Xonotic.md @@ -30,6 +30,10 @@ Example: `sv_campcheck` is clearly a server cvar (**sv_*** cvars are server cvar Example: `cl_chatsound` is clearly a client cvar (**cl_*** cvars are client cvars), only can be declared inside a **`#ifdef CSQC`** block. +- **hud_*** cvars: + +Example: `hud_progressbar_alpha` is a client cvar (**hud_*** cvars belong to client cvars), only can be declared inside a **`#ifdef CSQC`** block. +
@@ -300,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