From: MirceaKitsune Date: Sat, 19 Nov 2011 16:21:42 +0000 (+0200) Subject: Improvements to item positioning X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4993406d70b54b3a9b9e616cbebd1185552821c5;p=voretournament%2Fvoretournament.git Improvements to item positioning --- diff --git a/data/defaultVT.cfg b/data/defaultVT.cfg index 2ac1c3ce..a4762511 100644 --- a/data/defaultVT.cfg +++ b/data/defaultVT.cfg @@ -1627,7 +1627,7 @@ set g_vore_regurgitatecolor_color_digest "0.3 0.15 0" "the color players will ha set g_vore_regurgitatecolor_fade 0.01 "how quickly the regurgitation color washes off players once they leave the stomach, does not apply to dead bodies" set g_vore_regurgitatecolor_particles 0.75 "players who are dirty from regurgitation generate particles this often, based on the amount of goo they have on them" set g_vore_neighborprey_distance 4 "Distance by which prey inside the same stomach are positioned away from each other. 0 disables seeing neighboring prey" -set g_vore_neighborprey_distance_item 8 "Distance by which items inside the same stomach are positioned away from each other. 0 disables seeing neighboring items" +set g_vore_neighborprey_distance_item 16 "Distance by which items inside the same stomach are positioned away from each other. 0 disables seeing neighboring items" set g_vore_swallowmodel_range 100 "Distance by which the swallow model oscillates based on swallow progress" seta cl_healthsize_fov 0.2 "offset field of view by this amount based on size, to further induce the effect of being large or small" diff --git a/data/qcsrc/server/constants.qh b/data/qcsrc/server/constants.qh index 9481d46a..8bcc5c68 100644 --- a/data/qcsrc/server/constants.qh +++ b/data/qcsrc/server/constants.qh @@ -132,7 +132,7 @@ vector PL_CROUCH_MIN = '-16 -16 -24'; vector PL_CROUCH_MAX = '16 16 25'; vector PL_PREY_VIEW_OFS = '0 0 25'; -vector CONSUMABLE_VIEW_OFS = '0 0 15'; +vector CONSUMABLE_VIEW_OFS = '0 0 25'; // Sajt - added these, just as constants. Not sure how you want them actually put in the game, but I just // did this so at least they worked diff --git a/data/qcsrc/server/t_items.qc b/data/qcsrc/server/t_items.qc index e2f75971..a9f3ee52 100644 --- a/data/qcsrc/server/t_items.qc +++ b/data/qcsrc/server/t_items.qc @@ -335,7 +335,8 @@ void Item_Consumable_Spawn(entity e, entity pl) item.aiment = pl; item.view_ofs_x = CONSUMABLE_VIEW_OFS_x + crandom() * cvar("g_vore_neighborprey_distance_item"); item.view_ofs_y = CONSUMABLE_VIEW_OFS_y + crandom() * cvar("g_vore_neighborprey_distance_item"); - item.view_ofs_z = CONSUMABLE_VIEW_OFS_z; + item.view_ofs_z = CONSUMABLE_VIEW_OFS_z + crandom() * cvar("g_vore_neighborprey_distance_item"); + item.angles = randomvec() * 360; item.customizeentityforclient = Item_Consumable_Customizeentityforclient; item.think = Item_Consumable_Think;