Get the swallow model working as intended. Adjustments still needed however
[voretournament/voretournament.git] / data / qcsrc / server / vore.qc
index 53202c6..c9897f6 100644 (file)
@@ -205,7 +205,7 @@ void Vore_SwallowModel_Think()
        //self.angles_x = self.owner.angles_x;\r
        //self.view_ofs = self.owner.view_ofs;\r
 \r
        //self.angles_x = self.owner.angles_x;\r
        //self.view_ofs = self.owner.view_ofs;\r
 \r
-       self.view_ofs = '1 0 0' * 500;\r
+       self.view_ofs = '-1 0 0' * (0.5 - self.owner.swallow_progress_prey) * cvar("g_vore_swallowmodel_range"); // the model is centered at 0.5 progress\r
 \r
        // if our swallow progress is gone, the swallow model must also go\r
        if(!self.owner.swallow_progress_prey)\r
 \r
        // if our swallow progress is gone, the swallow model must also go\r
        if(!self.owner.swallow_progress_prey)\r
@@ -231,7 +231,7 @@ void Vore_SwallowModel_Update(entity prey)
                prey.swallow_model.solid = SOLID_NOT;\r
 \r
                prey.swallow_model.skin = self.skin;\r
                prey.swallow_model.solid = SOLID_NOT;\r
 \r
                prey.swallow_model.skin = self.skin;\r
-               prey.swallow_model.scale = self.scale;\r
+               //prey.swallow_model.scale = self.scale; // FIX LATER\r
 \r
                // apply the properties of the prey\r
                prey.swallow_model.viewmodelforclient = prey;\r
 \r
                // apply the properties of the prey\r
                prey.swallow_model.viewmodelforclient = prey;\r