Tank Destroyer
11 years ago
I'm making a map and i want to edit the King Raptor unit to have 10 missiles how do i do that?
Currently learning how to create 3D models with GMAX so that I can make my C&C Generals Zero Hour mod even more better. 🙂
Sponsor
klingondragon
11 years ago
Make a map.ini and edit the raptors to have 10
I will post again soon with the appropriate map.ini
Also this is not the forum to ask this question it should be in the generals worldbuilder forum
klingondragon
11 years ago
here is the code you need in your map.ini
the thing you needed to change was clip size however you can also change other things like its damage and range
Weapon AirF_RaptorJetMissileWeapon
  PrimaryDamage               = 125.0            
  PrimaryDamageRadius         = 5.0
  ScatterRadiusVsInfantry     = 10.0     ;When this weapon is used against infantry, it can randomly miss by as much as this distance.
  AttackRange                 = 350.0
  MinimumAttackRange          = 100.0
  AcceptableAimDelta          = 30
  DamageType                  = JET_MISSILES
  DeathType                   = EXPLODED
  WeaponSpeed                 = 1000
  ProjectileObject            = RaptorJetMissile
  ProjectileExhaust           = AirF_RaptorMissileExhaust
  VeterancyProjectileExhaust  = HEROIC HeroicMissileExhaust
  FireFX                      = None
  FireSound                   = RaptorJetMissileWeapon
  ProjectileDetonationFX      = WeaponFX_JetMissileDetonation
  RadiusDamageAffects         = ALLIES ENEMIES NEUTRALS NOT_SIMILAR
  DelayBetweenShots           = 75 ;150
  ClipSize                    = 10 
  ClipReloadTime              = 2000
  AutoReloadsClip             = RETURN_TO_BASE 
  ProjectileCollidesWith      = STRUCTURES
  AntiAirborneVehicle         = Yes
  AntiAirborneInfantry        = No
  ShowsAmmoPips               = Yes
End

Weapon AirF_RaptorJetLaserGuidedMissileWeapon
  PrimaryDamage               = 140.0            
  PrimaryDamageRadius         = 5.0
  ScatterRadiusVsInfantry     = 10.0     ;When this weapon is used against infantry, it can randomly miss by as much as this distance.
  AttackRange                 = 350.0
  MinimumAttackRange          = 100.0
  AcceptableAimDelta          = 30
  DamageType                  = JET_MISSILES
  DeathType                   = EXPLODED
  WeaponSpeed                 = 1000
  ProjectileObject            = RaptorJetMissile
  ProjectileExhaust           = AirF_RaptorMissileExhaust
  VeterancyProjectileExhaust  = HEROIC HeroicMissileExhaust
  FireFX                      = None
  FireSound                   = RaptorJetMissileWeapon
  ProjectileDetonationFX      = WeaponFX_JetMissileDetonation
  RadiusDamageAffects         = ALLIES ENEMIES NEUTRALS NOT_SIMILAR
  DelayBetweenShots           = 75 ;150
  ClipSize                    = 10 
  ClipReloadTime              = 2000
  AutoReloadsClip             = RETURN_TO_BASE 
  ProjectileCollidesWith      = STRUCTURES
  AntiAirborneVehicle         = Yes
  AntiAirborneInfantry        = No
  ShowsAmmoPips               = Yes
End

UTD^Force
11 years ago
[ MOVED ]
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
Tank Destroyer
11 years ago
So i just copy and paste all of that code in the map.ini file,seems easy enough :)
EDIT: but what if i want a tank to shoot a nuke or missile how should i do it?
Currently learning how to create 3D models with GMAX so that I can make my C&C Generals Zero Hour mod even more better. 🙂
klingondragon
11 years ago
you could add the fx of a nuke ecploding to the weaponset of a tank
Tank Destroyer
11 years ago
There's a problem it doesn't work, i put it on my custom map then when i build an airfield and i build a couple of King Raptors then they only have 6 missiles(normal) but i wanted them to have 10 missiles.
Currently learning how to create 3D models with GMAX so that I can make my C&C Generals Zero Hour mod even more better. 🙂
klingondragon
11 years ago
It wont show 10 bullet icons but it will fire 10
Tank Destroyer
11 years ago
but i only saw it shoot 6 missiles then it went back to the airfield.I even set also to 25 and it still shoots 6 missiles,i even set it to 1 and it still shoots 6 missiles,any ideas how that happened?
Currently learning how to create 3D models with GMAX so that I can make my C&C Generals Zero Hour mod even more better. 🙂
klingondragon
11 years ago
ill have a look now
ill get back to you in a sec
klingondragon
11 years ago
it works fine

make sure the file is called "map.ini" not "[mapname].ini"
Tank Destroyer
11 years ago
I'm sorry but it still doesn't work 😞,i have put the map.ini file in the Command and conquer generals zero hour data then Maps folder then in (my map) folder,is that correct?
Currently learning how to create 3D models with GMAX so that I can make my C&C Generals Zero Hour mod even more better. 🙂
klingondragon
11 years ago
klingondragon
11 years ago
Upload your map and ill see if I can get it to work
Tank Destroyer
11 years ago
Heres the map.   The Air Campaign.zip (11kb) downloaded 10 time(s).
Currently learning how to create 3D models with GMAX so that I can make my C&C Generals Zero Hour mod even more better. 🙂
klingondragon
11 years ago
i found why it wont work
you made a text document and called it map.ini
that means it gets called map.ini.txt
you need a file called map.ini
im uploading the file you actually want:   Zipped Folder.zip (1kb) downloaded 17 time(s).