This commit is contained in:
2025-08-20 14:33:45 +08:00
parent 617f8da51e
commit 608266e614
11 changed files with 474 additions and 760 deletions

View File

@@ -28,4 +28,28 @@
</shaderParameters>
</graphicData>
</ThingDef>
<ThingDef ParentName="MoteBase">
<defName>Mote_WULA_RW_Penetrating_Beam</defName>
<thingClass>MoteDualAttached</thingClass>
<altitudeLayer>MoteOverhead</altitudeLayer>
<mote>
<fadeInTime>0.1</fadeInTime>
<fadeOutTime>0.1</fadeOutTime>
<solidTime>0.1</solidTime>
<rotateTowardsTarget>True</rotateTowardsTarget>
<scaleToConnectTargets>True</scaleToConnectTargets>
</mote>
<drawOffscreen>true</drawOffscreen>
<graphicData>
<texPath>Things/Projectile/ChargeLanceShot</texPath>
<graphicClass>Graphic_MoteWithAgeSecs</graphicClass>
<shaderType>MoteBeam</shaderType>
<shaderParameters>
<_ScrollSpeedA>0</_ScrollSpeedA>
<_ScrollSpeedB>0</_ScrollSpeedB>
<_Intensity>2</_Intensity>
</shaderParameters>
</graphicData>
</ThingDef>
</Defs>

View File

@@ -1,127 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<ThingDef ParentName="BaseHumanMakeableGun">
<defName>Weapon_ExampleCruiseMissileLauncher</defName>
<label>Cruise Missile Launcher</label>
<description>A heavy launcher designed for cruise missiles, capable of long-range precision strikes and area bombardment.</description>
<techLevel>Spacer</techLevel>
<graphicData>
<texPath>Things/Item/Weapon/Launcher</texPath> <!-- Placeholder, needs a proper texture path -->
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<generateCommonality>1</generateCommonality>
<soundInteract>Interact_ChargeRifle</soundInteract> <!-- Placeholder, needs a proper sound -->
<weaponClasses>
<li>LongShots</li>
<li>RangedHeavy</li>
</weaponClasses>
<recipeMaker>
<recipeUsers Inherit="False">
<li>WULA_Cube_Productor_BIO</li>
<li>WULA_Cube_Productor_Energy</li>
</recipeUsers>
<researchPrerequisite>WULA_Synth_Weapon_Technology</researchPrerequisite>
<unfinishedThingDef>UnfinishedWeapon</unfinishedThingDef>
</recipeMaker>
<statBases>
<WorkToMake>2500</WorkToMake>
<Mass>6.0</Mass>
<AccuracyTouch>0.3</AccuracyTouch>
<AccuracyShort>0.5</AccuracyShort>
<AccuracyMedium>0.6</AccuracyMedium>
<AccuracyLong>0.7</AccuracyLong>
<RangedWeapon_Cooldown>4.0</RangedWeapon_Cooldown>
</statBases>
<costList Inherit="False">
<Steel>180</Steel>
<ComponentIndustrial>10</ComponentIndustrial>
<Plasteel>40</Plasteel>
<Uranium>15</Uranium>
</costList>
<verbs>
<li>
<verbClass>Verb_LaunchProjectile</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_ExampleCruiseMissile</defaultProjectile>
<warmupTime>3.0</warmupTime>
<range>60</range>
<burstShotCount>1</burstShotCount>
<soundCast>Shot_ChargeLance</soundCast> <!-- Placeholder, needs a proper sound -->
<soundCastTail>GunTail_Heavy</soundCastTail>
<muzzleFlashScale>15</muzzleFlashScale>
<targetParams>
<canTargetLocations>true</canTargetLocations>
</targetParams>
<forcedMiss>false</forcedMiss>
</li>
</verbs>
<weaponTags>
<li>Wula_Weapon_Init</li>
<li>CruiseMissileLauncher</li>
</weaponTags>
<thingSetMakerTags>
<li>RewardStandardQualitySuper</li>
</thingSetMakerTags>
</ThingDef>
<ThingDef ParentName="BaseBullet">
<defName>Bullet_ExampleCruiseMissile</defName>
<label>cruise missile</label>
<graphicData>
<texPath>Things/Projectile/Bullet_Big</texPath> <!-- Placeholder, needs a proper texture path -->
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<thingClass>WulaFallenEmpire.Projectile_CruiseMissile</thingClass>
<projectile>
<speed>30</speed>
<damageDef>Bomb</damageDef>
<damageAmountBase>20</damageAmountBase>
<stoppingPower>2.5</stoppingPower>
<armorPenetrationBase>0.8</armorPenetrationBase>
<soundExplode>Explosion_Bomb</soundExplode>
<soundImpactAnticipate>Impact_Metal</soundImpactAnticipate>
<flyOverhead>true</flyOverhead>
<shadowSize>1.0</shadowSize>
<explosionRadius>4.0</explosionRadius>
<postExplosionSpawnThingDef>Filth_Rubble</postExplosionSpawnThingDef>
<postExplosionSpawnChance>1.0</postExplosionSpawnChance>
<postExplosionSpawnThingCount>5</postExplosionSpawnThingCount>
<explosionDelay>120</explosionDelay>
<screenShakeFactor>1.5</screenShakeFactor>
<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
<preExplosionSpawnChance>1.0</preExplosionSpawnChance>
<preExplosionSpawnThingCount>8</preExplosionSpawnThingCount>
<explosionChanceToStartFire>0.7</explosionChanceToStartFire>
<explosionDamageFalloff>true</explosionDamageFalloff>
<doExplosionVFX>true</doExplosionVFX>
<modExtensions>
<li Class="WulaFallenEmpire.CruiseMissileProperties">
<customDamageDef>Bomb</customDamageDef>
<customDamageAmount>25</customDamageAmount>
<customExplosionRadius>3.5</customExplosionRadius>
<customSoundExplode>Explosion_Bomb</customSoundExplode>
<useSubExplosions>true</useSubExplosions>
<subExplosionCount>5</subExplosionCount>
<subExplosionRadius>2.0</subExplosionRadius>
<subExplosionDamage>15</subExplosionDamage>
<subExplosionSpread>7.0</subExplosionSpread>
<subDamageDef>Bomb</subDamageDef>
<subSoundExplode>Explosion_Bomb</subSoundExplode>
<tailFleckDef>WULA_GunTail_Smoke</tailFleckDef>
<homingSpeed>0.05</homingSpeed>
<initRotateAngle>15</initRotateAngle>
<destroyTicksAfterLosingTrack>
<min>180</min>
<max>300</max>
</destroyTicksAfterLosingTrack>
<speedChangePerTick>0.001</speedChangePerTick>
<speedRangeOverride>
<min>10</min>
<max>20</max>
</speedRangeOverride>
<proximityFuseRange>1.5</proximityFuseRange>
</li>
</modExtensions>
</projectile>
</ThingDef>
</Defs>

View File

@@ -6,8 +6,9 @@
<description>A rifle designed to fire homing projectiles. It can track targets and adjust its trajectory in real-time.</description>
<techLevel>Spacer</techLevel>
<graphicData>
<texPath>Things/Item/Weapon/Rifle</texPath> <!-- Placeholder, needs a proper texture path -->
<texPath>Wula/Weapon/WULA_RW_Plasm_AR</texPath>
<graphicClass>Graphic_Single</graphicClass>
<drawSize>1.4</drawSize>
</graphicData>
<generateCommonality>1</generateCommonality>
<soundInteract>Interact_Rifle</soundInteract>
@@ -45,7 +46,7 @@
<warmupTime>1.0</warmupTime>
<range>35</range>
<burstShotCount>1</burstShotCount>
<soundCast>Shot_ChargeRifle</soundCast> <!-- Placeholder, needs a proper sound -->
<soundCast>Shot_ChargeRifle</soundCast> <!-- Placeholder, needs a proper sound -->
<soundCastTail>GunTail_Medium</soundCastTail>
<muzzleFlashScale>9</muzzleFlashScale>
</li>
@@ -63,7 +64,7 @@
<defName>Bullet_ExampleHoming</defName>
<label>homing bullet</label>
<graphicData>
<texPath>Things/Projectile/Bullet_Big</texPath> <!-- Placeholder, needs a proper texture path -->
<texPath>Things/Projectile/Bullet_Big</texPath> <!-- Placeholder, needs a proper texture path -->
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<thingClass>WulaFallenEmpire.Projectile_Homing</thingClass>
@@ -78,9 +79,6 @@
<flyOverhead>false</flyOverhead>
<shadowSize>0.5</shadowSize>
<explosionRadius>0.5</explosionRadius>
<postExplosionSpawnThingDef>Filth_Rubble</postExplosionSpawnThingDef>
<postExplosionSpawnChance>0.5</postExplosionSpawnChance>
<postExplosionSpawnThingCount>1</postExplosionSpawnThingCount>
<explosionDelay>0</explosionDelay>
<screenShakeFactor>0.5</screenShakeFactor>
<applyDamageToExplosionCellsNeighbors>false</applyDamageToExplosionCellsNeighbors>
@@ -89,22 +87,22 @@
<explosionChanceToStartFire>0.1</explosionChanceToStartFire>
<explosionDamageFalloff>true</explosionDamageFalloff>
<doExplosionVFX>true</doExplosionVFX>
<modExtensions>
<li Class="WulaFallenEmpire.HomingProjectileDef">
<initRotateAngle>10</initRotateAngle>
<homingSpeed>0.05</homingSpeed>
<destroyTicksAfterLosingTrack>60</destroyTicksAfterLosingTrack>
<proximityFuseRange>1.5</proximityFuseRange>
<hitChance>0.8</hitChance>
<extraProjectile>Bullet_ExampleHoming</extraProjectile>
<SpeedChangeTilesPerTickOverride>0.05</SpeedChangeTilesPerTickOverride>
<SpeedRangeTilesPerTickOverride>
<min>20</min>
<max>40</max>
</SpeedRangeTilesPerTickOverride>
<tailFleckDef>WULA_GunTail_Smoke</tailFleckDef>
</li>
</modExtensions>
</projectile>
<modExtensions>
<li Class="WulaFallenEmpire.HomingProjectileDef">
<initRotateAngle>10</initRotateAngle>
<homingSpeed>0.05</homingSpeed>
<destroyTicksAfterLosingTrack>60</destroyTicksAfterLosingTrack>
<proximityFuseRange>1.5</proximityFuseRange>
<hitChance>0.8</hitChance>
<extraProjectile>Bullet_ExampleHoming</extraProjectile>
<SpeedChangeTilesPerTickOverride>0.05</SpeedChangeTilesPerTickOverride>
<SpeedRangeTilesPerTickOverride>
<min>20</min>
<max>40</max>
</SpeedRangeTilesPerTickOverride>
<tailFleckDef>WULA_GunTail_Smoke</tailFleckDef>
</li>
</modExtensions>
</ThingDef>
</Defs>

View File

@@ -6,8 +6,9 @@
<description>A powerful launcher that fires homing projectiles with explosive payloads. Ideal for area denial and heavy damage.</description>
<techLevel>Spacer</techLevel>
<graphicData>
<texPath>Things/Item/Weapon/Launcher</texPath> <!-- Placeholder, needs a proper texture path -->
<texPath>Wula/Weapon/WULA_RW_Plasm_AR</texPath>
<graphicClass>Graphic_Single</graphicClass>
<drawSize>1.4</drawSize>
</graphicData>
<generateCommonality>0.8</generateCommonality>
<soundInteract>Interact_ChargeRifle</soundInteract> <!-- Placeholder, needs a proper sound -->
@@ -79,10 +80,6 @@
<flyOverhead>true</flyOverhead>
<shadowSize>0.8</shadowSize>
<explosionRadius>3.0</explosionRadius>
<postExplosionSpawnThingDef>Filth_Rubble</postExplosionSpawnThingDef>
<postExplosionSpawnChance>1.0</postExplosionSpawnChance>
<postExplosionSpawnThingCount>3</postExplosionSpawnThingCount>
<explosionDelay>60</explosionDelay>
<screenShakeFactor>1.0</screenShakeFactor>
<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
<preExplosionSpawnChance>1.0</preExplosionSpawnChance>
@@ -90,34 +87,22 @@
<explosionChanceToStartFire>0.5</explosionChanceToStartFire>
<explosionDamageFalloff>true</explosionDamageFalloff>
<doExplosionVFX>true</doExplosionVFX>
<modExtensions>
<li Class="WulaFallenEmpire.HomingProjectileDef">
<initRotateAngle>5</initRotateAngle>
<homingSpeed>0.03</homingSpeed>
<destroyTicksAfterLosingTrack>90</destroyTicksAfterLosingTrack>
<proximityFuseRange>2.0</proximityFuseRange>
<hitChance>0.7</hitChance>
<extraProjectile>Bullet_ExampleHomingExplosive</extraProjectile>
<SpeedChangeTilesPerTickOverride>0.03</SpeedChangeTilesPerTickOverride>
<SpeedRangeTilesPerTickOverride>
<min>20</min>
<max>30</max>
</SpeedRangeTilesPerTickOverride>
<tailFleckDef>WULA_GunTail_Smoke</tailFleckDef>
</li>
<li Class="WulaFallenEmpire.ModExtension_Cone">
<coneAngle>30</coneAngle>
<coneRange>5</coneRange>
<repeatExplosionCount>3</repeatExplosionCount>
<fragment>Bullet_ShotgunPellet</fragment> <!-- Example fragment -->
<fragmentCount>5</fragmentCount>
<fragmentRange>
<min>1</min>
<max>3</max>
</fragmentRange>
<showConeEffect>true</showConeEffect>
</li>
</modExtensions>
</projectile>
<modExtensions>
<li Class="WulaFallenEmpire.HomingProjectileDef">
<initRotateAngle>5</initRotateAngle>
<homingSpeed>0.03</homingSpeed>
<destroyTicksAfterLosingTrack>90</destroyTicksAfterLosingTrack>
<proximityFuseRange>2.0</proximityFuseRange>
<hitChance>0.7</hitChance>
<extraProjectile>Bullet_ExampleHomingExplosive</extraProjectile>
<SpeedChangeTilesPerTickOverride>0.03</SpeedChangeTilesPerTickOverride>
<SpeedRangeTilesPerTickOverride>
<min>20</min>
<max>30</max>
</SpeedRangeTilesPerTickOverride>
<tailFleckDef>WULA_GunTail_Smoke</tailFleckDef>
</li>
</modExtensions>
</ThingDef>
</Defs>