Posted: Wed Dec 19, 2018 5:45 pm Post subject:
InitialPayload+Opentopped=Buggy weapons?
So I was searching for a viable way to use more than 2 weapons, and another way to have multiple weapons firing at the same time. Ares' InitialPayload logic seemed to be able to kill two birds with one stone, except it didn't.
What I attempted to do was have an Apoc remake have the ability to fire it's AA weapon as well as fire it's ground weapon using a dummy unit. Here's the code
; Conscript Dumbutt
[OP1]
UIName=NOSTR:OpenTopped ;ARES
Name=Conscript
Image=CONS
Category=Soldier
Primary=MammothTuskA
OccupyWeapon=UCM1Carbine; The weapon I use while Occupying. Defaults to 0 (Primary)
EliteOccupyWeapon=UCEliteM1Carbine; The weapon I use while Occupying. Defaults to 0 (Primary)
Occupier=yes ; I can Occupy UC buildings
Prerequisite=NAHAND
CrushSound=InfantrySquish
Strength=125
Armor=flak
TechLevel=-1
LandTargeting=1
Pip=white
OccupyPip=PersonRed ; choices are green yellow white red blue purple
Sight=5
AllowedToStartInMultiplayer=no
Speed=4
Owner=Russians,Confederation,Africans,Arabs
Cost=3
Soylent=50
Points=5
IsSelectableCombatant=yes
VoiceSelect=ConscriptSelect
VoiceMove=ConscriptMove
VoiceAttack=ConscriptAttackCommand
VoiceFeedback=ConscriptFear
VoiceSpecialAttack=ConscriptMove
DieSound=ConscriptDie
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
PhysicalSize=1
MovementZone=Infantry
;MovementZone=InfantryDestroyer ;GEF wow!!! copy paste bug from the original Disk Thrower!
VeteranAbilities=STRONGER,FIREPOWER,ROF,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
ImmuneToVeins=yes
Size=1
;ElitePrimary=MammothTuskAE
IFVMode=2
OpportunityFire=yes
DistributedFire=yes
;AttackFriendlies=yes
AttackCursorOnFriendlies=yes
ProtectedDriver=yes ;ARES
ThreatPosed=0
CanBeReversed=no ;ARES
;;NoManualFire=yes
As you can see I pasted a dummy conscript clone to hold the AA weapon. Several issues occured.
-The weapon fired at erratic intervals
-The weapon didn't function properly with the burst= tag. It would fire one or two missiles awkwardly and fire unlimited amounts of missiles if I spam-clicked an enemy
-It can't force fire on friendly targets more than once unless I also spam-click it, and unfortunately the ground weapons utilizing this logic can't force fire on an area like how an opentopped battlefortress actually would.
And a totally separate issue is, that it entirely ignored it's AG=no tag which is why I put LandTargeting=1 on the dummy unit. I tested this by replacing GGI's MissileLauncher with the original MammothTusk and unedited projectile, and it also ignored it's AG=no tag and fired anywhere.
So these are my problems. Can anyone shed some light on what's wrong with my code? Or is this a bug with Ares functionality? QUICK_EDIT
I guess units in opentopped vehicles cant fire a burst>1 weapon properly, and LandTargeting doesnt work on passengers inside a battle fortress as they only have one weapon to use, or never use any.
For the second question, IIRC someone has told me that LandTargeting=1 is only preventing the unit from firing its Primary weapon at land targets, however the MissileLauncher is a Secondary weapon. QUICK_EDIT
Passengers can switch weapon inside transport, just omit the tag that forces a specific weapon.
Passengers use transport’s LandTargeting value when firing inside.
AG means Attack Ground so AG=no means you can’t attack the clear ground but you can still attack everything on or above the ground
Spam click or click press S can reset ROF counter in between bursts so it’s a general issue with Burst=.
Also Burst=2 fired from inside a transport doesn’t mirror the FLH and other than that it works fine.
I think what you can do is instead just 1 you put 2 OP1s into APOC, each one for left and right and give OP1 a Range=0 primary and Secondary=MammothTuskA _________________
So I gave OP1 a range=0 primary and moved the AA weapon to his secondary (Although I don't know why I'm doing that,) and I included multiple infantry in initialpayload.nums rather than using burst= in the weapon as you suggested.
That managed to fix the unlimited-missiles through spam-clicking problem, but the weapon still only fires once per click on friendly air units rather than continuously firing until it kills it. That alone isn't so much of an issue because the force-fire does function properly against ground units and such, however, the Apoc can't target Air units as enemies despite automatically firing upon them. I'm thinking of using an AA dummy weapon secondary with the FireOnce tag on it but I'll have to test it later. Thanks for the help thus far. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum