View Single Post
Old 03-24-2003, 10:04 PM   #1 (permalink)
Flappity
Member
 
Join Date: Dec 2002
Location: USA
Posts: 43
Send a message via ICQ to Flappity Send a message via AIM to Flappity Send a message via MSN to Flappity Send a message via Yahoo to Flappity
Default Trouble with a unit..

Okay, I'm trying to make a shotgun infantry....

Problem is, when it fires, it fires the bullets in succession, not all at once...

Anyone know if it's possible to make them fire all at once? If so, how?

BTW, here's the code

Code:
;------------------------------------------------------------------------------
Weapon ShotGunWeapon
  PrimaryDamage           = 30.0            
  PrimaryDamageRadius     = 1.0       
  ScatterRadius           = 0;changed to zero, unless you want to soften the results of the table below

  ; @todo srj -- need better targets; these are copied from Scud Storm
  ; Instead of a purely random scatter distance, this will divide a clip evenly and randomly at these spots
  ; These specific points are an even distribution simulating a 150 ScatterRadius.
  ; With fewer entries than ClipSize, the extra will hit 0,0 as normal shots
  ; With extra entries, 9 of 12 could be used eg, and then you'd get a different nine next clip.

  ScatterTargetScalar = 25; replaces the ScatterRadius, above, for scaling this table, below
  ScatterTarget           = X: 0.000 Y: 0.67
  ScatterTarget           = X: 0.67 Y:-0.100
  ScatterTarget           = X:-0.33 Y: 0.333
  ScatterTarget           = X: 0.150 Y: 0.150
  ScatterTarget           = X: 0.338 Y: 0.000       
  ScatterTarget           = X: 0.250 Y:-0.284        
  ScatterTarget           = X:-0.116 Y:-0.400        
  ScatterTarget           = X:-0.300 Y:-0.616      
  ScatterTarget           = X:-0.283 Y: 0.211       
  ScatterTarget           = X: 0.000 Y: 0.66
  ScatterTarget           = X: 0.66 Y:-0.100
  ScatterTarget           = X:-0.033 Y: 0.334
  ScatterTarget           = X: 0.150 Y: 0.150
  ScatterTarget           = X: 0.383 Y: 0.000       
  ScatterTarget           = X: 0.250 Y:-0.233       
  ScatterTarget           = X:-0.166 Y:-0.400      
  ScatterTarget           = X:-0.300 Y:-0.616       
  ScatterTarget           = X:-0.283 Y: 0.216  
  ScatterTarget           = X: 0.000 Y: 0.66
  ScatterTarget           = X: 0.66 Y:-0.100

  ScatterRadiusVsInfantry = 0.0     ;When this weapon is used against infantry, it can randomly miss by as much as this distance.
  AttackRange             = 200.0
  MinimumAttackRange      = 0.0 ;100.0       ; this is to allow for a little "lead" for the helicopter targeting
  DamageType              = SMALL_ARMS
  DeathType               = NORMAL
  WeaponSpeed             = 99999
  ProjectileObject        = NONE
  RadiusDamageAffects     = ALLIES ENEMIES NEUTRALS
  DelayBetweenShots       = 100              ; time between shots, msec
  ClipSize                = 7                    ; how many shots in a Clip (0 == infinite)
  ClipReloadTime          = 1000              ; how long to reload a Clip, msec   
  AutoReloadsClip         = Yes
  FireFX                  = BattleDroneWeapon
  VeterancyFireFX         = HEROIC WeaponFX_GenericMachineGunFireWithRedTracers
  FireSound               = RangerWeapon
  AntiAirborneVehicle     = No
  AntiAirborneInfantry    = No
End
Flappity is offline   Reply With Quote