From e43068443a3d73fcd7d950a8f1a22571bfd92171 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 21 Oct 2018 04:35:51 +1000 Subject: [PATCH] Never group loot items, and only throw overkill shards towards players --- qcsrc/common/mutators/mutator/overkill/sv_overkill.qc | 2 +- qcsrc/common/t_items.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc b/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc index 9fa66e8b2..c8e4398b0 100644 --- a/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc +++ b/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc @@ -102,7 +102,7 @@ MUTATOR_HOOKFUNCTION(ok, PlayerDies) entity frag_attacker = M_ARGV(1, entity); entity frag_target = M_ARGV(2, entity); - entity targ = ((frag_attacker) ? frag_attacker : frag_target); + entity targ = ((IS_PLAYER(frag_attacker)) ? frag_attacker : frag_target); ok_DropItem(frag_target, targ); diff --git a/qcsrc/common/t_items.qc b/qcsrc/common/t_items.qc index dfee5330d..9675816cc 100644 --- a/qcsrc/common/t_items.qc +++ b/qcsrc/common/t_items.qc @@ -1401,7 +1401,7 @@ int group_count = 1; void setItemGroup(entity this) { - if(!IS_SMALL(this.itemdef)) + if(!IS_SMALL(this.itemdef) || Item_IsLoot(this)) return; FOREACH_ENTITY_RADIUS(this.origin, 120, (it != this) && IS_SMALL(it.itemdef), -- 2.39.2