Duke4.net Forums: Improved F7 view - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Improved F7 view  "zoom in & zoom out with F7 view"

User is offline   Muelsa 

  • Bad Mother Fucker

#1

When you are in F7 view, Use look up / look down to zoom in and out ( camera not go into walls ;) )

Posted Image

Posted Image

You can add this code in GAME.CON after lines "include DEFS.CON" and "include USER.CON" to try it

 

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 
  ifvare cameraonwall -1
	{ addvar camzoomcontrol -8192  addvarvar cameradist camzoomcontrol }
  endevent

0

User is offline   Jimmy 

  • Let's go Brandon!

#2

Added this to EdukeWiki:
http://wiki.eduke32.com/wiki/Improve_The_T..._View_with_Zoom
0

User is offline   Spiker 

#3

That's really cool!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options