exterminator
16 years ago
For my new map I had to make a modified weapon for the raptor

Weapon RaptorWeapon
  PrimaryDamage               = 10000.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                 = 520 ;400.0
  MinimumAttackRange          = 100.0
  AcceptableAimDelta          = 30
  DamageType                  = JET_MISSILES
  DeathType                   = EXPLODED
  WeaponSpeed                 = 1000
  ProjectileObject            = RaptorJetMissile
  ProjectileExhaust           = MissileExhaust
  VeterancyProjectileExhaust  = HEROIC HeroicMissileExhaust
  FireFX                      = None
  FireSound                   = RaptorJetMissileWeapon
  ProjectileDetonationFX      = WeaponFX_JetMissileDetonation
  RadiusDamageAffects         = ALLIES ENEMIES NEUTRALS NOT_SIMILAR
  ClipSize                    = 1 
  ClipReloadTime              = 8000 
  AutoReloadsClip             = RETURN_TO_BASE 
  ProjectileCollidesWith      = STRUCTURES
  AntiAirborneVehicle         = Yes
  AntiAirborneInfantry        = No
  ShowsAmmoPips               = Yes
  WeaponBonus                 = PLAYER_UPGRADE DAMAGE 125%
End

OK , it worked fine when I tested it but of course later I noticed an issue:
The ProjectileObject ,ProjectileExhaust and ProjectileDetonationFX just didn't occur when I was testing it
😮 💀 :ashamed:

So if anyone knows how to fix this I'd be happy to hear it ...

P.S this code you see is in a Weapon.ini file.As far as I remember making a new weapon in the map.ini had no effect ...




6 years Generals and the war still goes on ...
Sponsor
CommieDog
16 years ago
So did the Raptor deal its damage instantly instead of launching missiles had having them travel to the target?
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
exterminator
16 years ago
Yes , exactly -- no projectiles no explosion , just clear damage ...

6 years Generals and the war still goes on ...
bel3ve
16 years ago
I don't see anything wrong in the code. Did you edit anything else to fit the weapon in?
UserPostedImage
exterminator
16 years ago
I highly doubt that the code is wrong somewhere since I just copied it and edited what I had to ...

Did you edit anything else to fit the weapon in?

Well, yes actually I fitted the weapon onto the aircraft carrier raptor but AFTER I saw that it didn't function properly on the normal raptor ... Well ,either way it's the same story with both the raptors
Also now that I lowered the WeaponSpeed I noticed that it doesn't deal the damage instantly.Somehow it launches an imaginary missile lol
Btw how many ways are there to create a weapon just for one map ?
6 years Generals and the war still goes on ...
yodaman888
16 years ago
ok i see a few things wrong in your code first you have this
ScatterRadiusVsInfantry = 10.0 ;When this weapon is used against infantry, it can randomly miss by as much as this distance.
AttackRange = 520 ;400.0

the

randomly miss by as much as this distance.

part is taking up a line, secont you have no fire delay

P.S.

to have a weapon only on a certain map you have to use map ini files
exterminator
16 years ago
Fire delay ? Err.. I don't see what that has to do with anything ...

Oh, and yeah it's a map.ini ,sorry (initially I made the weapon in a weapon.ini and a map.ini and didn't know which one was the working one)
6 years Generals and the war still goes on ...