72002910_s 72002910_s
关注数: 8 粉丝数: 31 发帖数: 1,351 关注贴吧数: 34
分享一个手搓的震撼弹mod 如题,因为在创意工坊没有找到类似mod,就打算手搓一个,因为从来没做过mod,所以我的方法会相当原始,故不建议任何电脑小白模仿,就算要模仿也请提前做好备份,如果整出什么问题,额,自己解决? 首先,找到Steam\steamapps\common\RimWorld\Data\Core\Defs\ThingDefs_Items(这里以steam版为例)里面有个Items_Resource_Shell.xml,右键编辑,然后在最后一行空行复制如下内容 <!-- Stun --> <ThingDef ParentName="MakeableShellBase"> <defName>Shell_StunShell</defName> <label>Stun Shell</label> <description>A pressurized shell filled with chemicals ,making a bright light and loud noise to disorient enemies. Can be fired from mortars.</description> <possessionCount>2</possessionCount> <graphicData> <texPath>Things/Item/Resource/Shell/Shell_Firefoam</texPath> <graphicClass>Graphic_StackCount</graphicClass> </graphicData> <comps> <li Class="CompProperties_Explosive"> <explosiveRadius>40.9</explosiveRadius> <explosiveDamageType>Stun</explosiveDamageType> <explosiveExpandPerStackcount>0.4</explosiveExpandPerStackcount> <startWickHitPointsPercent>0.7</startWickHitPointsPercent> <wickTicks>30~60</wickTicks> </li> </comps> <projectileWhenLoaded>Bullet_Shell_StunShell</projectileWhenLoaded> <costList> <Steel>25</Steel> </costList> <costListForDifficulty> <difficultyVar>classicMortars</difficultyVar> <costList> <Steel>35</Steel> </costList> </costListForDifficulty> <recipeMaker> <researchPrerequisite>Mortars</researchPrerequisite> </recipeMaker> </ThingDef> <ThingDef ParentName="BaseBullet"> <defName>Bullet_Shell_StunShell</defName> <label>Stun shell</label> <graphicData> <texPath>Things/Projectile/ShellFirefoam</texPath> <graphicClass>Graphic_Single</graphicClass> <shaderType>TransparentPostLight</shaderType> </graphicData> <thingClass>Projectile_Explosive</thingClass> <projectile> <damageDef>Stun</damageDef> <!-- damage amount is the damage def default --> <speed>41</speed> <explosionRadius>40.9</explosionRadius> <flyOverhead>true</flyOverhead> <soundHitThickRoof>Artillery_HitThickRoof</soundHitThickRoof> <soundExplode>Explosion_EMP</soundExplode> <soundImpactAnticipate>MortarRound_PreImpact</soundImpactAnticipate> <soundAmbient>MortarRound_Ambient</soundAmbient> </projectile> </ThingDef> 个人测试无bug,可以正常生产,用迫击炮打出去并造成40格范围的震撼效果(这个数字很正义我知道,所以请各位有想法的自己按需修改)以及,因为本人实在没有美术能力,这里的炮弹外观用的是灭火弹外观,如果有人想把它做成完整mod请自便,标明名字就好
1 下一页