]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Put trace in place for positioning the swallow model based on swallow progress
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 10 Jul 2011 18:47:38 +0000 (21:47 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 10 Jul 2011 18:47:38 +0000 (21:47 +0300)
data/qcsrc/server/vore.qc

index c44b4de9ffd9e56ec2f4df62b7c9588194eee938..c3754513a4b7d64e0ec57cd9fe15fdf4acd46f1a 100644 (file)
@@ -205,6 +205,10 @@ void Vore_SwallowModel_Think()
        //self.angles_x = self.owner.angles_x;\r
        //self.view_ofs = self.owner.view_ofs;\r
 \r
+       makevectors(self.owner.angles);\r
+       traceline(self.owner.origin + self.owner.view_ofs, self.owner.origin + self.owner.view_ofs + v_forward * 500, TRUE, self);\r
+       self.view_ofs = '1 0 0' * vlen(trace_endpos - self.owner.origin);\r
+\r
        // if our swallow progress is gone, the swallow model must also go\r
        if(!self.owner.swallow_progress_prey)\r
        {\r