X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ffunc%2Fdoor_secret.qc;h=0bad196abf3a57a79a4fbac2637170f35321bdf6;hb=1a02dfa42534cfd8697e6c4d0e1181e5ec6c1fc7;hp=0b8930aec5a494aca16a3a889a5b02fdb2df8bf9;hpb=393022c0e9b00481e68d1db786e96e4ffb7f37e0;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/func/door_secret.qc b/qcsrc/common/triggers/func/door_secret.qc index 0b8930aec..0bad196ab 100644 --- a/qcsrc/common/triggers/func/door_secret.qc +++ b/qcsrc/common/triggers/func/door_secret.qc @@ -39,7 +39,7 @@ void fd_secret_use(entity this, entity actor, entity trigger) if (this.noise1 != "") _sound(this, CH_TRIGGER_SINGLE, this.noise1, VOL_BASE, ATTEN_NORM); - this.SUB_NEXTTHINK = this.SUB_LTIME + 0.1; + this.nextthink = this.ltime + 0.1; temp = 1 - (this.spawnflags & SECRET_1ST_LEFT); // 1 or -1 makevectors(this.mangle); @@ -74,7 +74,7 @@ void fd_secret_damage(entity this, entity inflictor, entity attacker, float dama // Wait after first movement... void fd_secret_move1(entity this) { - this.SUB_NEXTTHINK = this.SUB_LTIME + 1.0; + this.nextthink = this.ltime + 1.0; setthink(this, fd_secret_move2); if (this.noise3 != "") _sound(this, CH_TRIGGER_SINGLE, this.noise3, VOL_BASE, ATTEN_NORM); @@ -95,7 +95,7 @@ void fd_secret_move3(entity this) _sound(this, CH_TRIGGER_SINGLE, this.noise3, VOL_BASE, ATTEN_NORM); if (!(this.spawnflags & SECRET_OPEN_ONCE)) { - this.SUB_NEXTTHINK = this.SUB_LTIME + this.wait; + this.nextthink = this.ltime + this.wait; setthink(this, fd_secret_move4); } } @@ -111,7 +111,7 @@ void fd_secret_move4(entity this) // Wait 1 second... void fd_secret_move5(entity this) { - this.SUB_NEXTTHINK = this.SUB_LTIME + 1.0; + this.nextthink = this.ltime + 1.0; setthink(this, fd_secret_move6); if (this.noise3 != "") _sound(this, CH_TRIGGER_SINGLE, this.noise3, VOL_BASE, ATTEN_NORM); @@ -179,7 +179,7 @@ void secret_reset(entity this) } setorigin(this, this.oldorigin); setthink(this, func_null); - this.SUB_NEXTTHINK = 0; + this.nextthink = 0; } /*QUAKED spawnfunc_func_door_secret (0 .5 .8) ? open_once 1st_left 1st_down no_shoot always_shoot