Posted: Tue Dec 05, 2006 7:08 pm Post subject:
Paradroping tanks etc...
I can't figure out what to make my weapon code for the paradropweapon so that when my for example c5m super galaxy transport plane fires it should be able to parachute tanks or infantry. The tutorial only covers the actual aircraft but not the weapon nor the other. I tried cloning the ParaDropWeapon but it doesnt seem to work.
Also my c5m super galaxy doesnt show up (no trace of it not even a cameo) I'll post the code as soon as I am near my modding computer. _________________ "Those who want to live, let them fight, and those who do not want to fight in this world of eternal struggle do not deserve to live." QUICK_EDIT
Before I call n00bism, I must ask, did ya in any way modify this code?
Code:
;GEF
;************ American Paradrop Special Rules ***********
;These two lists _must_ have the same number of elements, otherwise bad crashiness will result
;AmerParaDropInf=E1,GHOST,ENGINEER ;Types of infantry for the planes to drop
;AmerParaDropNum=6,6,6 ;How many of each of those infantry
AmerParaDropInf=E1 ;Types of infantry for the planes to drop
AmerParaDropNum=10 ;How many of each of those infantry
AllyParaDropInf=E1 ;Types of infantry for the planes to drop
AllyParaDropNum=10 ;How many of each of those infantry
SovParaDropInf=E2 ;Types of infantry for the planes to drop
SovParaDropNum=10 ;How many of each of those infantry
YuriParaDropInf=INIT ;Types of infantry for the planes to drop
YuriParaDropNum=10 ;How many of each of those infantry
If ya havent even touched this then good luck to ya trying to not be an idiot. If ya have check and recheck time and time again.
Best advice I can give ya without going too much into detail is modify the "cargo" lines to include what you want.
Side note to more experienced folk: is the ParadropInf= just restricted to InfantryTypes? My best guess says no.
Referencing ModEnc update: so it is restricted to InfantryTypes then. QUICK_EDIT
I guess he means a normal aircraft tranport, those can be loaded with tank and infantry and when they try to fire, they automaticly drop their cargo above their position
@ Universal
as far as i know, nearly every weapon would work for this case... _________________
Joined: 25 Aug 2004 Location: DAS BOOT IM DER OSTSEE
Posted: Tue Dec 05, 2006 9:59 pm Post subject:
give them a fake weapon that does no damage, they use the units as the ammo. _________________ PPM's Reichstrollfuherer, 236th Trollenparties brigade. QUICK_EDIT
Wait is this a pad-buildable transport plane? After YR 1.001, although it may be fixed in the RockPatch, buildable paradrop planes could no longer drop units over size=1. _________________
Yes this is a pad buildable aircraft for the Americans only.
Code:
[Lockheed C-5M Super Galaxy]
UIName=Name:C5M
Name=C5M
Strength=3000
Category=AirPower
Armor=heavy
TechLevel=6
Primary=GenuineParaDropWeapon; Doesn't really fire it; dummy weapon
LeadershipRating=10
RadarInvisible=no
Sight=0
Landable=yes
MoveToShroud=yes
PitchAngle=0 ; default is 20 degrees
Speed=10
Owner=Americans
Points=30
ROT=2
Crewed=yes
Ammo=100
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
Maxdebris=2
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=50 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
ImmuneToPsionics=yes
CanPassiveAquire=no ; Won't try to pick up own targets
CanRetaliate=no; Won't fire back when hit
MoveSound=PDPlaneMoveLoop
DieSound=
CrashingSound=PDPlaneDie
ImpactLandSound=GenAircraftCrash
Image=c5m
Prerequisite=AMRADR,GATECH
Dock=AMRADR
Passengers=25
SizeLimit=10
Storage=10
Carryall=yes
IsSelectableCombatant=yes
_________________ "Those who want to live, let them fight, and those who do not want to fight in this world of eternal struggle do not deserve to live." QUICK_EDIT
In that code you did Carryall=yes, but have SizeLimit=10. If it's a carryall, you don't need a size limit. And you should also have the Type= in the superweapon code, and make sure you have it in the list. _________________
Hold on let me repost the code. It still wont show up.
Code:
[C-5M Lockheed]
UIName=Name:C5M
Name=C5M
Strength=3000
Category=AirLift
Armor=light
TechLevel=6
Primary=GenuineParaDropWeapon; Doesn't really fire it; dummy weapon
LeadershipRating=10
RadarInvisible=no
Sight=0
Landable=yes
MoveToShroud=yes
PitchAngle=0 ; default is 20 degrees
Speed=10
Owner=Americans,Alliance,French,Germans,British
Points=30
ROT=2
Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
Maxdebris=5
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=50 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
ImmuneToPsionics=yes
CanPassiveAquire=no ; Won't try to pick up own targets
CanRetaliate=no; Won't fire back when hit
MoveSound=PDPlaneMoveLoop
DieSound=
CrashingSound=PDPlaneDie
ImpactLandSound=GenAircraftCrash
Image=c5m
Prerequisite=GATECH
Dock=AMRADR,GAAIRC
Passengers=25
SizeLimit=
Storage=10
Carryall=yes
IsSelectableCombatant=yes
Cost=2500
PipScale=Passengers
RequiredHouses=Americans
_________________ "Those who want to live, let them fight, and those who do not want to fight in this world of eternal struggle do not deserve to live." QUICK_EDIT
If you don't provide an 'image=' tag, it will parse the name of the unit (in this case "C-5M Lockheed") as the name to look for with art files. Issue here is that the space could easily be messing that up*, which is why short names with no special characters (".","/","-"," ",etc.) are better.
*Since the ASCII names are converted and all, it could be looking for 'C-5M_Lockheed' when your art files have a space instead, or lack the same capitalization. _________________
Got it working now except for the paradrop which is not working at all because the plane only hovers near the location and does nothing. _________________ "Those who want to live, let them fight, and those who do not want to fight in this world of eternal struggle do not deserve to live." QUICK_EDIT
Why do you have Warhead=Special? That's a special case warhead for SPAWNER weapons! There's a weapon called 'ParaDropWeapon'... use that. =| _________________
I believe I have fixed the problem seems that I needed to have the warhead set as deathWH.
I'll post the full code later and as a tutorial. _________________ "Those who want to live, let them fight, and those who do not want to fight in this world of eternal struggle do not deserve to live." QUICK_EDIT
Sure thing. Ill provide the screenshots a bit later and trust me the code works _________________ "Those who want to live, let them fight, and those who do not want to fight in this world of eternal struggle do not deserve to live." QUICK_EDIT
If you don't provide an 'image=' tag, it will parse the name of the unit (in this case "C-5M Lockheed") as the name to look for with art files. Issue here is that the space could easily be messing that up*, which is why short names with no special characters (".","/","-"," ",etc.) are better.
*Since the ASCII names are converted and all, it could be looking for 'C-5M_Lockheed' when your art files have a space instead, or lack the same capitalization.
Okay an update the tank dropping does not work but this is because I have the latest version of rockpatch enabled. The infantry paradroping does work and sometimes it doesnt. _________________ "Those who want to live, let them fight, and those who do not want to fight in this world of eternal struggle do not deserve to live." 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