RimWorld
Dubs Bad Hygiene
Dima 2019년 11월 21일 오전 11시 29분
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>
Dima 님이 마지막으로 수정; 2019년 11월 21일 오전 11시 30분
< >
전체 댓글 7개 중 1~7개 표시 중
Dima 2019년 11월 21일 오전 11시 42분 
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 ..
Dima 님이 마지막으로 수정; 2019년 11월 21일 오전 11시 49분
Dima 2019년 11월 21일 오후 12시 05분 
And also how to chage it so in shown on top of stuff ? is it:
<altitudeLayer>Weather</altitudeLayer>
but what layers exist ?
Dima 님이 마지막으로 수정; 2019년 11월 21일 오후 12시 06분
i2ID 2019년 11월 21일 오후 12시 30분 
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 2019년 11월 21일 오후 12시 33분 
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 2019년 11월 21일 오후 12시 56분 
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 2019년 11월 21일 오후 1시 12분 
Yes had the same, except <passability>Standable</passability>, but looks like it work the same way.
Now its just missing "cant build inside walls"
Dima 님이 마지막으로 수정; 2019년 11월 21일 오후 1시 12분
i2ID 2019년 11월 22일 오전 4시 10분 
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 :)
< >
전체 댓글 7개 중 1~7개 표시 중
페이지당 표시 개수: 1530 50