绝命时刻吧 关注:21,139贴子:401,258
  • 2回复贴,共1

[INI修改求教]是否有办法让飞机的不同弹药共享弹药量

只看楼主收藏回复

如题,LZ尝试用游骑兵的逻辑给米格加上了切换导弹种类的按钮,主武器射燃烧弹副武器射核导弹,发现副武器发射完不会正常消耗弹药,飞机会在天上乱飞,只有主武器射完才会正常消耗弹药并返航。
附上相关代码
WeaponSet
Conditions = None
Weapon = PRIMARY NapalmMissileWeapon
Weapon = SECONDARY Nuke_MiGMissileWeapon
AutoChooseSources = PRIMARY FROM_SCRIPT FROM_AI DEFAULT_SWITCH_WEAPON
AutoChooseSources = SECONDARY FROM_SCRIPT FROM_AI
WeaponLockSharedAcrossSets = Yes ; This set is so similar to the default set that it can hold the weapon lock
ShareWeaponReloadTime = Yes
End
WeaponSet
Conditions = PLAYER_UPGRADE
Weapon = PRIMARY BlackNapalmMissileWeapon
Weapon = SECONDARY Nuke_NukeMissileWeapon
AutoChooseSources = PRIMARY FROM_SCRIPT FROM_AI DEFAULT_SWITCH_WEAPON
AutoChooseSources = SECONDARY FROM_SCRIPT FROM_AI
WeaponLockSharedAcrossSets = Yes ; This set is so similar to the default set that it can hold the weapon lock
ShareWeaponReloadTime = Yes
End
commandbutton.ini的代码
CommandButton Boss_Command_MigSwitchToNapalm
Command = SWITCH_WEAPON
WeaponSlot = PRIMARY
Options = CHECK_LIKE OK_FOR_MULTI_SELECT
; TextLabel = CONTROLBAR:RangerMachineGun
ButtonImage = SSBlackNapalm
ButtonBorderType = ACTION
; DescriptLabel = CONTROLBAR:ToolTipSwitchToRangerMachineGun
End
CommandButton Boss_Command_MigSwitchToNuke
Command = SWITCH_WEAPON
WeaponSlot = SECONDARY
Options = CHECK_LIKE OK_FOR_MULTI_SELECT NEED_UPGRADE
; TextLabel = CONTROLBAR:FlashBangGrenadeMode
ButtonImage = SSMigNuke
ButtonBorderType = ACTION
; DescriptLabel = CONTROLBAR:ToolTipSwitchToUSAFlashBang
End


IP属地:广东1楼2024-01-31 18:20回复
    修正,刚刚测试的结果是两种弹药似乎会独立计算,只要一种没有打完就不会判定需要回机场补充弹药


    IP属地:广东2楼2024-01-31 18:24
    回复

      如图即为核导弹发射完而燃烧弹尚未发射


      IP属地:广东3楼2024-01-31 18:28
      回复