本帖最后由 mrf 于 2021-7-11 11:56 编辑
在护卫舰的protoy里,有一个关于侧舷齐射的定义:
- <protoaction>
- <name>BroadsideAttack</name>
- <damage>55.000000</damage>
- <damagetype>Siege</damagetype>
- <maxrange>38.000000</maxrange>
- <rof>0.050000</rof>
- <damagecap>80.000000</damagecap>
- <damagebonus type="Ship">2.000000</damagebonus>
- <damagearea>1.000000</damagearea>
- <damageflags>GAIAEnemy</damageflags>
- </protoaction>
复制代码 这里的rof是0.05。 在tactics里面,rof变成了3:- <action>
- <name stringid="38123">BroadsideAttack</name>
- <type>BroadsideAttack</type>
- <attackaction>1</attackaction>
- <rangedlogic>1</rangedlogic>
- <anim>Idle</anim>
- <idleanim>Idle</idleanim>
- <projectile>Cannonball</projectile>
- <numberprojectiles>1</numberprojectiles>
- <impacteffect>effects\impacts\cannon</impacteffect>
- <accuracy>1.0</accuracy>
- <maxheight>0</maxheight>
- <accuracyreductionfactor>0.01</accuracyreductionfactor>
- <aimbonus>5</aimbonus>
- <rof>3</rof>
- <rate type="All">1.0 </rate>
- <areasortmode>Directional</areasortmode>
- <targetground>1</targetground>
- <basedamagecap>1</basedamagecap>
- </action>
复制代码 在powers.xml中,是这样定义的:
- <power name="PowerBroadside" type="UnitAction">
- <displaynameid>32910</displaynameid>
- <rolloverid>32911</rolloverid>
- <icon>resources\images\icons\command\mode_broadside.png</icon>
- <minimapeventtime sendalertto="player">1</minimapeventtime>
- <activetime>5</activetime>
- <radius>10.0</radius>
- <placement forceonmap="1" enemy="" allowgaia="">unit</placement>
- <abstractattacktargettype>LogicalTypeRangedUnitsAttack</abstractattacktargettype>
- <unitaction>BroadsideAttack</unitaction>
- </power>
复制代码 这里activetime是5,如果这代表着作用时间,那么侧舷齐射应该会发射5/0.05=100枚炮弹,但是这个显然是不现实的,伤害过于恐怖(55*100=5500,对船8000)。所以我想知道这里面的语句都是什么作用。 另外,在frigate.xml中,并没有任何开火声音的定义,那开炮时的声音又是怎么来的呀……我一看art文件就头疼……望大神不吝赐教
|