New weapon rendertype

New weapon rendertype

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
SpikedHelmet
MC: Legacy & Spring 1944 Developer
Posts: 1948
Joined: 21 Sep 2004, 08:25

New weapon rendertype

Post by SpikedHelmet »

In our quest for realistic tracers (ie, weapons of which only one out of x shots are visible), I've realized that a new weapon rendertype may be in order...

The other solution woudl be, of course, to add ghost weapons that have a slower burstrate to mimic tracers. However, with units that will have upwards of 12 weapons needing tracers this is infeasible.

So the question is, how hard and/or possible would it be to create a new rendertype which will only render one out of ever defined number of shots from the weapon? So we could have weapons which only actually render the visuals for 1 out of every 5 shots, and so on.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: New weapon rendertype

Post by Peet »

Why don't you just emit-sfx a laser every few shots?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: New weapon rendertype

Post by KDR_11k »

I'd use a CEG instead, works fine for the MGs in Fibre.
SpikedHelmet
MC: Legacy & Spring 1944 Developer
Posts: 1948
Joined: 21 Sep 2004, 08:25

Re: New weapon rendertype

Post by SpikedHelmet »

Alright, KDR, which of your units does this, and which ceg is it?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: New weapon rendertype

Post by KDR_11k »

The muzzle_shredder is the effect in question though currently it's fired for every shot (reducing the number is trivially easy). Used on tanks (unit_tank), howlers (unit_gunship), shredders (turret_shredder) and krakens (turret_sea). The actual weapons for all of these are invisible beamlasers since hitting air with actual lasercannons is pretty unlikely.
Post Reply

Return to “Engine”