render something in front of everything else?

see, i have this fps im making and when i climb up a ladder or stand next to a wall, the gun will go through the wall :S… So, what im trying to acheive is what you would get if you made an overlay scene with the gun. That way it would always show in front of everything and not go through anything. BUT, i need to have animations and all of the faces have “light” selected so that doesnt work…

anyone know how i can do it?

make the gun smaller and closer to the camera?

or make it so there is a ray at the tip of the gun and when the ray sees the wall the gun plays a ipo of going closer to the player

Put the gun on an overlay scene.
Copy all your lights to the overlay scene, and is the same spot.

When you creat the scene, make it a full copy, and delete everything exept for the lights and your gun.

that wont work when you add a overlay scene the things in the scene dont move with the player so they wont move with the lights

You need some good python scripting and (possibly more than one) ray sensor. To see a perfect example, download the Tribes demo and rub your gun against the wall.