// position the camera properly for prey\r
void Vore_SetCamera()\r
{\r
- if not(self.stat_eaten)\r
- return;\r
+ /*if not(self.stat_eaten)\r
+ return;*/\r
+\r
+ local entity head;\r
+ local vector oldforward, oldright, oldup;\r
+ local float position_counter;\r
+ local vector origin_apply;\r
+ oldforward = v_forward;\r
+ oldright = v_right;\r
+ oldup = v_up;\r
+\r
+ makevectors(self.v_angle);\r
+ v_forward_z = 0;\r
+\r
+ FOR_EACH_PLAYER(head)\r
+ {\r
+ if(head.predator == self)\r
+ {\r
+ switch(position_counter)\r
+ {\r
+ case 0:\r
+ break;\r
+ case 1:\r
+ origin_apply = '1 0 0';\r
+ break;\r
+ default:\r
+ break;\r
+ }\r
+ head.view_ofs = PL_PREY_VIEW_OFS + (v_forward + origin_apply * 16);\r
+ position_counter += 1;\r
+ }\r
+ }\r
\r
- self.view_ofs = PL_PREY_VIEW_OFS;\r
+ v_forward = oldforward;\r
+ v_right = oldright;\r
+ v_up = oldup;\r
\r
- float prey_height;\r
+ /*float prey_height;\r
if(self.fakeprey)\r
prey_height = (self.scale - self.fakepredator.scale) * cvar("g_healthsize_vore_pos");\r
else\r
prey_height = (self.scale - self.predator.scale) * cvar("g_healthsize_vore_pos");\r
- self.view_ofs_z += prey_height;\r
+ self.view_ofs_z += prey_height;*/\r
}\r
\r
.float gurgle_oldstomachload;\r