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