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 Sun Apr 20, 2025 7:41 pm
All times are UTC + 0
Aircraft Loadout Limit ?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
adamstrange
Gauss Rifle Trooper


Joined: 07 Mar 2013

PostPosted: Fri Apr 11, 2025 2:35 pm    Post subject:  Aircraft Loadout Limit ? Reply with quote  Mark this post and the followings unread

I'm trying to figure out how to code this.
I have an aircraft with 4 missiles [AMMO=4]

Primary targets tanks and Secondary targets buildings.
But when it hits Elite status, how do I code the Elite Secondary drop only 1 bomb ?

Back to top
View user's profile Send private message  
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Fri Apr 11, 2025 3:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

You can't make the elite bomb use up 4 ammo per shot. Instead change ammo to 1 and then make the normal Primary/Secondary weapons use strafing to fire 4 shots for 1 ammo.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL  
adamstrange
Gauss Rifle Trooper


Joined: 07 Mar 2013

PostPosted: Sat Apr 12, 2025 7:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

Okay but thats for Phobos, which I don't have.
Where can I get this ?

The other thing Mig, can you tell me whats the mistake in this code please ?

I have another bomber thats suppose to drop just one bomb but what happens is thatunlike other aircraft that fire at the target and then return to base after they have destroyed it or run out of ammo, this onewill drop the bomb and even if its destroyed, the bomber will continue to fly straight for a while [sometimes off the map] then it will turn around.

And at times it will drop 2 or 3 more bombs even though ammo is set to 1 and it will drop them a few seconds after the first one of it will drop them on the way back.

It won't drob just 1 and then turn back.

; SKYFALL BOMBER
[AMIG]
UIName=Name:SKYFALL
Name=SKYFALL
Image=AMIG
Prerequisite=RADAR,GAAIRB
Primary=FireBomb400
Secondary=SkyFire
ElitePrimary=FireBombEX
EliteSecondary=SkyTernal
CanPassiveAquire=yes; Won't try to pick up own targets
CanRetaliate=no; Won't fire back when hit
Strength=400
Category=AirPower
Armor=light
TechLevel=3
Sight=28
RadarInvisible=no
Landable=yes
MoveToShroud=yes
;Dock=GAAIRC,GAHPAD,NAHPAD
Dock=GAAIRC,AMRADR;GAAIRB
PipScale=Ammo
Speed=16
;PitchSpeed=0.9
;PitchAngle=0
JumpjetCrash=20 ; Climb, but down
JumpjetHeight=2575
PitchSpeed=1.1
PitchAngle=0
OmniFire=yes
Owner=British,Americans
ForbiddenHouses=Alliance,French,Germans
Cost=2500
Points=20
ROT=6
Ammo=1
Crewed=yes
ConsideredAircraft=yes
AirportBound=yes ; If I ever need to land and there are no airports I crash because I can only land on them
GuardRange=90
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DeathWeapon=JetCrashExplosion
MaxDebris=48
IsSelectableCombatant=yes
VoiceSelect=IntruderSelect
VoiceMove=IntruderMove
VoiceAttack=IntruderAttackCommand
VoiceCrashing=IntruderVoiceDie
DieSound=JetAirExplo
MoveSound=IntruderMoveLoop
CrashingSound=IntruderDie
ImpactLandSound=RaiderDie
;ImpactLandSound=GenAircraftCrash
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=20 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
AuxSound1=IntruderTakeOff ;Taking off
AuxSound2=IntruderLanding ;Landing
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=STRONGER,FIREPOWER,ROF
Fighter=yes
AllowedToStartInMultiplayer=no
ImmuneToPsionics=yes
PreventAttackMove=yes
RollAngle=50
AIBuildThis=yes

Back to top
View user's profile Send private message  
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat Apr 12, 2025 8:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

Post the weapon/projectile/warhead code too.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message  
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sat Apr 12, 2025 10:07 pm    Post subject: Reply with quote  Mark this post and the followings unread

You probably have the ROF on the weapon set high, once an aircraft fires its weapon it wont turn around until the ROF cycle has completed.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL  
wow4ik81
Grenadier


Joined: 30 Nov 2023
Location: Germany

PostPosted: Sat Apr 12, 2025 11:25 pm    Post subject: Reply with quote  Mark this post and the followings unread

"AIBuildThis" belongs to structures and "OmniFire" to weapons

Back to top
View user's profile Send private message  
adamstrange
Gauss Rifle Trooper


Joined: 07 Mar 2013

PostPosted: Sat Apr 12, 2025 11:32 pm    Post subject: Reply with quote  Mark this post and the followings unread

[FireBomb400]
Damage=400
ROF=100
;ROF=12
Range=3
Projectile=Cannon10
Speed=1
;Speed=0
Warhead=ParaFireWH
;Warhead=BOMBWH
Floater=yes
Report=KirovAttack
;UseFireParticles=yes

[Cannon10]
Image=ZBOMB
;Image=200MM
AA=no
Report=BomberBlast
;Parachuted=yes

[ParaFireWH] ; just a copy of [Fire] but different
CellSpread=5
PercentAtMax=.10
Wood=yes
Verses=600%,500%,200%,75%,55%,60%,150%,50%,30%,100%,100%
InfDeath=4
Sparky=no
Fire=yes
AnimList=MININUKE,NAPALM
;XGRYMED1,XGRYMED2,EXPLOMED,EXPLOLRG,TWLT070 ; invisible animation with particle attached, remove this if you don't want particles
ProneDamage=100%
Report=BomberBlast

Back to top
View user's profile Send private message  
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 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.1844s ][ Queries: 11 (0.0089s) ][ Debug on ]