set g_vore_regurgitatecolor_release_fade 0.01 "how quickly the regurgitation color washes off players once they leave the stomach"\r
set g_vore_regurgitatecolor_digest "0.15 0.25 0" "the color players will have when digested, only works when g_vore_keepdeadprey is disabled"\r
set g_vore_keepdeadprey 0.75 "If enabled, prey remains in the stomach after dying, else the predator throws up their dead body. 0 = disabled, 1 = ernabled, anything between = probability"\r
+set g_vore_preydistance 16 "Distance by which prey inside the same stomach are positioned away from each other. 0 disables seeing neighboring prey"\r
\r
set g_healthsize 100 "Players who are low on health shrink and become smaller, value specifies health at which the player has default size"\r
set g_healthsize_movementfactor 0.5 "Amount by which player size affects jumping and running"\r
Client_setmodel(setmodel_state());\r
if not(self.stat_eaten || self.fakeprey)\r
self.alpha = default_player_alpha;\r
- else if(self.predator == other.predator && self != other && !(other.cvar_chase_active || other.classname == "observer"))\r
- self.alpha = default_player_alpha;\r
+ else if(cvar("g_vore_preydistance") && self.predator == other.predator && self != other && !(other.cvar_chase_active || other.classname == "observer"))\r
+ self.alpha = default_player_alpha; // allow seeing neighboring prey\r
else\r
- self.alpha = -1; // hide all prey\r
+ self.alpha = -1; // hide prey\r
return TRUE;\r
}\r
\r
makevectors(self.v_angle);\r
v_forward_z = 0;\r
\r
- // In order to allow prey to see each other in the same stomach, we must position each occupant differently,\r
+ // In order to allow prey to see each other in the stomach, we must position each occupant differently,\r
// else all players would overlap in the center. To do this, we run a loop on all players in the same stomach.\r
- // For each player, the origin is updated, then a new origin is used for the next player and so on.\r
+ // For each player, the origin is updated, then a new origin is used for the next player.\r
// This requires that no more than 9 players can be in a stomach at a time!\r
FOR_EACH_PLAYER(head)\r
{\r
default:\r
break;\r
}\r
- head.view_ofs = PL_PREY_VIEW_OFS + (v_forward + origin_apply * 16);\r
+ // since prey have their predators set as an aiment, view_ofs will specify the real origin of prey, not just the view offset\r
+ head.view_ofs = PL_PREY_VIEW_OFS + (v_forward + origin_apply * cvar("g_vore_preydistance"));\r
position_counter += 1;\r
}\r
}\r