]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Improvements to item positioning
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 16:21:42 +0000 (18:21 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 16:21:42 +0000 (18:21 +0200)
data/defaultVT.cfg
data/qcsrc/server/constants.qh
data/qcsrc/server/t_items.qc

index 2ac1c3ce15816acebd5793de796082b28d91ab41..a4762511ab56bef6846d33f48d805fabe3cfa433 100644 (file)
@@ -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"\r
 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"\r
 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"\r
-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"\r
+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"\r
 set g_vore_swallowmodel_range 100 "Distance by which the swallow model oscillates based on swallow progress"\r
 \r
 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"\r
index 9481d46a23a2b9b04356f35a541cc377f68fdd87..8bcc5c68de24aaecfeb3936979439ba541ad0ed7 100644 (file)
@@ -132,7 +132,7 @@ vector      PL_CROUCH_MIN                           = '-16 -16 -24';
 vector PL_CROUCH_MAX                           = '16 16 25';\r
 vector PL_PREY_VIEW_OFS                        = '0 0 25';\r
 \r
-vector CONSUMABLE_VIEW_OFS                     = '0 0 15';\r
+vector CONSUMABLE_VIEW_OFS                     = '0 0 25';\r
 \r
 // Sajt - added these, just as constants. Not sure how you want them actually put in the game, but I just\r
 // did this so at least they worked\r
index e2f75971ce4cd4057efec5ca4a4769932b108e2b..a9f3ee52b8f2694ac91bb083b6872813bcee8867 100644 (file)
@@ -335,7 +335,8 @@ void Item_Consumable_Spawn(entity e, entity pl)
        item.aiment = pl;\r
        item.view_ofs_x = CONSUMABLE_VIEW_OFS_x + crandom() * cvar("g_vore_neighborprey_distance_item");\r
        item.view_ofs_y = CONSUMABLE_VIEW_OFS_y + crandom() * cvar("g_vore_neighborprey_distance_item");\r
-       item.view_ofs_z = CONSUMABLE_VIEW_OFS_z;\r
+       item.view_ofs_z = CONSUMABLE_VIEW_OFS_z + crandom() * cvar("g_vore_neighborprey_distance_item");\r
+       item.angles = randomvec() * 360;\r
 \r
        item.customizeentityforclient = Item_Consumable_Customizeentityforclient;\r
        item.think = Item_Consumable_Think;\r