kripken / intensityengine

[Not active!] An open source platform for 3D games and virtual worlds
https://web.archive.org/web/20100222011320/http://www.syntensity.com/
Other
58 stars 15 forks source link

Camera-Ray(?) targetting causing unexpected "side effects". #2

Closed Occuliner closed 14 years ago

Occuliner commented 14 years ago

It appears that the MouseTarget is taken from a ray(?) or, is effectively a ray, because it hits the first thing from the center of the camera view, this makes sense in FirstPerson, but in ThirdPerson it creates unexpected behaviour. I first noticed in the drawingboard game, where if you stood near the tree and tried to draw on the wall it would draw on the tree if the tree was in between the camera and the player, it also allows for a evil exploit in InstaCTF I found on a map, you could stand behind a ledge as tall as you and click anywhere beyond the wall and it would still hit, effectively shooting through the wall, while any first-person, or third-person players not close enough, would just hit the wall, pretty much meaning you can stay behind a wall near-invincible, and shoot anyone who enters the room, an immediate game breaker.

So, by the looks of it you need to start using a ray from the player-model in ThirdPerson, but FirstPerson requires no modifications.

kripken commented 14 years ago

I think this was fixed since those maps. They use library 1.1 and 1.2, and Razanak uses 1.3, where it should work.

Do you still see the problem in Razanak?

Occuliner commented 14 years ago

Okay, I'll test it in Razanak. But if its still in InstaCTF thats quite bad, it was a persons edited map where the was a person-high wall near the only door into their flag room, so you just sniped everyone who entered the room, and no one could get you.

Occuliner commented 14 years ago

Okay, just tested, it also works in Razanak. http://i46.tinypic.com/2u8hwz6.jpg http://i49.tinypic.com/290ycg8.jpg

kripken commented 14 years ago

Thanks, I'll try to fix this soon.

kripken commented 14 years ago

Ok, this should now be fixed in Razanak (but not in the older games - they need to be upgraded to the latest library at some point, maybe when we have new maps for them).