return FALSE;\r
}\r
\r
+float Vore_PreyCanLeave()\r
+{\r
+ if(teams_matter && self.team == self.eater.team)\r
+ return TRUE;\r
+ return FALSE;\r
+}\r
+\r
// make the camera smoothly lower itself when we get swallowed\r
// the target we are going for is from normal view offset to half of the view offset (because half is the best positioning of the view for the stomach model)\r
.float cameraeffect_current, cameraeffect_target;\r
{\r
// allows players to get out of their predator at will in some circumstances, such as team mates\r
\r
- float canleave;\r
- canleave = (teams_matter && self.team == self.eater.team); // currently, the only circumstance where you can use this if for team mates\r
-\r
- if(canleave)\r
+ if(Vore_PreyCanLeave())\r
Vore_Regurgitate(self);\r
else if(time > self.complain_swallow)\r
{\r
else if(self.BUTTON_ATCK2)\r
Vore_StomachLeave();\r
\r
+ self.stat_canleave = Vore_PreyCanLeave();\r
+\r
Vore_CameraEffect_Apply();\r
}
\ No newline at end of file