Files
WulaFallenEmpireRW/Documentation/ExplosiveBeamWeapons/示例武器.md

262 lines
7.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 爆炸射线武器示例
本文档展示了不同类型的爆炸射线武器配置示例,涵盖各种使用场景。
## 基础示例
### 1. 简单爆炸射线
最基础的爆炸射线武器配置:
```xml
<verbs>
<li Class="WulaFallenEmpire.VerbPropertiesExplosiveBeam">
<verbClass>WulaFallenEmpire.Verb_ShootBeamExplosive</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<range>25</range>
<burstShotCount>3</burstShotCount>
<beamWidth>2</beamWidth>
<beamDamageDef>Burn</beamDamageDef>
<!-- 爆炸配置 -->
<enableExplosion>true</enableExplosion>
<explosionShotInterval>1</explosionShotInterval>
<explosionRadius>2.0</explosionRadius>
<explosionDamageDef>Bomb</explosionDamageDef>
<explosionDamage>20</explosionDamage>
</li>
</verbs>
```
## 进阶示例
### 2. 延迟爆炸射线
每3发触发一次大威力爆炸
```xml
<verbs>
<li Class="WulaFallenEmpire.VerbPropertiesExplosiveBeam">
<verbClass>WulaFallenEmpire.Verb_ShootBeamExplosive</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<warmupTime>0.8</warmupTime>
<range>30</range>
<burstShotCount>9</burstShotCount>
<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
<beamWidth>3</beamWidth>
<beamDamageDef>Stun</beamDamageDef>
<!-- 延迟爆炸配置 -->
<enableExplosion>true</enableExplosion>
<explosionShotInterval>3</explosionShotInterval>
<explosionRadius>3.5</explosionRadius>
<explosionDamageDef>Bomb</explosionDamageDef>
<explosionDamage>40</explosionDamage>
<explosionArmorPenetration>0.5</explosionArmorPenetration>
<explosionSound>Explosion_Bomb</explosionSound>
<chanceToStartFire>0.4</chanceToStartFire>
</li>
</verbs>
```
### 3. 火焰爆炸射线
专注于点燃和火焰伤害:
```xml
<verbs>
<li Class="WulaFallenEmpire.VerbPropertiesExplosiveBeam">
<verbClass>WulaFallenEmpire.Verb_ShootBeamExplosive</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<range>28</range>
<burstShotCount>6</burstShotCount>
<beamWidth>2.5</beamWidth>
<beamDamageDef>Flame</beamDamageDef>
<!-- 火焰爆炸配置 -->
<enableExplosion>true</enableExplosion>
<explosionShotInterval>2</explosionShotInterval>
<explosionRadius>2.8</explosionRadius>
<explosionDamageDef>Flame</explosionDamageDef>
<explosionDamage>25</explosionDamage>
<explosionSound>Explosion_Fire</explosionSound>
<chanceToStartFire>0.8</chanceToStartFire>
<postExplosionSpawnThingDef>Filth_Fuel</postExplosionSpawnThingDef>
<postExplosionSpawnChance>0.3</postExplosionSpawnChance>
<postExplosionSpawnThingCount>3</postExplosionSpawnThingCount>
</li>
</verbs>
```
## 特殊效果示例
### 4. 毒气爆炸射线
产生毒气云的射线武器:
```xml
<verbs>
<li Class="WulaFallenEmpire.VerbPropertiesExplosiveBeam">
<verbClass>WulaFallenEmpire.Verb_ShootBeamExplosive</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<range>26</range>
<burstShotCount>4</burstShotCount>
<beamWidth>2</beamWidth>
<beamDamageDef>ToxGas</beamDamageDef>
<!-- 毒气爆炸配置 -->
<enableExplosion>true</enableExplosion>
<explosionShotInterval>2</explosionShotInterval>
<explosionRadius>3.0</explosionRadius>
<explosionDamageDef>ToxGas</explosionDamageDef>
<explosionDamage>18</explosionDamage>
<explosionSound>Explosion_Gas</explosionSound>
<postExplosionGasType>ToxGas</postExplosionGasType>
<chanceToStartFire>0.1</chanceToStartFire>
</li>
</verbs>
```
### 5. 冰冻爆炸射线
造成冰冻效果的射线武器:
```xml
<verbs>
<li Class="WulaFallenEmpire.VerbPropertiesExplosiveBeam">
<verbClass>WulaFallenEmpire.Verb_ShootBeamExplosive</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<range>24</range>
<burstShotCount>5</burstShotCount>
<beamWidth>2.2</beamWidth>
<beamDamageDef>Frostbite</beamDamageDef>
<!-- 冰冻爆炸配置 -->
<enableExplosion>true</enableExplosion>
<explosionShotInterval>2</explosionShotInterval>
<explosionRadius>2.5</explosionRadius>
<explosionDamageDef>Frostbite</explosionDamageDef>
<explosionDamage>22</explosionDamage>
<explosionSound>Explosion_Ice</explosionSound>
<chanceToStartFire>0.0</chanceToStartFire>
<postExplosionSpawnThingDef>Filth_Water</postExplosionSpawnThingDef>
<postExplosionSpawnChance>0.4</postExplosionSpawnChance>
</li>
</verbs>
```
## 高级配置示例
### 6. 多效果爆炸射线
结合多种效果的复杂武器:
```xml
<verbs>
<li Class="WulaFallenEmpire.VerbPropertiesExplosiveBeam">
<verbClass>WulaFallenEmpire.Verb_ShootBeamExplosive</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<warmupTime>1.2</warmupTime>
<range>35</range>
<burstShotCount>12</burstShotCount>
<ticksBetweenBurstShots>4</ticksBetweenBurstShots>
<beamWidth>4</beamWidth>
<beamDamageDef>Bomb</beamDamageDef>
<!-- 复合爆炸配置 -->
<enableExplosion>true</enableExplosion>
<explosionShotInterval>4</explosionShotInterval>
<explosionRadius>4.0</explosionRadius>
<explosionDamageDef>Bomb</explosionDamageDef>
<explosionDamage>50</explosionDamage>
<explosionArmorPenetration>0.6</explosionArmorPenetration>
<explosionSound>Explosion_Bomb</explosionSound>
<!-- 多重后续效果 -->
<chanceToStartFire>0.5</chanceToStartFire>
<postExplosionSpawnThingDef>Filth_Fuel</postExplosionSpawnThingDef>
<postExplosionSpawnChance>0.3</postExplosionSpawnChance>
<postExplosionSpawnThingCount>4</postExplosionSpawnThingCount>
<preExplosionSpawnThingDef>Mote_ExplosionFlash</preExplosionSpawnThingDef>
<preExplosionSpawnChance>1.0</preExplosionSpawnChance>
<postExplosionGasType>BlindSmoke</postExplosionGasType>
</li>
</verbs>
```
### 7. 精确爆炸射线
高精度、低频率爆炸的狙击型武器:
```xml
<verbs>
<li Class="WulaFallenEmpire.VerbPropertiesExplosiveBeam">
<verbClass>WulaFallenEmpire.Verb_ShootBeamExplosive</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<warmupTime>2.0</warmupTime>
<range>45</range>
<burstShotCount>1</burstShotCount>
<beamWidth>1</beamWidth>
<beamDamageDef>Bullet</beamDamageDef>
<beamMaxDeviation>0.05</beamMaxDeviation>
<!-- 精确爆炸配置 -->
<enableExplosion>true</enableExplosion>
<explosionShotInterval>1</explosionShotInterval>
<explosionRadius>2.2</explosionRadius>
<explosionDamageDef>Bomb</explosionDamageDef>
<explosionDamage>60</explosionDamage>
<explosionArmorPenetration>0.8</explosionArmorPenetration>
<explosionSound>Explosion_Sharp</explosionSound>
<damageFalloff>false</damageFalloff>
</li>
</verbs>
```
## 平衡性考虑
### 轻型武器平衡
- 爆炸半径1.5-2.5
- 爆炸伤害15-25
- 射击间隔1-2发
- 成本:低-中等
### 中型武器平衡
- 爆炸半径2.5-3.5
- 爆炸伤害25-40
- 射击间隔2-3发
- 成本:中等-高
### 重型武器平衡
- 爆炸半径3.5-5.0
- 爆炸伤害40-70
- 射击间隔3-5发
- 成本:高-极高
## 使用建议
### 1. 近战防御武器
```xml
<!-- 短射程、高爆炸频率 -->
<range>15</range>
<explosionShotInterval>1</explosionShotInterval>
<explosionRadius>3.0</explosionRadius>
```
### 2. 中距离支援武器
```xml
<!-- 中等射程、适中爆炸频率 -->
<range>28</range>
<explosionShotInterval>2</explosionShotInterval>
<explosionRadius>2.5</explosionRadius>
```
### 3. 远程狙击武器
```xml
<!-- 长射程、低爆炸频率、高威力 -->
<range>40</range>
<explosionShotInterval>1</explosionShotInterval>
<explosionRadius>2.0</explosionRadius>
<explosionDamage>50</explosionDamage>
```
### 4. 区域控制武器
```xml
<!-- 大范围、特殊效果 -->
<explosionRadius>4.0</explosionRadius>
<postExplosionGasType>BlindSmoke</postExplosionGasType>
<chanceToStartFire>0.6</chanceToStartFire>
```