Consort
9th Apr 2012, 09:20 PM
Hey I've been working on this suntan mod and thought I share it in case any one of you has any ideas or suggestions or sees mistakes.
This is just a debug version, I can not recommend using this for anything else but testing because it can potentially damage your sims or your savegame.
The mod adds the "Take Sunbath" interaction to all Lounge chairs that are outside. Sunbathing is only available between 8am and 7pm.
The Sim should walk up to the chair, change into swimclothes, sit down and start tanning (a bit every 30 sim minutes).
This also starts the untan timer which will fire after 12 sim hours and then again every 6 hours to make the tan slowly go away.
To Do:
-Newly bought lounge chairs don't get the interaction
-Kick sim out of chair after sunset
-Think about a tanning process that works without alarms
Known Glitches:
Uhm a few :)
-The alarms don't fire very punctual, so some delayed tanning can happen
-Tanning sims getting up from the chair and immediately changing clothes have the pre-sunbath tan for a while
-Every time a sim starts sunbathing a new untan alarm gets created leading to a faster untanning process. this is not intended but i'm not sure how to fix it.
-Pregnant sims lose their tan when giving birth
-Age transition seems to "burn in" the tan permanently?
I nicked several bits of code from velocitygrass who was kind enough to publish his usetoiletnaked mod here http://www.modthesims.info/showthread.php?t=470925
Other bits were stolen from CmarNYC's Penis morph script and ofcourse the pure script modding tutorial.
Here's the code: http://paste.ubuntu.com/922362/
VisualStudio2010 project folder attached
Mod package attached
Please note that it's compiled against de-protected Sims3GameplaySystems.dll and Sims3GameplayObjects.dll libraries. See this thread: http://www.modthesims.info/showthread.php?t=467578
This is just a debug version, I can not recommend using this for anything else but testing because it can potentially damage your sims or your savegame.
The mod adds the "Take Sunbath" interaction to all Lounge chairs that are outside. Sunbathing is only available between 8am and 7pm.
The Sim should walk up to the chair, change into swimclothes, sit down and start tanning (a bit every 30 sim minutes).
This also starts the untan timer which will fire after 12 sim hours and then again every 6 hours to make the tan slowly go away.
To Do:
-Newly bought lounge chairs don't get the interaction
-Kick sim out of chair after sunset
-Think about a tanning process that works without alarms
Known Glitches:
Uhm a few :)
-The alarms don't fire very punctual, so some delayed tanning can happen
-Tanning sims getting up from the chair and immediately changing clothes have the pre-sunbath tan for a while
-Every time a sim starts sunbathing a new untan alarm gets created leading to a faster untanning process. this is not intended but i'm not sure how to fix it.
-Pregnant sims lose their tan when giving birth
-Age transition seems to "burn in" the tan permanently?
I nicked several bits of code from velocitygrass who was kind enough to publish his usetoiletnaked mod here http://www.modthesims.info/showthread.php?t=470925
Other bits were stolen from CmarNYC's Penis morph script and ofcourse the pure script modding tutorial.
Here's the code: http://paste.ubuntu.com/922362/
VisualStudio2010 project folder attached
Mod package attached
Please note that it's compiled against de-protected Sims3GameplaySystems.dll and Sims3GameplayObjects.dll libraries. See this thread: http://www.modthesims.info/showthread.php?t=467578