Author Topic: Is it Possible to create a solid laser for a Weapon?  (Read 895 times)

I am currently working on a few mechs, and I  would like to have solid lasers ingame.
Typical BL weapons such as Ladio's Laser Weapon set have a beam that is made up of 5-8 Dots

Ex: 
- - - - -

I want this:
______

The Stable paint can has the effect that I want, but I dont want people to lag like stuff if the lasers are fired.

Halp?

Xalos was trying something out like this during the Alpha stage of our TOS Phaser mod.

unfortunately, true beam effects are impossible, and the closest thing you can have to that is about 8 dots equally spaced apart between the gun and the hit point, which looks really crappy. xalos explained that having anymore starts to lag really bad and constantly makes the game say "ghosting"

The only way to do this is via static shapes, however it won't look as pretty.

The only way to do this is via static shapes, however it won't look as pretty.
I don't know. Transparent self illuminated thin cylinder with smooth shading might work.

I haven't worked much with static shapes; are they controllably tiltable?

I haven't worked much with static shapes; are they controllably tiltable?

You can dynamically position, rotate and scale them.

You can dynamically position, rotate and scale them.
Seems fun. Since you like static shapes port, would you mind maybe doing a tutorial on them? It seems like a useful thing to know how to use

Seems fun. Since you like static shapes port, would you mind maybe doing a tutorial on them? It seems like a useful thing to know how to use

They're pretty basic, really.

Code: [Select]
datablock staticShapeData( datablockName )
{
shapeFile = "path/to/model.dts";
};

...

%obj = new staticShape()
{
position = "0 0 0"; // This line is optional, you can position it yourself later when needed.
datablock = datablockName;
};

They pretty much have the same functionality as you would expect from a normal model-based object (setTransform, setScale, setNodeColor, unhideNode, hideNode, getPosition, getTransform, etc.), however they lack setVelocity and getVelocity. They are not affected by gravity or other forces in any way, however you can collide with them.

Sounds fun, thanks
I'll try using them

I've made laser effects on some of my weapons (none of them are functioning, but they look cool).