branchrust_reboot/main/comfort_fixescancel
4 Commits over 0 Days - Infinitycph!
Fixed comfort setup on 23 prefabs. In all cases, the minComfortRange was greater than the triggerSize (radius) which is not how the TriggerComfort script is intended to be used. Swapped minComfortRange and triggerSize values.
Affected prefabs:
1. Charity_plushie_01\CharityPlushie_01_deployed
2. Charity_Plushie_02\CharityPlushie_02_deployed
3. Charity_Plushie_03\CharityPlushie_03_deployed
4. Charity_Plushie_04\CharityPlushie_04_deployed
5. Charity_Plushie_05\CharityPlushie_05_deployed
6. Discord Plush\DiscordPlushie_deployed
7. Discord Trophy\discordtrophy_deployed
8. HazmatPlushy\HazmatPlushy_deployed
9. HeavyScientistPlushie\HeavyScientistPlushie_deployed
10. ScientistPlushie\ScientistPlushie_deployed
11. Youtooz_Figurines\Hazmat_Youtooz.deployed
12. Youtooz_Figurines\HeavyScientist_Youtooz.deployed
13. Trophy\trophy.deployed
14. trophy_2023\trophy_2023.deployed
15. birthday_balloons_2025\circle_balloon.deployed
16. birthday_balloons_2025\heart_balloon.deployed
17. birthday_balloons_2025\latex_balloon.deployed
18. birthday_balloons_2025\latexclump_balloon.deployed
19. birthday_balloons_2025\mixedclump_balloon.deployed
20. birthday_balloons_2025\speechbubble_balloon.deployed
21. birthday_balloons_2025\star_balloon.deployed
22. Rug\rug.deployed
23. modding\volumes_and_triggers\comfort_volume
bear rug comfort trigger size increased 1.1 -> 3 and minComfortRange stays at 2 - this means you will get comfort from further away but you have to be within 2m to get full comfort, previous commit's fixes means a single player within 2m of the bear rug will get 25% comfort - subject2change
Calculate comfort from the player's center point, not feet. Clamp minComfortRange [0, triggerSize] so incorrect prefab setups never influence code - minComfortRange cannot be larger than the triggerSize, this creates poor comfort behaviour
TriggerComfort gizmo to visualise the centre and minComfortRange