Make beamlasers follow the piece they are shot from?

Make beamlasers follow the piece they are shot from?

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Make beamlasers follow the piece they are shot from?

Post by Forboding Angel »

Other than an emit sfx (Which I would prefer not to have to resort to), I can't figure out any way to make a beamlaser mounted on a fast moving tank follow the barrel rotation.

Anyone know any way other than using an invisible weapon (for aiming purposes) and an emit?
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Make beamlasers follow the piece they are shot from?

Post by Peet »

Sweepfire.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Make beamlasers follow the piece they are shot from?

Post by Forboding Angel »

- Added weapon tdf command SweepFire, if 1 (default 0) it will make the weapon continue firing while it aims for a new target. Only works on continous beamlasers currently.
Beamtime on mine is 2 (forgot to mention that), what the above is talking about is 0.1 reloadtimes.

Lasers have a lot of issues in this area.
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Re: Make beamlasers follow the piece they are shot from?

Post by Saktoth »

Sweepfire is atrociously buggy.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Make beamlasers follow the piece they are shot from?

Post by Forboding Angel »

Sadly, it's the truth :cry:
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Make beamlasers follow the piece they are shot from?

Post by KDR_11k »

Forboding Angel wrote:Other than an emit sfx (Which I would prefer not to have to resort to), I can't figure out any way to make a beamlaser mounted on a fast moving tank follow the barrel rotation.

Anyone know any way other than using an invisible weapon (for aiming purposes) and an emit?
How many ways do you need to implement a simple and rare behaviour like that?
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Re: Make beamlasers follow the piece they are shot from?

Post by Saktoth »

Could just fix the first implimentation.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Make beamlasers follow the piece they are shot from?

Post by Forboding Angel »

Saktoth wrote:Could just fix the first implimentation.
qft
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Make beamlasers follow the piece they are shot from?

Post by KDR_11k »

Saktoth wrote:Could just fix the first implimentation.
How so? When you want to align a weapon to a piece and that weapon does not need a target (like a missile), why can't you use emit-sfx?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Make beamlasers follow the piece they are shot from?

Post by Forboding Angel »

Because the piece doesn't always aim perfectly with lasers... Tolerance anyone?

Are you arguing that this retarded behavior is a "feature"?

Oh I can use an emit sfx, and then I get to deal witht he fact that half the time the aiming of the weapon is not perfect, especially if the unit is moving, whereas tolerance would allow for fudge factor without any real noticeable differences.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Make beamlasers follow the piece they are shot from?

Post by KDR_11k »

If you don't want to aim with the piece, why do you say you do? You can use beamburst to make the laser fire a burst of beams that are all aimed towards the target (instead of aimed with the piece).
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Make beamlasers follow the piece they are shot from?

Post by Forboding Angel »

So... In your opinion this is proper spring beamlaser behavior...
clip1.jpg
clip1.jpg (200.24 KiB) Viewed 2210 times
That's what happens when you move the unit.

I want it to work correctly, not rely on me implementing bullshit hacky workarounds for what should be default behavior.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Make beamlasers follow the piece they are shot from?

Post by KDR_11k »

Beam lasers use a fixed beam normally, you can use a burst to make the shots aimed at the target instead.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Make beamlasers follow the piece they are shot from?

Post by Forboding Angel »

WHich causes them to blink rapidly and look like crap. Not to mention that it screws with damage as well.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Make beamlasers follow the piece they are shot from?

Post by KDR_11k »

It doesn't blink if you make the burst fast enough (regular BLs fire every frame anyway so no performance loss), if you don't want to do that use beamttl. Just adjust damage so the burst does the damage the beam did previously.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Make beamlasers follow the piece they are shot from?

Post by Forboding Angel »

Have you actually tried this?

THere is still blinkage.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Make beamlasers follow the piece they are shot from?

Post by KDR_11k »

Yes I have. I get some flickering if the unit moves, seems like the beam is rendered with a different brightness depending on its length. A largebeamlaser won't have that issue though.
User avatar
Nemo
Spring 1944 Developer
Posts: 1376
Joined: 30 Jan 2005, 19:44

Re: Make beamlasers follow the piece they are shot from?

Post by Nemo »

http://www.youtube.com/watch?v=qLjBgvISWnw

is this the behavior you're looking for, forb?
Last edited by Nemo on 29 Jun 2008, 23:16, edited 1 time in total.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Make beamlasers follow the piece they are shot from?

Post by Forboding Angel »

@nemo, HELL YES O_O

Hao does I?
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: Make beamlasers follow the piece they are shot from?

Post by Hoi »

Nemo wrote:http://www.youtube.com/watch?v=qLjBgvISWnw

is this the behavior your're looking for, forb?
w00t melee weapons! (3th person lightsaber fighting in IW ftw :o )
Post Reply

Return to “Game Development”