绝命时刻吧 关注:21,128贴子:401,226
  • 5回复贴,共1

请教各位,新加超级武器无法释放

只看楼主收藏回复

昨天晚上研究俩小时,刚才又研究一个多小时,实在是搞不明白了
我是希望给中国新加一个空投集束中子地雷的超武
《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关联起来,求大佬指教


IP属地:广东1楼2023-11-27 14:28回复
    而且我还发现有时候会出现两个,但是一个释放另一个也会开始倒计时,就像粘在一起的一样


    IP属地:广东2楼2023-11-27 14:42
    回复
      为何放机场?不放指挥中心?


      IP属地:广东来自Android客户端3楼2023-11-27 16:19
      收起回复
        你指挥中心里边没放控制这个将军技能的代码,去复制个空投地雷的代码段然后把将军技能和ocl创造物体全改成你自己的就行了。至于后边的两个技能那是共用了一个计时器,去specialpower里边把那个sharedtimer这个改成no


        IP属地:河南来自Android客户端4楼2023-11-28 01:41
        收起回复