如题,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
附上相关代码
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