in Weapon.ini, duplicate PaladinPointDefenseLaser and modify it as you wish.
Weapon TestLaserWeapon
PrimaryDamage = 100.0
PrimaryDamageRadius = 5.0
AttackRange = 125.0
DamageType = EXPLOSION
DeathType = LASERED
WeaponSpeed = 999999.0 ; dist/sec
DelayBetweenShots = 100 ; time between shots, msec
ClipSize = 5 ; how many shots in a Clip (0 == infinite)
ClipReloadTime = 20000 ; how long to reload a Clip, msec
LaserName = NewLaserBeam
FireFX = WeaponFX_PaladinPointDefenseLaser
End
LaserName = NewLaserBeam
This is the most significant code. You should make a new Laser object.
Now, Open FactionUnit.ini
Paladin tank uses PointDefenseLaserBeam for its laser object, but search for Object LaserBeam in this example. It's right below PointDefenseLaserBeam.
Duplicate it and change the name.
;------------------------------------------------------------------------------
Object NewLaserBeam
; *** ART Parameters ***
Draw = W3DLaserDraw ModuleTag_01
Texture = EXLaser.tga
NumBeams = 3 ;Number of overlapping cylinders that make the beam. 1 beam will just use inner data.
InnerBeamWidth = 1 ;The total width of beam
InnerColor = R:255 G:255 B:255 A:250 ;The inside color of the laser (hot)
OuterBeamWidth = 2 ;The total width of beam
OuterColor = R:0 G:0 B:255 A:150 ;The outside color of the laser (cool)
;@todo -- add shot ability functionality (instead of instant point A to B)
End
KindOf = IMMOBILE
ClientUpdate = LaserUpdate ModuleTag_02
MuzzleParticleSystem = GenericDifferentialFlare
ParentFireBoneName = Muzzle01
TargetParticleSystem = GenericDifferentialFlare
End
;Used as a weapon, this is essentially a fast pulse laser. Adjusting
;the lifetime values will determine how long it renders. The damage
;is applied immediately, so lifetime doesn't matter.
Behavior = LifetimeUpdate ModuleTag_03
MinLifetime = 95 ; min lifetime in msec
MaxLifetime = 95 ; max lifetime in msec
End
End
ParentFireBoneName = Muzzle01
This is the most important code! Most units have Muzzle01 for its FireWeaponBone so Muzzle01 should work for most units.
if ParentFireBoneName is not a valid one, laser will not be visible.
