Page MenuHomeFeedback Tracker

WeaponCleaningKit (ReplaceEdibleWithNew)
Assigned, UrgentPublic

Description

Hi Team,

I hope you are well and thank you for all the work that you've put into 1.13. I'm really excited for the release to stable.

I just wanted to make a point of ReplaceEdibleWithNew doesn't seem to work for the WeaponCleaningKit. You can see that the hand animation changes as if I was holding the WeaponCleaningKit but the item isn't actually spawned correctly. Plus you can't then drag anything onto your hands as it's like the item is stuck.

I know that this works as I've tried it with AmmoBox's and other items and it works okay.

Please see below a snippet of what I've modded and hopefully that would be of some use.

override void OnConsume(float amount, PlayerBase consumer) {
        if(this.GetQuantity() <= 0.01) {
            ReplaceEdibleWithNew(this.ConfigGetString("prize"));
        }
    }
class WeaponCleaningKit;
	class PlateRepairKit: WeaponCleaningKit
	{
		scope = 2;
		displayName = "Plate Repair Kit";
		descriptionShort = "Includes all the necessary tools to repair a plate carrier vest more effectively.";
		repairKitType = 1000;
		hiddenSelections[] = {"zbytek"};
		hiddenSelectionsTextures[] = {"ZEROMiscellaneousChernarus\items\plate_repair_kit\plate_repair_kit_co.paa"};
		hiddenSelectionsMaterials[] = {"ZEROMiscellaneousChernarus\items\plate_repair_kit\plate_repair_kit.rvmat"};
	};
class ZEROCerealBox_3: BoxCerealCrunchin {
        scope = 2;
	hiddenSelectionsTextures[] = {"ZEROMiscellaneousChernarus\textures\cereal\cerealbox_03_co.paa"};
	prize = "PlateRepairKit";
};

Many thanks,
TheEmperorFox

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
21H1
Category
General

Event Timeline

TheEmperorFox updated the task description. (Show Details)

I have also found the same issue happens with the Iodine Tincture

Geez changed the task status from New to Assigned.Jul 19 2021, 1:16 PM

Hi Geez,

Will this be fixed or looked at for 1.14 patch?

Thanks,
Fox