From: terencehill Date: Tue, 2 Jun 2020 10:05:38 +0000 (+0200) Subject: Fix respawn ghost particle effect not working. Its implementation was added on 05... X-Git-Tag: xonotic-v0.8.5~962 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d484953e090442f8c0b0f25ee5e6a02bdcb9b75a;p=xonotic%2Fxonotic-data.pk3dir.git Fix respawn ghost particle effect not working. Its implementation was added on 05/04/2010 (commit 606b7d7) and accidentally reverted 5 days later! --- diff --git a/effectinfo.txt b/effectinfo.txt index 8c6a51fea..7fc732b7d 100644 --- a/effectinfo.txt +++ b/effectinfo.txt @@ -8379,3 +8379,14 @@ effect TE_TEI_G3_HIT sizeincrease -6 size 10 10 trailspacing 40 +effect respawn_ghost + count 75 + type static + color 0xA0A0A0 0xFFFFFF + size 2 2 + alpha 32 64 128 + airfriction 1 + liquidfriction 4 + originoffset 0 0 -8 + originjitter 28 28 16 + velocityjitter 0 0 256 diff --git a/qcsrc/common/effects/effectinfo.inc b/qcsrc/common/effects/effectinfo.inc index 3713e9a1a..c96f247af 100644 --- a/qcsrc/common/effects/effectinfo.inc +++ b/qcsrc/common/effects/effectinfo.inc @@ -9086,3 +9086,22 @@ SUB(TE_TEI_G3_HIT) { MY(trailspacing) = 40; MY(type) = "smoke"; } + +// respawn ghosts effect +DEF(RESPAWN_GHOST); +SUB(RESPAWN_GHOST) { + MY(count) = 75; + MY(type) = "static"; + MY(color_min) = "0xA0A0A0"; + MY(color_max) = "0xFFFFFF"; + MY(size_min) = 2; + MY(size_max) = 2; + MY(alpha_min) = 32; + MY(alpha_max) = 64; + MY(alpha_fade) = 128; + MY(airfriction) = 1; + MY(liquidfriction) = 4; + MY(originoffset) = '0 0 -8'; + MY(originjitter) = '28 28 16'; + MY(velocityjitter) = '0 0 256'; +}