RimWorld

RimWorld

[FCP] Stupid Sexy Deathclaws
zrx278 26 Aug, 2022 @ 4:57pm
A fix for cutoff pawn graphics due to texture caching
I tinkered with the draw sizes to get the mod to play nice with Vanilla Expanded Framework's texture caching. The texture caching option in Vanilla Expanded Framework is what causes the bottom of the pawn to be cutoff. If you turn off texture caching you don't need this fix but some mods break without texture caching. The child scaling in "Children, School, and Learning" breaks without texture caching causing children to be adult sized. This fixes it, but makes the Deathcloid pawn smaller in order to fix it, 1.35 size instead of 1.66 size. They are still a good bit larger than base game hulk bodies, though.

Navigate to your Steam Rimworld workshop downloads and then to this mod. It should be something like \Steam\steamapps\workshop\content\294100\2635389101. Open the 1.3 folder, then the Defs folder, and finally Deathclaw_Race.xml. Select all and replace with what is below. There are no changes other than adjusting the draw sizes under <li>Hulk</li>, the tail offsets under <!-- Tail -->, and the egg fix.



<?xml version="1.0" encoding="utf-8"?>

<Defs>

<!-- Basic Race -->
<AlienRace.ThingDef_AlienRace ParentName="BasePawn">
<defName>SSD_DeathclawRace</defName>
<label>Deathcloid</label>
<!-- <description>A very large and imposing lizard-like humanoid with DNA strikingly similiar to that of the long extinct Jackson Chameleon. They possess incredible strength and durable hides. Their most notable feature, however, are the long, razor-sharp claws on their hands and feet. Such claws are able to rip fleshy and armored opponents alike to ribbons with ease. Deathcloids struggle greatly with social interactions, and must work slowly to avoid destroying whatever it is they are doing with their claws. However, they boast very strong resistances to damage, disease, and the elements as a whole, save for the cold. Additionally, they are immune to the effects of toxic build up. -->
<!-- Deathcloids live, to most humans, very simple and animalistic lives. They forage, hunt, and fend for themselves as a collective pack. </description> -->
<description>A very large and imposing reptile-like humanoid with massive, razor sharp claws that can rip armored and unarmored foes to ribbons with ease. They possess incredible strength and durable hides taht grant them resillience to most forms of damage and the elements alike. However, their mental and social abilities are often below that of the average human and their claws make tasks requiring careful manipulation slow and difficult.</description>


<statBases>
<!-- Standard Stat Bases -->
<PsychicSensitivity>0.66</PsychicSensitivity>
<ToxicSensitivity>0.0</ToxicSensitivity>
<ComfyTemperatureMin>5</ComfyTemperatureMin>
<ComfyTemperatureMax>90</ComfyTemperatureMax>
<LeatherAmount>75</LeatherAmount>
<MarketValue>1000</MarketValue>
<!-- <MoveSpeed>5.75</MoveSpeed> -->
<MoveSpeed>6.9</MoveSpeed>
<Flammability>0.90</Flammability>
<CarryingCapacity>125</CarryingCapacity>
<MentalBreakThreshold>0.1</MentalBreakThreshold>
<ResearchSpeed>0.75</ResearchSpeed>
<MiningSpeed>1.0</MiningSpeed>
<SocialImpact>0.5</SocialImpact>
<PlantWorkSpeed>1.0</PlantWorkSpeed>
<PlantHarvestYield>1.0</PlantHarvestYield>
<ConstructionSpeed>1.0</ConstructionSpeed>
<ArmorRating_Blunt>0.30</ArmorRating_Blunt>
<ArmorRating_Sharp>0.35</ArmorRating_Sharp>
<ArmorRating_Heat>0.30</ArmorRating_Heat>


<!-- Additional Stat Bases -->
<HungerRateMultiplier>1.10</HungerRateMultiplier>
<ImmunityGainSpeed>1.25</ImmunityGainSpeed>
<InjuryHealingFactor>1.05</InjuryHealingFactor>
<MinimumHandlingSkill>10</MinimumHandlingSkill>
<PainShockThreshold>0.95</PainShockThreshold>
<ForagedNutritionPerDay>1.0</ForagedNutritionPerDay>
<FilthRate>1.15</FilthRate>
<HuntingStealth>1.15</HuntingStealth>
<GlobalLearningFactor>1.05</GlobalLearningFactor>
<WorkSpeedGlobal>0.75</WorkSpeedGlobal>
<ShootingAccuracyPawn>-0.25</ShootingAccuracyPawn>

<SuppressionPower>2.0</SuppressionPower>


</statBases>

<tools>
<li>
<label>left claw</label>
<capacities>
<li>Cut</li>
<li>Stab</li>
</capacities>
<power>16</power>
<cooldownTime>2</cooldownTime>
<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>

<surpriseAttack>
<extraMeleeDamages>
<li>
<def>Stun</def>
<amount>15</amount>
</li>
</extraMeleeDamages>
</surpriseAttack>
</li>
<li>
<label>right claw</label>
<capacities>
<li>Cut</li>
<li>Stab</li>
</capacities>
<power>16</power>
<cooldownTime>2</cooldownTime>
<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>

<surpriseAttack>
<extraMeleeDamages>
<li>
<def>Stun</def>
<amount>15</amount>
</li>
</extraMeleeDamages>
</surpriseAttack>
</li>
<li>
<label>head</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>8</power>
<cooldownTime>2</cooldownTime>
<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
<chanceFactor>0.2</chanceFactor>
</li>
<li>
<label>horns</label>
<capacities>
<li>Blunt</li>
<li>Stab</li>
</capacities>
<power>10</power>
<cooldownTime>2</cooldownTime>
<linkedBodyPartsGroup>HornAttackTool</linkedBodyPartsGroup>
<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
<chanceFactor>0.25</chanceFactor>
</li>
</tools>

<alienRace>
<generalSettings>
<maleGenderProbability>0.66</maleGenderProbability>
<immuneToAge>false</immuneToAge>
<canLayDown>true</canLayDown>

<traitCount>1~2</traitCount>
<additionalTraits>1~2</additionalTraits>
<disallowedTraits>
<li>
<defName>Wimp</defName>
<chance>99</chance>
</li>
<li>
<defName>Greedy</defName>
<chance>99</chance>
</li>
</disallowedTraits>
<forcedRaceTraitEntries>
<li>
<defName>Ascetic</defName>
<chance>66</chance>
</li>

</forcedRaceTraitEntries>

<maxDamageForSocialfight>7</maxDamageForSocialfight>
<minAgeForAdulthood>10</minAgeForAdulthood>
<humanRecipeImport>true</humanRecipeImport>

<alienPartGenerator>
<aliencrowntypes>
<li>Average_Normal</li>
</aliencrowntypes>
<alienbodytypes>
<!-- <li>DeathclawF</li> -->
<!-- <li>DeathclawM</li> -->
<li>Hulk</li>


</alienbodytypes>
<useGenderedHeads>true</useGenderedHeads>
<useGenderedBodies>true</useGenderedBodies>

<customDrawSize>(1.35, 1.35)</customDrawSize>
<customHeadDrawSize>(1.25, 1.25)</customHeadDrawSize>
<customPortraitDrawSize>(1.0, 1.0)</customPortraitDrawSize>
<customPortraitHeadDrawSize>(1.0, 1.0)</customPortraitHeadDrawSize>
<headOffset>(0.1, 0.1)</headOffset>

<bodyAddons>
<!-- Horns -->
<li>
<path>Pawns/Deathclaw/Horns/Horns</path>
<bodyPart>SSD_DeathclawHorns</bodyPart>
<inFrontOfBody>true</inFrontOfBody>
<layerInvert>false</layerInvert>
<!-- <layerOffset>0.00</layerOffset> -->
<alignWithHead>true</alignWithHead>

<drawSize>(1.0,1.0)</drawSize>
<drawSizePortrait>(1.0,1.0)</drawSizePortrait>
<drawRotated>false</drawRotated>
<scaleWithPawnDrawsize>true</scaleWithPawnDrawsize>
<drawnDesiccated>true</drawnDesiccated>

</li>

<!-- Chest -->
<!-- <li> -->
<!-- <path>Pawns/Deathclaw/Chest/Chest</path> -->
<!-- <bodyPart>Torso</bodyPart> -->
<!-- <inFrontOfBody>true</inFrontOfBody> -->
<!-- <layerInvert>false</layerInvert> -->

<!-- <alignWithHead>false</alignWithHead> -->

<!-- <drawSize>(1.0,1.0)</drawSize> -->
<!-- <drawSizePortrait>(1.0,1.0)</drawSizePortrait> -->
<!-- <drawRotated>false</drawRotated> -->
<!-- <scaleWithPawnDrawsize>true</scaleWithPawnDrawsize> -->
<!-- <drawnDesiccated>false</drawnDesiccated> -->
<!-- <drawForMale>false</drawForMale> -->
<!-- <hiddenUnderApparelFor> -->
<!-- <li>Torso</li> -->
<!-- </hiddenUnderApparelFor> -->
<!-- </li> -->

<!-- Tail -->
<li>
<path>Pawns/Deathclaw/Tails/Tail1</path>
<bodyPart>SSD_DeathclawTail</bodyPart>
<inFrontOfBody>true</inFrontOfBody>
<layerInvert>false</layerInvert>
<!-- <layerOffset>0.00</layerOffset> -->
<alignWithHead>false</alignWithHead>
<drawnInBed>false</drawnInBed>

<drawSize>(1.0,1.0)</drawSize>
<drawSizePortrait>(1.0,1.0)</drawSizePortrait>
<drawRotated>false</drawRotated>
<scaleWithPawnDrawsize>true</scaleWithPawnDrawsize>
<drawnDesiccated>true</drawnDesiccated>
<offsets>
<south>
<bodyTypes>
<Hulk>(-0.33,-0.5)</Hulk>

</bodyTypes>
</south>
<north>
<bodyTypes>
<Hulk>(-0.0,-0.765)</Hulk>

</bodyTypes>
</north>
<east>
<bodyTypes>
<Hulk>(0.7,-0.725)</Hulk>

</bodyTypes>
</east>
</offsets>
</li>
</bodyAddons>

<colorChannels>
<li>
<name>skin</name>
<first Class="ColorGenerator_Options">
<options>
<li>
<weight>14</weight>
<only>RGBA(0.99,0.85,0.72,1.0)</only>
</li>

<li>
<weight>14</weight>
<only>RGBA(0.85,0.83,1.0,1.0)</only>
</li>
<li>
<weight>14</weight>
<only>RGBA(1.0,1.0,1.0,1.0)</only>
</li>
</options>
</first>
<second Class="ColorGenerator_Options">
<options>
<li>
<weight>10</weight>
<only>RGBA(1.0,1.0,1.0,1.0)</only>
</li>
</options>
</second>
</li>
</colorChannels>

</alienPartGenerator>


</generalSettings>

<graphicPaths>
<li>
<body>Pawns/Deathclaw/Bodies/</body>
<head>Pawns/Deathclaw/Heads/</head>
<!-- <skeleton>Pawns/Deathclaw/Dessicated/Dessicated_DeathclawM</skeleton> -->
<!-- <skull>TestPawn/Skull/Skull</skull> -->

</li>


</graphicPaths>

<styleSettings>
<li>
<key>HairDef</key>
<value>
<hasStyle>false</hasStyle>
</value>
</li>
<li>
<key>TattooDef</key>
<value>
<hasStyle>false</hasStyle>
</value>
</li>
<li>
<key>BeardDef</key>
<value>
<hasStyle>false</hasStyle>
</value>
</li>
</styleSettings>


<thoughtSettings>
<cannotReceiveThoughts>
<li>ButcheredHumanlikeCorpse</li>
<li>KnowButcheredHumanlikeCorpse</li>
<li>AteRawFood</li>
<li>AteKibble</li>
<li>AteCorpse</li>
<li>AteWithoutTable</li>
<li>AteHumanlikeMeatDirect</li>
<li>AteHumanlikeMeatDirectCannibal</li>
<li>AteHumanlikeMeatAsIngredient</li>
<li>AteHumanlikeMeatAsIngredientCannibal</li>
<li>AteInsectMeatDirect</li>
<li>AteInsectMeatAsIngredient</li>
<li>Naked</li>
<li>SleptOnGround</li>
<li>ObservedLayingCorpse</li>
</cannotReceiveThoughts>
</thoughtSettings>


<relationSettings>
<relationChanceModifierLover>1</relationChanceModifierLover>
<relationChanceModifierExLover>1</relationChanceModifierExLover>

<relationChanceModifierFiance>1</relationChanceModifierFiance>
<relationChanceModifierSpouse>1</relationChanceModifierSpouse>
<relationChanceModifierExSpouse>1</relationChanceModifierExSpouse>

<relationChanceModifierParent>1</relationChanceModifierParent>
<relationChanceModifierChild>1</relationChanceModifierChild>
<relationChanceModifierSibling>1</relationChanceModifierSibling>
</relationSettings>
<raceRestriction>

</raceRestriction>
<compatibility>

</compatibility>
</alienRace>

<race>
<thinkTreeMain>Humanlike</thinkTreeMain>
<thinkTreeConstant>HumanlikeConstant</thinkTreeConstant>
<intelligence>Humanlike</intelligence>
<makesFootprints>true</makesFootprints>
<lifeExpectancy>150</lifeExpectancy>
<leatherDef>SSD_DeathclawLeather</leatherDef>
<nameCategory>HumanStandard</nameCategory>
<body>SSD_DeathclawBody</body>
<baseBodySize>1.5</baseBodySize>
<baseHealthScale>2</baseHealthScale>
<foodType>CarnivoreAnimal</foodType>
<gestationPeriodDays>30</gestationPeriodDays>
<meatMarketValue>0.8</meatMarketValue>
<manhunterOnDamageChance>0.90</manhunterOnDamageChance>
<manhunterOnTameFailChance>0.90</manhunterOnTameFailChance>
<litterSizeCurve>
<points>
<li>(0.5, 0)</li>
<li>(1, 1)</li>
<li>(1.01, 0.02)</li>
<li>(3.5, 0)</li>
</points>
</litterSizeCurve>
<lifeStageAges>
<li>
<def>HumanlikeBaby</def>
<minAge>0</minAge>
</li>
<li>
<def>HumanlikeToddler</def>
<minAge>1.2</minAge>
</li>
<li>
<def>HumanlikeChild</def>
<minAge>4</minAge>
</li>
<li>
<def>HumanlikeTeenager</def>
<minAge>13</minAge>
</li>
<li>
<def>SSD_DeathclawAdult</def>
<minAge>16</minAge>
<soundWounded>Pawn_Bear_Injured</soundWounded>
<soundDeath>Pawn_Bear_Death</soundDeath>
<soundCall>Pawn_Bear_Call</soundCall>
<soundAngry>Pawn_Bear_Angry</soundAngry>
</li>
</lifeStageAges>
<soundMeleeHitPawn>Pawn_Melee_MechanoidSlash_HitPawn</soundMeleeHitPawn>
<soundMeleeHitBuilding>Pawn_Melee_MechanoidSlash_HitBuilding</soundMeleeHitBuilding>
<soundMeleeMiss>Pawn_Melee_MechanoidSlash_Miss</soundMeleeMiss>
<soundMeleeDodge>Pawn_MeleeDodge</soundMeleeDodge>
<specialShadowData>
<volume>(0.3, 0.8, 0.4)</volume>
<offset>(0,0,-0.3)</offset>
</specialShadowData>
<ageGenerationCurve>
<points>
<li>(14,0)</li>
<li>(16,100)</li>
<li>(50,100)</li>
<li>(60,30)</li>
<li>(70,18)</li>
<li>(80,10)</li>
<li>(90,3)</li>
<li>(100,0)</li>
</points>
</ageGenerationCurve>
<hediffGiverSets>
<li>OrganicStandard</li>
<li>Human</li>
<!-- <li>SSD_DeathClawTraitsBasicGiver</li> -->
</hediffGiverSets>
</race>



<recipes>
<li>ExciseCarcinoma</li>
<li>AdministerMechSerumHealer</li>
<li>RemoveBodyPart</li>
<li>Euthanize</li>
<li>Anesthetize</li>
<li>CureScaria</li>
<li MayRequire="Ludeon.RimWorld.Royalty">CureBloodRot</li>
<li MayRequire="Ludeon.RimWorld.Royalty">CureAbasia</li>
</recipes>

<!-- <ingredient> -->
<!-- <mergeCompatibilityTags> -->
<!-- <li>HumanMeat</li> -->
<!-- </mergeCompatibilityTags> -->
<!-- </ingredient> -->




</AlienRace.ThingDef_AlienRace>

</Defs>