找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1725|回复: 2

[我解决不了自己的问题] 自制组合超武概率弹框问题

[复制链接]
发表于 2025-2-5 14:48:39 | 显示全部楼层 |阅读模式
超武名称:全面核打击
超武效果:在目标位置周围快速发射30枚核弹
基本原理:通过UnitDelivery在目标位置投放GATGT建筑,通过GATGT限定范围,使用一个30发1s冷却的超武核弹通过LightlingRandom在GATGT范围内随机自动发射
问题:未知情况下,在核打击过程中会弹框
ini如下
  1. [CNSSpecial]
  2. UIName=Name:CNS
  3. Name=Comprehensive Nuclear Strike
  4. FlashSidebarTabFrames=1
  5. IsPowered=no
  6. RechargeVoice=
  7. ChargingVoice=
  8. ImpatientVoice=
  9. SuspendVoice=
  10. RechargeTime=1
  11. Type=UnitDelivery
  12. Action=Custom
  13. SidebarImage=NukeIcon
  14. ShowTimer=yes
  15. DisableableFromShell=no ; gs this determines which superweapons are turned off by the checkbox
  16. AIDefendAgainst=yes;AI will use AISuperDefense system to decide to block this
  17. Range=17
  18. LineMultiplier=5
  19. SW.Shots=1
  20. SW.InitialReady=yes
  21. SW.AlwaysGranted=yes                                         ; Beta Version
  22. Cursor=Nuke
  23. SW.ActivationSound=NukeSiren
  24. SW.AITargeting=Nuke
  25. EVA.Activated=EVA_NuclearMissileLaunched
  26. SW.CreateRadarEvent=yes
  27. Deliver.Types=GATGT
  28. SW.Deferment=0
  29. SW.AllowAI=no
  30. SW.TimerVisibility=owner
  31. UIDescription=EXP:CNS

  32. [CNSSingleSpecial] ; Use Nuke around NATGT in 30 Nukes
  33. UIName=Name:CNSSingle
  34. Name=Single Nuke in CNS
  35. IsPowered=no
  36. RechargeVoice=
  37. ChargingVoice=
  38. ImpatientVoice=
  39. SuspendVoice=
  40. RechargeTime=0.0165
  41. SW.Shots=30
  42. Type=MultiMissile
  43. SidebarImage=NukeIcon
  44. Action=Custom
  45. WeaponType=NukeCarrier
  46. ShowTimer=no
  47. DisableableFromShell=no ; gs this determines which superweapons are turned off by the checkbox
  48. AIDefendAgainst=no;AI will use AISuperDefense system to decide to block this
  49. Range=7
  50. LineMultiplier=2
  51. SW.ActivationSound=none
  52. EVA.Detected=none
  53. EVA.Ready=none
  54. EVA.Activated=none
  55. SW.AlwaysGranted=yes
  56. SW.Designators=GATGT
  57. SW.AITargeting=LightningRandom
  58. SW.AutoFire=yes
  59. SW.ManualFire=no
  60. SW.CreateRadarEvent=yes
  61. SW.ShowCameo=no
  62. Nuke.SiloLaunch=no
  63. SW.CreateRadarEvent=yes

  64. [CNSCeasedSpecial]
  65. UIName=Name:CNS
  66. Name=Cease CNS
  67. IsPowered=no
  68. RechargeTime=.76 ; 0.5 minute for Phobos Logic To Avoid Probably Exception
  69. Type=GenericWarhead
  70. Action=Custom
  71. ShowTimer=no
  72. DisableableFromShell=no
  73. Range=1
  74. LineMultiplier=0
  75. Cursor=EMPuls
  76. NoCursor=NoCanDo
  77. SW.FireIntoShroud=yes
  78. EVA.Ready=none
  79. EVA.Detected=none
  80. EVA.Activated=none
  81. SW.Warhead=CNSWH
  82. SW.Damage=1
  83. SW.Deferment=0
  84. SW.Sound=none
  85. SW.AutoFire=yes
  86. SW.ShowCameo=no
  87. SW.ManualFire=no
  88. SW.AITargeting=self
  89. SW.AffectsHouse=owner
  90. SW.CreateRadarEvent=no
  91. FlashSidebarTabFrames=1
  92. SidebarImage=NukeIcon
  93. ; SW.TimerVisibility=owner

  94. [CNSCeasedTimer]
  95. UIName=Name:CNS
  96. Name=Cease CNS
  97. IsPowered=no
  98. RechargeTime=.501
  99. Type=GenericWarhead
  100. Action=Custom
  101. ShowTimer=yes
  102. DisableableFromShell=no
  103. Range=1
  104. LineMultiplier=0
  105. Cursor=EMPuls
  106. NoCursor=NoCanDo
  107. SW.FireIntoShroud=yes
  108. EVA.Ready=none
  109. EVA.Detected=none
  110. EVA.Activated=none
  111. SW.Warhead=CNSWH
  112. SW.Damage=0
  113. SW.Deferment=0
  114. SW.Sound=none
  115. SW.AutoFire=no
  116. SW.ShowCameo=no
  117. SW.ManualFire=no
  118. SW.AITargeting=none
  119. SW.AffectsHouse=owner
  120. SW.CreateRadarEvent=no
  121. FlashSidebarTabFrames=1
  122. SidebarImage=NukeIcon
  123. ; SW.TimerVisibility=owner

  124. [GATGT] ; Target Out Our Nuke Range
  125. UIName=Name:CNS
  126. Name=Nuke Targeter
  127. ; Image=gghunt
  128. HealthBar.Hide=yes
  129. PixelSelectionBracketDelta=-9999
  130. BuildCat=Combat
  131. Strength=1
  132. Armor=CNS
  133. TechLevel=-1
  134. Adjacent=0
  135. Sight=0
  136. Owner=Russians,Confederation,Africans,Arabs,British,French,Germans,Americans,Alliance,YuriCountry
  137. AIBasePlanningSide=2
  138. EMPulseCannon=yes
  139. DamageSelf=yes
  140. SuperWeapons=CNSCeasedTimer;,CNSCeasedSpecial;,CNSSingleSpecial ; Phobos don't need CNSCeasedSpecial
  141. IronCurtain.Modifier=0
  142. ForceShield.Modifier=0
  143. AIBuildThis=no
  144. Points=0
  145. Power=0
  146. IsPassable=yes
  147. Crewed=no
  148. Capturable=no
  149. Overpowerable=no
  150. Explosion=DUMMY
  151. Turret=no
  152. MaxDebris=0
  153. MinDebris=0
  154. ThreatPosed=0
  155. Unsellable=no
  156. Powered=no
  157. BaseNormal=no
  158. ClickRepairable=no
  159. Repairable=no
  160. ImmuneToPsionics=yes
  161. BuildingDieSound=Dummy
  162. Drainable=no
  163. Trainable=no
  164. Selectable=no
  165. AIBaseNormal=no
  166. IsSelectableCombatant=no
  167. Insignia.Veteran=dummy
  168. Insignia.Elite=dummy
  169. Insignificant=yes
  170. Chronoshift.Allow=no
  171. RadarInvisible=yes
  172. PlaceAnywhere=yes
  173. DesignatorRange=10
  174. Cloakable=yes
  175. CloakingSpeed=10
  176. ; Phobos Logic
  177. AutoDeath.Behavior=vanish
  178. AutoDeath.AfterDelay=675 ; 30*15 + 15*15

  179. [CNSWH] ; Timer Warhead
  180. CellSpread=3
  181. PercentAtMax=1
  182. Wall=no
  183. Wood=no
  184. Verses=0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%
  185. Versus.CNS=150%
  186. Conventional=no
  187. InfDeath=3
  188. AffectsAllies=yes
  189. AffectsEnemies=no
复制代码
发表于 2025-2-5 17:12:01 | 显示全部楼层
`PlaceAnywhere=yes`会导致建筑重叠,重叠的建筑其中一个死了就会弹窗
回复

使用道具 举报

 楼主| 发表于 2025-2-5 18:15:44 | 显示全部楼层
航味麻酱 发表于 2025-2-5 17:12
`PlaceAnywhere=yes`会导致建筑重叠,重叠的建筑其中一个死了就会弹窗

谢谢!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|手机版|管理员邮箱|红警DIY论坛 |网站地图

GMT+8, 2026-7-16 13:23 , Processed in 0.065497 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表