Nhandu Posted Wednesday at 02:03 PM Report Posted Wednesday at 02:03 PM When harvesting a killed creature, a penalty is applied to the loot depending on how the creature was killed (i.e. by the player, crushed, or killed by another creature). How is this kill credit tracked and coded? I am asking this because I am attempting to introduce a small ugly fix into the game that causes animals killed by wolves to be credited as killed by the player, because I don't like the drop penalty applied to animals killed by tamed wolves in Gerste's wolf taming mod. I have no experience with the game's code nor modding but would I be correct in suspecting that the solution lies somewhere in tinkering with WatchedAttributes, onHurt Counter, and DamageSource? (Slightly unrealistic looting for naturally killed animals is a small price to pay for the prospect of hunting with four or five dogs)
MKMoose Posted Wednesday at 02:06 PM Report Posted Wednesday at 02:06 PM 1 minute ago, Nhandu said: When harvesting a killed creature, a penalty is applied to the loot depending on how the creature was killed (i.e. by the player, crushed, or killed by another creature). How is this kill credit tracked and coded? The most important parts of this are implemented in EntityBehaviorHarvestable. I don't have the assets on hand to check, but I'd imagine based on what I'm reading in the code that you'd need to add a deathByMultiplier in the mod's files for tamed wolves (or just modify the value if it's already defined).
Nhandu Posted Wednesday at 02:11 PM Author Report Posted Wednesday at 02:11 PM Thanks, looks like the right place to start.
Recommended Posts