11 years ago
XML: custom super_interaction and _super_affordances in overrides
I'm trying to make it so that children can garden (at least do those things for which I can recycle existing animations like Generic_PickUp for harvesting); the way I got this to work, so far, is by
1. making a custom super_interaction that references the kid-friendly animation and is for children only;
2. telling each and every plant object about it (i.e. overriding them all with a version that has my super interaction(s) added to the _super_affordances list).
This strikes me as a little clunky and very collision-prone, because of all those overrides .. is there a more efficient way to do this? Is it possible to e.g. override just Gardening_Harvest with a version that makes it so that one (and only one) age group will use a different animation? How would I go about that? The generic SuperInteraction tdesc talks at length about TunableAnimationOverrides but only along the lines of "complex and seldom used" things that don't seem to have anything to do with the age or other properties of the actor ..
Also, what is AffordanceList_Gardening? I'm not sure how those snippets relate to the rest of the world =/ (I only see that referenced once, in another snippet about .. painting?)
Enlightenment much appreciated! @SimGuruModSquad maybe?
Edit: while I'm fiddling with plants, does anyone know which of the effects is responsible for the sparklies? If it turns out I have to override the plants anyway, I'd like to turn off those as well -- if I'm not mistaken they're referenced here.
1. making a custom super_interaction that references the kid-friendly animation and is for children only;
2. telling each and every plant object about it (i.e. overriding them all with a version that has my super interaction(s) added to the _super_affordances list).
This strikes me as a little clunky and very collision-prone, because of all those overrides .. is there a more efficient way to do this? Is it possible to e.g. override just Gardening_Harvest with a version that makes it so that one (and only one) age group will use a different animation? How would I go about that? The generic SuperInteraction tdesc talks at length about TunableAnimationOverrides but only along the lines of "complex and seldom used" things that don't seem to have anything to do with the age or other properties of the actor ..
Also, what is AffordanceList_Gardening? I'm not sure how those snippets relate to the rest of the world =/ (I only see that referenced once, in another snippet about .. painting?)
Enlightenment much appreciated! @SimGuruModSquad maybe?
Edit: while I'm fiddling with plants, does anyone know which of the effects is responsible for the sparklies? If it turns out I have to override the plants anyway, I'd like to turn off those as well -- if I'm not mistaken they're referenced here.