X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ffunc%2Fdoor_rotating.qc;h=4c97fe6a8aa7c1d7584c4fb63d7c024a247c968e;hb=847371860eeb17f6a51aa1fa532aa997cb2d760b;hp=fbe579c1361805da9d34027a20040c9df64f59aa;hpb=1c758278958da8f2baf1f39cd0f298d5bda097a2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/func/door_rotating.qc b/qcsrc/common/triggers/func/door_rotating.qc index fbe579c13..4c97fe6a8 100644 --- a/qcsrc/common/triggers/func/door_rotating.qc +++ b/qcsrc/common/triggers/func/door_rotating.qc @@ -27,25 +27,25 @@ START_OPEN causes the door to move to its destination when spawned, and operate FIXME: only one sound set available at the time being */ -void door_rotating_reset() -{SELFPARAM(); - self.angles = self.pos1; - self.avelocity = '0 0 0'; - self.state = STATE_BOTTOM; - self.think = func_null; - self.nextthink = 0; +void door_rotating_reset(entity this) +{ + this.angles = this.pos1; + this.avelocity = '0 0 0'; + this.state = STATE_BOTTOM; + this.think = func_null; + this.nextthink = 0; } -void door_rotating_init_startopen() -{SELFPARAM(); +void door_rotating_init_startopen(entity this) +{ self.angles = self.movedir; self.pos2 = '0 0 0'; self.pos1 = self.movedir; } -void spawnfunc_func_door_rotating() -{SELFPARAM(); +spawnfunc(func_door_rotating) +{ //if (!self.deathtype) // map makers can override this // self.deathtype = " got in the way";