Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Mar 29, 2024 1:06 am
All times are UTC + 0
Aircraft Secondary Weapon, Is It Possible?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [6 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
lionRA2forums
Disk Thrower


Joined: 17 Feb 2016

PostPosted: Mon Nov 21, 2016 5:04 am    Post subject:  Aircraft Secondary Weapon, Is It Possible? Reply with quote  Mark this post and the followings unread

So I made an aircraft that has an AA missile as Primary and kirov bomb as Secondary  but the aircraft only uses it's Primary and also uses it as AG even though I set it  to =no.

Is it possible to make the aircraft shoot missiles against air and bombs  against ground?

Back to top
View user's profile Send private message
EVA-251
General


Also Known As: evanb90
Joined: 20 Feb 2005
Location: o kawaii koto

PostPosted: Mon Nov 21, 2016 7:02 am    Post subject: Reply with quote  Mark this post and the followings unread

Switch their order. Make the bombing attack the primary and the missile attack the secondary.

_________________
YR modder/artist, DOOM mapper, aka evanb90
Project Lead Developer, New-Star Strike (2014-)
Former Project Lead Developer Star Strike (2005-2012), Z-Mod (2006-2007), RA1.5 (2008-2013), The Cold War (2006-2007)

Back to top
View user's profile Send private message Send e-mail Visit poster's website
Starkku
Cyborg Commando


Joined: 28 Dec 2007
Location: Finland

PostPosted: Mon Nov 21, 2016 8:46 am    Post subject: Reply with quote  Mark this post and the followings unread

Aircraft secondary weapons use the projectile behaviour of Primary regardless of their own settings. Combining a free-fall projectile and a guided missile on aircraft is not possible.

_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Twitter Channel URL
lionRA2forums
Disk Thrower


Joined: 17 Feb 2016

PostPosted: Thu Dec 01, 2016 10:29 am    Post subject: Reply with quote  Mark this post and the followings unread

Starkku wrote:
Aircraft secondary weapons use the projectile behaviour of Primary regardless of their own settings. Combining a free-fall projectile and a guided missile on aircraft is not possible.



So I  suppose the other guy's suggestion of switching them won't work. I haven't been able to test his suggestion cause I'm having a "no projectile" error.
Is it possible to have a missile with ammo and machine guns no ammo needed for an aircraft?
I saw it mentioned this to be possible, somewhere.

Back to top
View user's profile Send private message
EVA-251
General


Also Known As: evanb90
Joined: 20 Feb 2005
Location: o kawaii koto

PostPosted: Thu Dec 01, 2016 6:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

Your initial issue stems from an AA weapon being the primary.

Code:
[RAPTOR]
Primary=AMRAAM ;AA attack
Secondary=Maverick ;AG attack

[AMRAAM]
Projectile=AirToAirMissile
Warhead=EXP_AA_AMRAAM

[AirToAirMissile]
AG=no

[EXP_AA_AMRAAM]
Verses=0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%
Versus.rotary=66% ;vs helicopters
Versus.fixed=100% ;vs fixed wing aircraft

This results in the aircraft simply flying around the extent of [AMRAAM]'s range, but not firing when given an order to attack something on the ground, other than landed aircraft/helicopters. That's despite the Versus values suggesting it should switch to [Maverick] for everything else.

If you give the aircraft LandTargeting=2 (use secondary on land targets), it will use the secondary weapon, but it will still approach them according to the Primary weapon's range. (in the case of my fighter here, AMRAAM Range=18, Maverick Range=6, so it just flies around at a distance from the target and never attacks)

What Starkuu said is also correct, though. Can't have both a guided missile attack and free-fall bombing run attack.

as for your other question, the 0.C documentation has this to say about Ammo and aircraft
Quote:
[Weapon]►Ammo= (integer)

   The rounds of ammunition needed to fire this weapon. If fewer than the required rounds are present, the unit will not fire and wait for the ammo to reload. Defaults to 1.

   Note
   This feature does not support AircraftTypes.

_________________
YR modder/artist, DOOM mapper, aka evanb90
Project Lead Developer, New-Star Strike (2014-)
Former Project Lead Developer Star Strike (2005-2012), Z-Mod (2006-2007), RA1.5 (2008-2013), The Cold War (2006-2007)

Back to top
View user's profile Send private message Send e-mail Visit poster's website
lionRA2forums
Disk Thrower


Joined: 17 Feb 2016

PostPosted: Wed Apr 12, 2017 8:28 am    Post subject: Reply with quote  Mark this post and the followings unread

EVA-251 Sorry for the late reply. Thanks I'll keep in mind that Secondary weapon relies on Primary's range for it to work properly.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.1504s ][ Queries: 11 (0.0078s) ][ Debug on ]