View source for Improve The Third Person View with Zoom - EDukeWiki

# View source for Improve The Third Person View with Zoom

← Improve The Third Person View with Zoom

You do not have permission to edit this page, for the following reasons:

- The action you have requested is limited to users in the group: Users.
- You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

Add this code to GAME.CON, after <code>include USER.CON</code>. gamevar cameraonwall 0 1 gamevar camzoomcontrol 65536 1 onevent EVENT_LOOKUP setvar RETURN -1 addvar camzoomcontrol -8192 // cam zoom in speed ifvarl camzoomcontrol 0 setvar camzoomcontrol 0 // cam max zoom in endevent onevent EVENT_LOOKDOWN setvar RETURN -1 addvar camzoomcontrol 8192 // cam zoom out speed ifvarg camzoomcontrol 1048576 setvar camzoomcontrol 1048576 // cam max zoom out endevent onevent EVENT_DISPLAYROOMS setvar [[cameradist]] 0 updatesectorz [[camerax]] [[cameray]] [[cameraz]] cameraonwall ifvarn cameraonwall -1 addvarvar cameradist camzoomcontrol else { addvar camzoomcontrol -8192 addvarvar cameradist camzoomcontrol } endevent

Return to Improve The Third Person View with Zoom.

Retrieved from "http://wiki.eduke32.com/wiki/Improve_The_Third_Person_View_with_Zoom"