void door_blocked(entity this, entity blocker)
{
+ bool reverse = false;
if((this.spawnflags & DOOR_CRUSH)
#ifdef SVQC
&& (blocker.takedamage != DAMAGE_NO)
else
door_rotating_go_down(this);
}
+ reverse = true;
}
}
#ifdef SVQC
}
#endif
}
+ if (!reverse)
+ SUB_CalcMovePause(this);
}
void door_hit_top(entity this)
this.think1 (this);
}
+void SUB_CalcMovePause(entity this)
+{
+ this.move_controller.animstate_starttime += frametime;
+ this.move_controller.animstate_endtime += frametime;
+}
+
.float platmovetype_turn;
void SUB_CalcMove_controller_think (entity this)
{
*/
void SUB_CalcMoveDone(entity this);
+void SUB_CalcMovePause(entity this);
+
.float platmovetype_turn;
void SUB_CalcMove_controller_think (entity this);