RimWorld

RimWorld

Dubs Bad Hygiene
Dima Nov 21, 2019 @ 11:29am
Sprinkler placement rule like fan
What should i change/add/remove so i can place the sprinkle everywhere where i also can place a ceiling fan ?

Sprinkler
<ThingDef ParentName="BasedHygieneMom"> <defName>FireSprinkler</defName> <label>Fire Sprinkler</label> <description>Triggered by fire or high temperature. Douses flames with a spray of water</description> <graphicData> <texPath>DBH/Things/Building/firesprinkler</texPath> <graphicClass>Graphic_Single</graphicClass> <shadowData> <volume>(0.25, 0.5, 0.25)</volume> <offset>(0,0,-0.1)</offset> </shadowData> <damageData> <rect>(0.2,0.2,0.6,0.6)</rect> </damageData> </graphicData> <minifiedDef>MinifiedThing</minifiedDef> <thingCategories> <li>BuildingsHygiene</li> </thingCategories> <tickerType>Normal</tickerType> <blockWind>false</blockWind> <pathCost>8</pathCost> <size>(1,1)</size> <costList> <Steel>15</Steel> <ComponentIndustrial>1</ComponentIndustrial> </costList> <rotatable>false</rotatable> <statBases> <Mass>2</Mass> <MaxHitPoints>100</MaxHitPoints> <WorkToBuild>500</WorkToBuild> <Flammability>1</Flammability> </statBases> <comps> <li Class="DubsBadHygiene.CompProperties_Pipe"> <mode>Sewage</mode> </li> <li Class="DubsBadHygiene.CompProperties_Sprinkler"> <compClass>DubsBadHygiene.CompFireSprinkler</compClass> <usagePerCell>0.16</usagePerCell> </li> <li Class="CompProperties_Usable"> <useJob>TriggerFireSprinkler</useJob> <useLabel>Trigger fire sprinkler</useLabel> </li> </comps> <researchPrerequisites> <li>FireSuppression</li> </researchPrerequisites> <drawPlaceWorkersWhileSelected>false</drawPlaceWorkersWhileSelected> <placeWorkers> <li>DubsBadHygiene.PlaceWorker_Sprinkler</li> </placeWorkers> <designationCategory>HygieneMisc</designationCategory> </ThingDef>
Fan
<ThingDef ParentName="BasedHeating"> <defName>CeilingFanS</defName> <label>Ceiling Fan 1x1</label> <thingClass>DubsBadHygiene.Building_CeilingFan</thingClass> <graphicData> <texPath>DBH/Things/Building/Heating/CeilingFanBlades</texPath> <graphicClass>Graphic_Single</graphicClass> <drawSize>(2,2)</drawSize> </graphicData> <uiIconScale>0.5</uiIconScale> <terrainAffordanceNeeded>Light</terrainAffordanceNeeded> <altitudeLayer>Weather</altitudeLayer> <clearBuildingArea>false</clearBuildingArea> <description>Cools a room by circulating air. Includes a built in lamp.</description> <passability>Standable</passability> <drawerType>RealtimeOnly</drawerType> <blockWind>false</blockWind> <blockLight>false</blockLight> <holdsRoof>false</holdsRoof> <castEdgeShadows>false</castEdgeShadows> <rotatable>false</rotatable> <building> <isInert>true</isInert> <isEdifice>false</isEdifice> <canBuildNonEdificesUnder>true</canBuildNonEdificesUnder> <blueprintGraphicData> <texPath>DBH/Things/Building/Heating/CeilingFanBlades</texPath> </blueprintGraphicData> </building> <costList> <Steel>40</Steel> <ComponentIndustrial>1</ComponentIndustrial> </costList> <size>(1,1)</size> <statBases> <MaxHitPoints>75</MaxHitPoints> <WorkToBuild>700</WorkToBuild> <Mass>15</Mass> </statBases> <comps> <li Class="CompProperties_Power"> <compClass>CompPowerTrader</compClass> <basePowerConsumption>50</basePowerConsumption> </li> <li Class="CompProperties_Glower"> <glowRadius>9</glowRadius> <glowColor>(217,217,208,0)</glowColor> </li> <li Class="CompProperties_Flickable"/> </comps> <researchPrerequisites> <li>CentralHeating</li> </researchPrerequisites> <placeWorkers> <li>PlaceWorker_CoolerSimple</li> <li>DubsBadHygiene.PlaceWorker_NotUnderEdiface</li> </placeWorkers> <drawPlaceWorkersWhileSelected>true</drawPlaceWorkersWhileSelected> <designationCategory>HygieneMisc</designationCategory> </ThingDef>
Last edited by Dima; Nov 21, 2019 @ 11:30am
< >
Showing 1-7 of 7 comments
Dima Nov 21, 2019 @ 11:42am 
I copy paste this from fan to sprinkler
<building> <isInert>true</isInert> <isEdifice>false</isEdifice> <canBuildNonEdificesUnder>true</canBuildNonEdificesUnder> <blueprintGraphicData> <texPath>DBH/Things/Building/firesprinkler</texPath> </blueprintGraphicData> </building>

But now i can build the sprinkler even inside a wall and the fan dont ..
Last edited by Dima; Nov 21, 2019 @ 11:49am
Dima Nov 21, 2019 @ 12:05pm 
And also how to chage it so in shown on top of stuff ? is it:
<altitudeLayer>Weather</altitudeLayer>
but what layers exist ?
Last edited by Dima; Nov 21, 2019 @ 12:06pm
i2ID Nov 21, 2019 @ 12:30pm 
And also how to chage it so in shown on top of stuff ? is it:
<altitudeLayer>Weather</altitudeLayer>

correct
although i think you will still be able to build it without a constructed roof which might be a bit strange =)
Dima Nov 21, 2019 @ 12:33pm 
Originally posted by i2ID:
although i think you will still be able to build it without a constructed roof which might be a bit strange =)

But this is also possible with fans by default, so its ok :D, thx
i2ID Nov 21, 2019 @ 12:56pm 
ok scratch that. i found this on discord

<building>
<blueprintGraphicData>
<texPath>Things/Building/skylightBP</texPath>
</blueprintGraphicData>
<isInert>true</isInert>
<isEdifice>false</isEdifice>
<canBuildNonEdificesUnder>true</canBuildNonEdificesUnder>
</building>
<clearBuildingArea>false</clearBuildingArea>
<altitudeLayer>Weather</altitudeLayer>
<passability>Standable</passability>

from skylightsmod
Dima Nov 21, 2019 @ 1:12pm 
Yes had the same, except <passability>Standable</passability>, but looks like it work the same way.
Now its just missing "cant build inside walls"
Last edited by Dima; Nov 21, 2019 @ 1:12pm
i2ID Nov 22, 2019 @ 4:10am 
you could try asking this on the main rimworld discord server there many people checking there that may be able to assist. I just tried this too and have no idea why they can be built inside walls :)
< >
Showing 1-7 of 7 comments
Per page: 1530 50