I also tried a stream of particles, but it ended up looking ugly with lots of holes, or being stupidly powerful and having to have a very, very, short capacitor on it

Code: Select all
<ItemType UNID="&itInstantLaser;"
name= "Newtonian Laser"
level= "1"
value= "24000"
mass= "4000"
frequency= "uncommon"
modifiers= "MajorItem; EnergyWeapon"
description= "hitscan weapon test"
>
<Image imageID="&rsItems1;" imageX="96" imageY="0" imageWidth="96" imageHeight="96"/>
<Weapon
type= "missile"
damage= "laser:1d4"
fireRate= "10"
missileSpeed= "3000"
hitPoints= "10"
lifetime= "2"
failsafe= "10"
powerUse= "10"
recoil= "0"
directional= "true"
sound= "&snLaserCannon;"
>
<Effect>
<Shape
directional= "true"
scaleLength= "72"
scaleWidth= "6"
scaleLengthInc= "3"
color= "0xff, 0x00, 0x00"
opacity= "140"
>
<Point x="0" y="0"/>
<Point x="-35" y="50"/>
<Point x="-100" y="0"/>
<Point x="-35" y="-50"/>
</Shape>
<Shape
directional= "true"
scaleLength= "72"
scaleWidth= "4"
scaleLengthInc= "3"
color= "0xff, 0x0f, 0x0f"
opacity= "255"
>
<Point x="0" y="0"/>
<Point x="-35" y="50"/>
<Point x="-100" y="0"/>
<Point x="-35" y="-50"/>
</Shape>
<Shape
directional= "true"
scaleLength= "64"
scaleWidth= "3"
scaleLengthInc= "3"
color= "0xff, 0xff, 0xff"
opacity= "255"
>
<Point x="0" y="0"/>
<Point x="-25" y="50"/>
<Point x="-100" y="0"/>
<Point x="-25" y="-50"/>
</Shape>
</Effect>
</Weapon>
<Events>
<onFireWeapon>
(for speed 1 30 (block (shot)
(setq shot (sysCreateWeaponFire aWeaponType gSource aFirePos aFireAngle (multiply 100 speed) aTargetObj aWeaponBonus))
(objIncVel shot (objGetVel gSource))
True
))
</onFireWeapon>
</Events>
</ItemType>