IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Modding Help, Basic
TheViking92
post 25 Apr 2018, 15:24
Post #1



Group Icon

Group: Members
Posts: 102
Joined: 13 December 2017
From: Caracas, Venezuela
Member No.: 16469



Hi guys!

How do I make a unit not shoot all its weapons at the same time?

I am modifying a helicopter and it has Missiles and RocketPod Upgrade.
When I send him to attack, he fires his rockets with the missiles at the same time ...

What should I do?
Go to the top of the page
 
+Quote Post
Omeka88
post 25 Apr 2018, 16:10
Post #2



Group Icon

Group: Members
Posts: 48
Joined: 14 July 2017
From: Roma
Member No.: 15601



depend on the result you want

anyway some option:

1) set the weapon set like this :

WeaponSet
Conditions = NONE
Weapon = PRIMARY Minigun
Weapon = SECONDARY Missiles
PreferredAgainst = SECONDARY STRUCTURE , force the unit to use missile only vs bulding , but use the minigin during the reload time
End

2) A manual Weapon Switc like the scud launcer\nuke cannon

need more unit management but force unit to use only 1 weapon

3) Like The America Comance roket pod , like metod 2 need more unit management


--------------------
Go to the top of the page
 
+Quote Post
TheViking92
post 25 Apr 2018, 16:43
Post #3



Group Icon

Group: Members
Posts: 102
Joined: 13 December 2017
From: Caracas, Venezuela
Member No.: 16469



QUOTE (Omeka88 @ 25 Apr 2018, 11:10) *
depend on the result you want

anyway some option:

1) set the weapon set like this :

WeaponSet
Conditions = NONE
Weapon = PRIMARY Minigun
Weapon = SECONDARY Missiles
PreferredAgainst = SECONDARY STRUCTURE , force the unit to use missile only vs bulding , but use the minigin during the reload time
End

2) A manual Weapon Switc like the scud launcer\nuke cannon

need more unit management but force unit to use only 1 weapon

3) Like The America Comance roket pod , like metod 2 need more unit management


I have it configured in the following way:
WeaponSet
Conditions = None
Weapon = PRIMARY ApacheHellfireMissileWeapon
PreferredAgainst = PRIMARY VEHICLE
End

WeaponSet
Conditions = PLAYER_UPGRADE
Weapon = PRIMARY ApacheHellfireMissileWeaponUP
PreferredAgainst = PRIMARY VEHICLE
Weapon = TERTIARY CobraRocketPodWeapon
AutoChooseSources = TERTIARY NONE
End
Go to the top of the page
 
+Quote Post
Omeka88
post 27 Apr 2018, 16:49
Post #4



Group Icon

Group: Members
Posts: 48
Joined: 14 July 2017
From: Roma
Member No.: 15601



WeaponSet
Conditions = None
Weapon = PRIMARY ApacheHellfireMissileWeapon
PreferredAgainst = PRIMARY VEHICLE
End

in this one don't need PreferredAgainst since is only 1 weapon.

the PLAYER_UPGRADE one is fine , if you want ONLY MANUAL fire like the comance.

now you only need to add the button for use the TERTIARY weapon

like this one (change Upgrade if you use a custom one) , and the commandset
CODE
CommandButton Command_AmericaVehicleComancheFireRocketPods
  Command                 = FIRE_WEAPON
  WeaponSlot              = TERTIARY
  Options                 = OK_FOR_MULTI_SELECT NEED_UPGRADE NEED_TARGET_POS ; fires at pos, not obj
  Upgrade                 = Upgrade_ComancheRocketPods
  TextLabel               = CONTROLBAR:FireRocketPods
  ButtonImage             = SSRocketAttack
  ButtonBorderType        = ACTION; Identifier for the User as to what kind of button this is
  DescriptLabel           = CONTROLBAR:ToolTipUSAFireRocketPods
  RadiusCursorType        = ATTACK_SCATTER_AREA
  InvalidCursorName       = GenericInvalid
  UnitSpecificSound       = ComancheVoiceModeRocketPods
End


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 28 March 2024 - 23:43