/* * QUAKED trigger_push (.5 .5 .5) ? PUSH_ONCE Pushes the player "speed" * defaults to 1000 */ public static void SP_trigger_push(Entity self) { InitTrigger(self); windsound = ServerInit.SV_SoundIndex("misc/windfly.wav"); self.touch = trigger_push_touch; if (0 == self.speed) self.speed = 1000; World.SV_LinkEdict(self); }
public static void SP_trigger_monsterjump(Entity self) { if (0 == self.speed) self.speed = 200; if (0 == GameBase.st.height) GameBase.st.height = 200; if (self.s.angles[Constants.YAW] == 0) self.s.angles[Constants.YAW] = 360; InitTrigger(self); self.touch = trigger_monsterjump_touch; self.movedir[2] = GameBase.st.height; }