X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ftriggers.qc;h=1e7715a91b58a70ef8472f980ea8a9a094c16214;hp=da0301778c23529ec340451f31ecbde60254870e;hb=777dc5e23d7512c3e33576884d8d200f244d3006;hpb=b8018d31cf40eadadfadfad602edd726d137866b diff --git a/qcsrc/common/triggers/triggers.qc b/qcsrc/common/triggers/triggers.qc index da0301778c..1e7715a91b 100644 --- a/qcsrc/common/triggers/triggers.qc +++ b/qcsrc/common/triggers/triggers.qc @@ -209,6 +209,9 @@ void SUB_UseTargets() } if (s != "") { + // Flag to set func_clientwall state + // 1 == deactivate, 2 == activate, 0 == do nothing + float aw_flag = self.antiwall_flag; for(t = world; (t = find(t, targetname, s)); ) if(t.use) { @@ -218,6 +221,8 @@ void SUB_UseTargets() } else { + if (t.classname == "func_clientwall" || t.classname == "func_clientillusionary") + t.antiwall_flag = aw_flag; self = t; other = stemp; activator = act;