I made an "aiming down sights" script for Alex to use in Infested.
It IS possible to do that, contrary to what most people say.
http://erikkemmer.er.funpic.de/infested_...sights.mov
(Note that the map, textures and target models are obviously not part of Infested.)
The muzzle flash is also off. I don't know why.
That looks neat Bink, is there any way you could make a tut or example script on that?
It's easy. Think about it. Find what hand position puts he gun in the veery center. Then start a timer and each tick move the hand position an amount toward the x, y, and z that is the 'look down sight' position. Just script the reverse to go back. You can also add FOV values into it so it zooms in progressively. I have done it.
Nice bink.
Yeah, considering I could use it in my game as opposed to the bitmap which you hate. j/k
The trick is getting the sights to agree with where the bullets land.
Nice targets. I made some that did that too.
dimwit Wrote:The trick is getting the sights to agree with where the bullets land.
Nice targets. I made some that did that too.
Nah that's easy, you just use a crosshair that runs down the middle of the screen, and then line up the gun accordingly, and revert the crosshair back.
Bink: Nice, now I'm finally convinced that it's worth scripting that.
Alex: THANK YOU I never thought of lining up the gun with the center like that. >.<
ccccc Wrote:Alex: THANK YOU I never thought of lining up the gun with the center like that. >.<
Haha. I'm glad it helps.
I did some experimenting with this, but haven't had much success yet. I knew it was possible, I'm just not good enough with scripting. :P Since I've cancelled Solid Security I don't need it anymore. Nice job Bink.

Bink did it with animations. Speed-wise it's better.