Shield centre point (Help!)

Shield centre point (Help!)

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

Post Reply
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Shield centre point (Help!)

Post by Saktoth »

It appears the centre of the shield is based around the 0 position on the model, rather than on where the weapon slot it takes up aims/fires from. The visible shield shell will appear centred around the weapon point, but the actual deflection will still take place as if the shield is at the centre of the model. Very frustrating. Even more confusing, this doesnt seem to apply to beamlasers (which will collide with the visible shell as you'd expect them to).

I believe Dozers had shields that only deflected on the front of the model. How was this done? Just using beamlasers? Is there a way to fix this bug?
User avatar
Mr.Frumious
Posts: 139
Joined: 06 Jul 2006, 17:47

Post by Mr.Frumious »

http://spring.clan-sy.com/phpbb/viewtopic.php?t=8284

Reading it over, dozers used lasers.

Also, I noticed that KDR observed that his D-gun would hit obstacles, and how this was a frustrating bug. Funny, everything old is new again. Probably the new "hardcored to fire at ground instead of units" would screw up dozers gameplay even further.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

I had other weapons in dozers before but since only beamlasers consistently stop at the edge of the shield I couldn't use them. I'm not certain if the off-center shield got ignored by other weapons, that might explain something but for testing with full accuracy you need really slow shots.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

Another irritating quirk of shields is that some projectiles collide/are deflected by a CYLINDRICAL primitive. Rage.
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Post by Saktoth »

Mm thats certainly not what is happening with the beamlasers, they collide perfectly with the visible shield and miss it when fired above or below. What weapon types collide with a cylinder?

Weird. I guess this can go in the 'needs fix' basket then...
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

Plasma and possibly missiles, iirc. I think they collide properly with the sphere above the equator of it, and below they act as if it's a cylinder.
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Post by Saktoth »

Well, since its impossible to actually raise the height of the shield (other than against beamlasers), how can you even tell how it behaves below the equator?

I suppose you could do it with air..

Are you sure what you are observing is a cylinder below the equator and not just a result of trying to raise a shield sphere upwards, and finding that it stays on the ground (IE it will collide below the actual sphere)?
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

Saktoth wrote:Well, since its impossible to actually raise the height of the shield (other than against beamlasers), how can you even tell how it behaves below the equator?
If the unit's center is above ground (or if my unit's shield is emitted from the proper place..I'll check when I get home).
Are you sure what you are observing is a cylinder below the equator and not just a result of trying to raise a shield sphere upwards, and finding that it stays on the ground (IE it will collide below the actual sphere)?
Yes, the collision surface fits the rendering perfectly above the middle.

I'll upload the simbase sdd (very wip-ish) tonight, the commander shows this bug perfectly.
Post Reply

Return to “Game Development”