Game Development Community

ZOOM???

by Edward Smith · in Torque Game Engine · 01/23/2002 (12:23 am) · 3 replies

Is there any code out there to get it to only zoom with some weapons? eg. a sniper rifle

#1
01/23/2002 (7:34 am)
I believe CrimeForce has zoom with it's sniper rifle but it's not in the demo or at least not that I saw. You can prolly contact them. There website is crimeforce.com
#2
01/23/2002 (7:57 am)
all i did was write onmount and onunmount functions for the weapons i wanted to be able to zoom with. in that function, besides the default mounting stuff, i set a variable canzoom to 1 if i want to zoom, 0 if i dont want to be able to with that weapon. then in default.bind.cs, i check that as a precondition to zoom.
Ryan
#3
01/23/2002 (8:51 pm)
mmm... I'll try tonight THX!