Fix extended hitboxes breaking dual-weapon givers.

This commit is contained in:
Mari the Deer 2022-04-02 12:09:45 +02:00
commit b4f81fa4e3
6 changed files with 18 additions and 5 deletions

View file

@ -493,6 +493,14 @@ Class SWWMDualWeaponGiver : Inventory
FloatBobStrength 0.25;
}
override void BeginPlay()
{
Super.BeginPlay();
if ( !swwm_extendedpickup ) return;
let box = Spawn("SWWMExtendedItemHitbox",pos);
box.master = self;
}
override void Touch( Actor toucher )
{
// show prompt to swap weapon, and prevent normal pickup