Mutator "Gift From Decoration" for MonsterHunt

Search, find and discuss about Mutators!
Posts: 2137
Joined: Sat Mar 21, 2020 5:32 am

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by Buggie »

I know about this "feature". Already investigate that. IIRC, it specific to your server and caused by fact spawn new copy of weapon on pickup or throw (not remember details) instead of direct usage it. For normal usage all goes ok.
But you spawn copy of weapon and destroy old.

It be long time ago, so I not remember details.   
Auto merged new post submitted 1 hour 2 minutes later
Ah. now I remember. It be part of code about death. On death you spawn copy of inventory, instead of drop exists weapons. Obviously this lead to destroy link to InventoryDestroyer. So weapon goes be permanent now.
Unfortunately there nothing what I can do with that.   
Auto merged new post submitted 6 minutes later
Look at bDropWeaponsOnDeath, DiscardInventory and DropWeapon. Last one spawn permanent copy.

I can suggest you few solutions.
1. Drop real weapon, not copy.
2. Drop copy only of real weapon, not for gifted.
3. Drop copy for all weapons, but for gifted search and replace link to it in InventoryDestroyer.
User avatar
Posts: 2597
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by Barbie »

Ah, never touched that part of code. I suppose that function DropWeapon() was introduced because with the stock code only the current holding weapon is dropped. BTW that function can be found in some game controllers of MonsterHunt packages like in KHMBase.uc, MH2Base.uc, KHMBase.uc.

It's now fixed by dropping original weapon in my game controller.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett