昨天晚上研究俩小时,刚才又研究一个多小时,实在是搞不明白了
我是希望给中国新加一个空投集束中子地雷的超武
《CommandButten》里写了
CommandButton Command_EMPPulseFromShortcut;侧边栏启动
Command = SPECIAL_POWER_FROM_SHORTCUT
SpecialPower = SuperweaponEMPClusterMines
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = OBJECT:ClusterMinesBomb
ButtonImage = SAHummer
;ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipEMPPulse
RadiusCursorType = CLUSTERMINES
InvalidCursorName = GenericInvalid
End
《SpecialPower.ini》里也写了
SpecialPower SuperweaponEMPClusterMines
Enum = SPECIAL_CLUSTER_MINES
ReloadTime = 5000;240000 ; in milliseconds
; RequiredScience = SCIENCE_ClusterMines
PublicTimer = No
SharedSyncedTimer = Yes
ViewObjectDuration = 30000
ViewObjectRange = 250
RadiusCursorRadius = 100
ShortcutPower = Yes ;Capable of being fired by the side-bar shortcut.
AcademyClassify = ACT_SUPERPOWER ;Considered a powerful special power that a player could fire. Not for simpler unit based powers.
End
然后《ObjectCreationList 》里也写了
ObjectCreationList SUPERWEAPON_EMPClusterMines
DeliverPayload
Transport = ChinaJetCargoPlane
StartAtPreferredHeight = Yes
StartAtMaxSpeed = Yes
MaxAttempts = 4
DropOffset = X:0 Y:0 Z:-2
DropVariance = X:20 Y:20 Z:0
Payload = ChinaEMPMine 10
DeliveryDistance = 140
DeliveryDecalRadius = 100
DeliveryDecal
Texture = SCCClusterMines_China
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:255 G:156 B:0 A:255
OnlyVisibleToOwningPlayer = Yes
End
End
End
。。。。。。以上都是昨天搞的,结果不能使用,可以点击图标但挪到地图的时候就变成了红色⚪中间一个×,点不下去,刚才又试着给中国飞机添加
Behavior = OCLSpecialPower ModuleTag_12
SpecialPowerTemplate = SuperweaponEMPClusterMines
OCL = SUPERWEAPON_EMPClusterMines
CreateLocation = USE_OWNER_OBJECT
ScriptedSpecialPowerOnly = Yes
End
然而还是不能用,总感觉是少了点什么,没有把哪两个INI关联起来,求大佬指教
我是希望给中国新加一个空投集束中子地雷的超武
《CommandButten》里写了
CommandButton Command_EMPPulseFromShortcut;侧边栏启动
Command = SPECIAL_POWER_FROM_SHORTCUT
SpecialPower = SuperweaponEMPClusterMines
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = OBJECT:ClusterMinesBomb
ButtonImage = SAHummer
;ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipEMPPulse
RadiusCursorType = CLUSTERMINES
InvalidCursorName = GenericInvalid
End
《SpecialPower.ini》里也写了
SpecialPower SuperweaponEMPClusterMines
Enum = SPECIAL_CLUSTER_MINES
ReloadTime = 5000;240000 ; in milliseconds
; RequiredScience = SCIENCE_ClusterMines
PublicTimer = No
SharedSyncedTimer = Yes
ViewObjectDuration = 30000
ViewObjectRange = 250
RadiusCursorRadius = 100
ShortcutPower = Yes ;Capable of being fired by the side-bar shortcut.
AcademyClassify = ACT_SUPERPOWER ;Considered a powerful special power that a player could fire. Not for simpler unit based powers.
End
然后《ObjectCreationList 》里也写了
ObjectCreationList SUPERWEAPON_EMPClusterMines
DeliverPayload
Transport = ChinaJetCargoPlane
StartAtPreferredHeight = Yes
StartAtMaxSpeed = Yes
MaxAttempts = 4
DropOffset = X:0 Y:0 Z:-2
DropVariance = X:20 Y:20 Z:0
Payload = ChinaEMPMine 10
DeliveryDistance = 140
DeliveryDecalRadius = 100
DeliveryDecal
Texture = SCCClusterMines_China
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:255 G:156 B:0 A:255
OnlyVisibleToOwningPlayer = Yes
End
End
End
。。。。。。以上都是昨天搞的,结果不能使用,可以点击图标但挪到地图的时候就变成了红色⚪中间一个×,点不下去,刚才又试着给中国飞机添加
Behavior = OCLSpecialPower ModuleTag_12
SpecialPowerTemplate = SuperweaponEMPClusterMines
OCL = SUPERWEAPON_EMPClusterMines
CreateLocation = USE_OWNER_OBJECT
ScriptedSpecialPowerOnly = Yes
End
然而还是不能用,总感觉是少了点什么,没有把哪两个INI关联起来,求大佬指教