伴飞系统,技能飞行物垂直入场

This commit is contained in:
2025-10-28 17:31:39 +08:00
parent f55c0df25a
commit 8c4924144a
12 changed files with 864 additions and 196 deletions

Binary file not shown.

View File

@@ -34,8 +34,9 @@
<useHitPoints>false</useHitPoints>
<selectable>false</selectable>
<alwaysHaulable>false</alwaysHaulable>
<altitudeLayer>LightingOverlay</altitudeLayer>
<altitudeLayer>FogOfWar</altitudeLayer>
<comps>
<!-- 入场信封信息 -->
<li Class="ArachnaeSwarm.CompProperties_SendLetterAfterTicks">
<ticksDelay>60</ticksDelay> <!-- 2秒后发送 -->
<letterLabel>虫巢母舰</letterLabel>
@@ -45,6 +46,7 @@
<requireOnMap>true</requireOnMap>
<destroyAfterSending>false</destroyAfterSending> <!-- 发送后销毁flyover -->
</li>
<!-- 空投 -->
<li Class="ArachnaeSwarm.CompProperties_FlyOverDropPods">
<!-- <dropProgress>0.5</dropProgress> -->
<useCyclicDrops>true</useCyclicDrops>
@@ -102,13 +104,13 @@
<joinPlayer>false</joinPlayer>
<makePrisoners>false</makePrisoners>
</li>
<!-- 炮击支援 -->
<li Class="ArachnaeSwarm.CompProperties_ShipArtillery">
<ticksBetweenAttacks>600</ticksBetweenAttacks>
<attackDurationTicks>600</attackDurationTicks>
<warmupTicks>60</warmupTicks>
<attackRadius>60</attackRadius>
<shellsPerVolley>3</shellsPerVolley>
<scatterRadius>60</scatterRadius>
<ignoreProtectionChance>0.1</ignoreProtectionChance>
<skyfallerDef>ARA_HiveShip_Fire_Incoming</skyfallerDef>
@@ -120,13 +122,78 @@
<avoidPlayerAssets>true</avoidPlayerAssets>
<playerAssetAvoidanceRadius>10</playerAssetAvoidanceRadius>
<sendAttackLetter>true</sendAttackLetter>
<sendAttackLetter>false</sendAttackLetter>
<customLetterLabel>战舰炮击警告</customLetterLabel>
<customLetterText>一艘敌方战舰正在对殖民地进行炮击!立即寻找掩护!</customLetterText>
<letterDef>ThreatBig</letterDef>
</li>
<!-- 伴飞 -->
<li Class="ArachnaeSwarm.CompProperties_FlyOverEscort">
<escortFlyOverDef>ARA_HiveCorvette</escortFlyOverDef>
<!-- 生成配置 -->
<spawnIntervalTicks>250</spawnIntervalTicks> <!-- 5秒 -->
<maxEscorts>60</maxEscorts>
<spawnCount>1</spawnCount>
<!-- 位置配置 -->
<spawnDistance>15</spawnDistance>
<lateralOffset>200</lateralOffset>
<verticalOffset>5</verticalOffset>
<useRandomOffset>true</useRandomOffset>
<!-- 飞行配置 -->
<escortSpeedMultiplier>20</escortSpeedMultiplier> <!-- 比主舰稍快 -->
<escortAltitudeOffset>10</escortAltitudeOffset> <!-- 比主舰稍高 -->
<mirrorMovement>false</mirrorMovement>
<!-- 行为配置 -->
<spawnOnStart>true</spawnOnStart>
<destroyWithParent>false</destroyWithParent>
<continuousSpawning>true</continuousSpawning>
<!-- 外观配置 -->
<escortScale>0.6</escortScale>
<useParentRotation>true</useParentRotation>
</li>
</comps>
</ThingDef>
<ThingDef Parent="EtherealThingBase">
<defName>ARA_HiveCorvette</defName>
<label>天巫虫巢舰</label>
<thingClass>ArachnaeSwarm.FlyOver</thingClass>
<tickerType>Normal</tickerType>
<drawerType>RealtimeOnly</drawerType>
<graphicData>
<!-- <texPath>ArachnaeSwarm/Weapon/ARA_Weapon_Empty</texPath> -->
<texPath>ArachnaeSwarm/FlyOverThing/ARA_HiveShip_Shadow</texPath>
<graphicClass>Graphic_Single</graphicClass>
<shaderType>TransparentPostLight</shaderType>
<drawSize>(20,30)</drawSize>
<color>(195,195,195,45)</color>
</graphicData>
<skyfaller>
<shadowSize>(0, 0)</shadowSize>
<motesPerCell>0</motesPerCell>
<floatingSound>FlyOver/Flying</floatingSound>
<impactSound>FlyOver/Landing</impactSound>
</skyfaller>
<modExtensions>
<li Class="ArachnaeSwarm.FlyOverShadowExtension">
<customShadowPath>ArachnaeSwarm/FlyOverThing/ARA_HiveShip_Shadow</customShadowPath>
<useCustomShadow>false</useCustomShadow>
<!-- <shadowIntensity>0.8</shadowIntensity>
<minShadowAlpha>0</minShadowAlpha>
<maxShadowAlpha>0</maxShadowAlpha>
<minShadowScale>15</minShadowScale>
<maxShadowScale>15</maxShadowScale> -->
</li>
</modExtensions>
<useHitPoints>false</useHitPoints>
<selectable>false</selectable>
<alwaysHaulable>false</alwaysHaulable>
<altitudeLayer>FogOfWar</altitudeLayer>
</ThingDef>
<ThingDef ParentName="SkyfallerBase">
<defName>ARA_HiveShip_Fire_Incoming</defName>
@@ -140,6 +207,12 @@
<explosionDamage>ARA_AcidBurn</explosionDamage>
<explosionDamageFactor>0.5</explosionDamageFactor>
<cameraShake>1</cameraShake>
<angleCurve>
<points>
<li>(0,0)</li>
<li>(1,-1)</li>
</points>
</angleCurve>
</skyfaller>
</ThingDef>
</Defs>