铁锈战争模组和地图制作帮助文档

抛射体

在铁锈战争中,抛射体是攻击系统的重要组成部分。本章节将详细介绍如何配置抛射体,包括伤害、运动、效果等。

抛射体基本配置

抛射体通过[projectile_#]部分来定义,其中#是抛射体的编号:

[projectile_#] 抛射体设置

[projectile_1]
directDamage:50
life:60
speed:10
image:projectiles/bullet.png
drawType:1
color:#FF0000
            

抛射体基本属性说明

属性 说明 示例
directDamage 直接伤害值 directDamage:50
life 存在时间(帧) life:60
speed 移动速度 speed:10
image 抛射体图像 image:projectiles/bullet.png
drawType 绘制类型 drawType:1
color 颜色 color:#FF0000

抛射体伤害设置

可以配置抛射体的伤害类型和范围:

伤害属性

[projectile_1]
directDamage:100
areaDamage:50
areaRadius:30
areaDamageNoFalloff:true
areaRadiusFromEdge:true
            

伤害属性说明

属性 说明 示例
directDamage 直接伤害值 directDamage:100
areaDamage 范围伤害值 areaDamage:50
areaRadius 范围半径 areaRadius:30
areaDamageNoFalloff 范围伤害不衰减 areaDamageNoFalloff:true
areaRadiusFromEdge 范围伤害从边缘计算 areaRadiusFromEdge:true

抛射体运动设置

可以配置抛射体的运动方式:

运动属性

[projectile_1]
targetGround:true
targetGroundSpread:15
speed:8
targetSpeed:12
targetSpeedAcceleration:1
ballistic:true
ballistic_height:20
            

运动属性说明

属性 说明 示例
targetGround 目标为地面 targetGround:true
targetGroundSpread 目标为地面散布 targetGroundSpread:15
speed 速度 speed:8
targetSpeed 到达速度 targetSpeed:12
targetSpeedAcceleration 加速度 targetSpeedAcceleration:1
ballistic 弹道 ballistic:true
ballistic_height 弹道高度 ballistic_height:20

抛射体特殊效果

可以为抛射体添加特殊效果:

特殊效果属性

[projectile_1]
instant:true
instantReuseLast:true
disableLeadTargeting:true
wobbleAmplitude:0.2
wobbleFrequency:0.8
pushForce:2
            

特殊效果属性说明

属性 说明 示例
instant 瞬间命中 instant:true
instantReuseLast 瞬间命中回收最后抛射体 instantReuseLast:true
disableLeadTargeting 禁用预判 disableLeadTargeting:true
wobbleAmplitude 摆动幅度 wobbleAmplitude:0.2
wobbleFrequency 摆动频率 wobbleFrequency:0.8
pushForce 推动力量 pushForce:2

抛射体生成设置

可以设置抛射体生成其他抛射体:

生成属性

[projectile_1]
spawnProjectilesOnEndOfLife:secondary_explosion
spawnProjectilesOnExplode:fragment*3
spawnProjectilesOnCreate:tracer
            

生成属性说明

属性 说明 示例
spawnProjectilesOnEndOfLife 在寿命结束时生成抛射体 spawnProjectilesOnEndOfLife:secondary_explosion
spawnProjectilesOnExplode 在爆炸时生成抛射体 spawnProjectilesOnExplode:fragment*3
spawnProjectilesOnCreate 在创建时生成抛射体 spawnProjectilesOnCreate:tracer

抛射体图形和效果

可以设置抛射体的图形和视觉效果:

图形和效果属性

[projectile_1]
color:#FF0000
teamColorRatio:0.5
invisible:false
drawSize:1.5
frame:2
hitSound:true
explodeEffect:largeExplosion
            

图形和效果属性说明

属性 说明 示例
color 颜色 color:#FF0000
teamColorRatio 阵营色色相 teamColorRatio:0.5
invisible 隐藏 invisible:false
drawSize 绘制大小 drawSize:1.5
frame frame:2
hitSound 命中音效 hitSound:true
explodeEffect 爆炸效果 explodeEffect:largeExplosion

抛射体尾焰和光照

可以为抛射体添加尾焰和光照效果:

尾焰和光照属性

[projectile_1]
trailEffect:true
trailEffectRate:3
lightSize:2
lightColor:#FF4500
lightCastOnGround:true
largeHitEffect:true
            

尾焰和光照属性说明

属性 说明 示例
trailEffect 尾焰 trailEffect:true
trailEffectRate 尾焰频率 trailEffectRate:3
lightSize 闪光大小 lightSize:2
lightColor 闪光颜色 lightColor:#FF4500
lightCastOnGround 闪光映射到地面 lightCastOnGround:true
largeHitEffect 大的打击效果 largeHitEffect:true

抛射体激光和光束效果

可以设置抛射体的激光和光束效果:

激光和光束属性

[projectile_1]
lightingEffect:true
laserEffect:true
beamImage:laser_beam.png
beamImageOffsetRate:0.5
            

激光和光束属性说明

属性 说明 示例
lightingEffect 闪电效果 lightingEffect:true
laserEffect 激光效果 laserEffect:true
beamImage 波束图像 beamImage:laser_beam.png
beamImageOffsetRate 波束偏移频率 beamImageOffsetRate:0.5

完整抛射体示例

标准子弹

[projectile_1]
directDamage:25
life:30
speed:15
image:projectiles/bullet.png
drawType:1
color:#FFFF00
trailEffect:true
trailEffectRate:2
lightSize:1
lightColor:#FFFF00

[projectile_secondary_tracer]
directDamage:0
life:30
speed:15
image:projectiles/tracer.png
drawType:1
color:#00FF00
            

炮弹

[projectile_2]
directDamage:100
life:120
speed:6
image:projectiles/shell.png
drawType:1
color:#FF4500
areaDamage:50
areaRadius:40
ballistic:true
ballistic_height:15
explodeEffect:largeExplosion
largeHitEffect:true
lightSize:3
lightColor:#FF4500
            

导弹

[projectile_3]
directDamage:80
life:150
speed:4
targetSpeed:10
targetSpeedAcceleration:0.5
image:projectiles/missile.png
drawType:2
color:#00FF00
targetGround:false
autoTargetingOnDeadTarget:true
turnSpeed:2
trailEffect:true
trailEffectRate:4
lightSize:2
lightColor:#00FF00

[projectile_fragment]
directDamage:20
life:30
speed:8
image:projectiles/fragment.png
drawType:1
color:#00FF00
            

激光

[projectile_4]
directDamage:50
life:1
instant:true
instantReuseLast:true
image:projectiles/laser.png
color:#00FFFF
laserEffect:true
beamImage:laser_beam.png
beamImageOffsetRate:1
lightSize:1
lightColor:#00FFFF
            

注意事项

回到顶部