Post by CatDevPete on Nov 2, 2023 3:37:15 GMT -5
Hey everyone!
So, some context behind this, I've been trawling through the code behind vampires' reaction to food when they have the "withered stomach" weakness.
I managed to figure out a way to remove the (de)buffs applied during food consumption that would lead the sims to feel very uncomfortable, but it still plays the animation for it. The one that looks very similar to "low opinion" reaction to food.
I narrowed it down to the hidden "trait_DisgustedByFood" that gets applied to the sim when they first take on the "withered stomach" weakness. Without that trait, that animation won't play anymore. Neither for the modded food that doesn't cause the sickness buff, nor regular food that would still apply the sickness buff.
So, that was some positive progress, but my intent is to only stop the reaction to my modded food, not across all foods. So I want to possibly find a way to stop either the food, or whatever it is from checking that trait & triggering the reaction animation.
I've looked through all the tunings, and tried to trace where it might be called, but I simply cannot figure out where it's being referenced to trigger the animation. I would have thought that maybe something regarding either "loot_Lifestyles_Food_Trait_DisgustedByFood_Add" or "loot_Trait_DisgustedFoodAnimation_Remove" would be related to it, but that doesn't seem to be the case in this regard (or at least the former).
Granted, I am quite new to modding in the Sims 4, so I may be overlooking something obvious if I were more familiar with everything.
In any case, I can accept that it may be on something that would prevent me from being able to only isolate it to modded food. It is what it is, if that's the case ¯\_(ツ)_/¯
But, it would still be nice to know if that's so, rather than the situation right now where I don't understand just how or where that trait is being used to trigger that disgust reaction animation.
So, some context behind this, I've been trawling through the code behind vampires' reaction to food when they have the "withered stomach" weakness.
I managed to figure out a way to remove the (de)buffs applied during food consumption that would lead the sims to feel very uncomfortable, but it still plays the animation for it. The one that looks very similar to "low opinion" reaction to food.
I narrowed it down to the hidden "trait_DisgustedByFood" that gets applied to the sim when they first take on the "withered stomach" weakness. Without that trait, that animation won't play anymore. Neither for the modded food that doesn't cause the sickness buff, nor regular food that would still apply the sickness buff.
So, that was some positive progress, but my intent is to only stop the reaction to my modded food, not across all foods. So I want to possibly find a way to stop either the food, or whatever it is from checking that trait & triggering the reaction animation.
I've looked through all the tunings, and tried to trace where it might be called, but I simply cannot figure out where it's being referenced to trigger the animation. I would have thought that maybe something regarding either "loot_Lifestyles_Food_Trait_DisgustedByFood_Add" or "loot_Trait_DisgustedFoodAnimation_Remove" would be related to it, but that doesn't seem to be the case in this regard (or at least the former).
Granted, I am quite new to modding in the Sims 4, so I may be overlooking something obvious if I were more familiar with everything.
In any case, I can accept that it may be on something that would prevent me from being able to only isolate it to modded food. It is what it is, if that's the case ¯\_(ツ)_/¯
But, it would still be nice to know if that's so, rather than the situation right now where I don't understand just how or where that trait is being used to trigger that disgust reaction animation.