RimWorld

RimWorld

Dubs Bad Hygiene
Dima 21. nov. 2019 kl. 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>
Sist redigert av Dima; 21. nov. 2019 kl. 11.30
< >
Viser 17 av 7 kommentarer
Dima 21. nov. 2019 kl. 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 ..
Sist redigert av Dima; 21. nov. 2019 kl. 11.49
Dima 21. nov. 2019 kl. 12.05 
And also how to chage it so in shown on top of stuff ? is it:
<altitudeLayer>Weather</altitudeLayer>
but what layers exist ?
Sist redigert av Dima; 21. nov. 2019 kl. 12.06
i2ID 21. nov. 2019 kl. 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 21. nov. 2019 kl. 12.33 
Opprinnelig skrevet av 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 21. nov. 2019 kl. 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 21. nov. 2019 kl. 13.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"
Sist redigert av Dima; 21. nov. 2019 kl. 13.12
i2ID 22. nov. 2019 kl. 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 :)
< >
Viser 17 av 7 kommentarer
Per side: 1530 50