RimWorld

RimWorld

Glitter Tech Classic (No Surgery)
DR C00keR Feb 26, 2019 @ 3:49pm
Rocket launcher BUG.
the rocket launcher is buged so it fires mutiple times (like 10x per second) in the low left corner of the map causing it to lag AF! It is missing all the information about the rocket projectile in the Weapons_ocgroup.xml
I made it correct, here it is
<ThingDef ParentName="BaseBullet_GT">
<defName>Bullet_OCCanon</defName>
<label>OC canon</label>
<graphicData>
<texPath>Things/Projectile/Turret_Missile</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<projectile>
<damageDef>Bullet</damageDef>
<damageAmountBase>60</damageAmountBase>
<speed>40</speed>
</projectile>
</ThingDef>

<ThingDef ParentName="BaseGun_GT">
<defName>Gun_OCRocket</defName>
<label>Orion rocket launcher</label>
<description>A standard issue Orion Corporation anti-tank weapon. Laser guide and much more accurate then standard rocket launchers</description>
<graphicData>
<texPath>Textures/Things/Item/Equipment/WeaponRanged/RocketLauncher</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<statBases>
<MarketValue>900</MarketValue>
<AccuracyTouch>0.9</AccuracyTouch>
<AccuracyShort>0.9</AccuracyShort>
<AccuracyMedium>0.92</AccuracyMedium>
<AccuracyLong>0.88</AccuracyLong>
<RangedWeapon_Cooldown>4.5</RangedWeapon_Cooldown>
</statBases>
<techLevel>Spacer</techLevel>
<destroyOnDrop>false</destroyOnDrop>
<weaponTags>
<li>OCHeavy</li>
</weaponTags>
<verbs>
<li>
<verbClass>Verb_ShootOneUse</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_OCCanon</defaultProjectile>
<forcedMissRadius>1.0</forcedMissRadius>
<warmupTime>1.0</warmupTime>
<range>60</range>
<soundCast>Cannon</soundCast>
<soundCastTail>GunTail_Medium</soundCastTail>
<muzzleFlashScale>9</muzzleFlashScale>
<targetParams>
<canTargetLocations>true</canTargetLocations>
</targetParams>
</li>
</verbs>
</ThingDef>