View Single Post
Old 05-20-2006, 07:43 PM   #2 (permalink)
GuyInTheWindow
Senior Member
 
Join Date: Aug 2003
Posts: 134
Default

Laser weapons are different than normal weapons. Instead of using the defined muzzle/firing bone, the weapon specifies the bone to fire.

Please note the the weapon bones defined in the Art of the object have "01" post fix or whatever number, indicating different fireports. The Weapon code for lasers wants a specific bone, not a general group.

So for example, the ranger weapon fire bone is "Muzzle" (according the the art of the object). However the weapon code should look like this (modified from Laser Crusader weapon):

Code:
Weapon Lazr_RangerWeapon
  PrimaryDamage = 40.0
  PrimaryDamageRadius = 5.0
  ScatterRadiusVsInfantry = 10.0
  AttackRange = 150.0
  DamageType = SMALL_ARMS
  DeathType = NORMAL
  WeaponSpeed = 99999
  WeaponRecoil = 5
  LaserName = Lazr_CrusaderLaserBeam
;;
  LaserBoneName = Muzzle01 ;;
;; 
  FireFX = Lazr_WeaponFX_LaserCrusader
  RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
  DelayBetweenShots = 2300
  ClipSize = 0
  ClipReloadTime  = 0
  ProjectileCollidesWith = STRUCTURES WALLS 
  DelayBetweenShots = 2000
End
GuyInTheWindow is offline   Reply With Quote