KnightMare
12-27-2007, 10:42 PM
I would like the zoom level to change to 2 when I release the zoom key. I cant seem to find something like this for T1.
[T1] Reset zoom on key releaseKnightMare 12-27-2007, 10:42 PM I would like the zoom level to change to 2 when I release the zoom key. I cant seem to find something like this for T1. GreyHound 12-28-2007, 08:06 AM Found in andrews cfg // [meph]DooM! // // Regular 2/5/10/20X zoom range, but when you zoom out it will automatically reset it back to 2X. // // $Zoom::Zoom = 1; // T1 zoom defaults to at 5x $Zoom::DefaultZoom = 2; $Zoom::ResetZoom = true; // zooming in function Zoom::Zoom() { postAction(2048, IDACTION_SNIPER_FOV, 1.000000); } // releasing zoom function Zoom::UnZoom() { postAction(2048, IDACTION_SNIPER_FOV, 0.000000); if( $Zoom::ResetZoom ) Zoom::resetZoom(); } // cycling zoom levels function Zoom::ZoomIn() { postAction(2048, IDACTION_INC_SNIPER_FOV, 1.000000); if( $Zoom::Zoom < 4 ) $Zoom::Zoom++; else $Zoom::Zoom = 1; } function Zoom::ZoomOut() { postAction(2048, IDACTION_INC_SNIPER_FOV, 1.000000); postAction(2048, IDACTION_INC_SNIPER_FOV, 1.000000); postAction(2048, IDACTION_INC_SNIPER_FOV, 1.000000); $Zoom::Zoom--; } // reset zoom to desired zoom when we zoom out function Zoom::resetZoom() { while( $Zoom::Zoom != $Zoom::DefaultZoom ) Zoom::ZoomIn(); } function Zoom::JoinResetZoom() { $Zoom::Zoom = 2; Zoom::resetZoom(); } // Events... Event::Attach(eventConnec ted, "Zoom::JoinResetZoom();"); KnightMare 12-28-2007, 02:25 PM I cant seem to get the actual zoom resetting to work. GreyHound 12-28-2007, 06:37 PM what did you bind? mine looks like bindCommand(keyboard0, make, "f", TO, "Zoom::Zoom();"); bindCommand(keyboard0, break, "f", TO, "Zoom::UnZoom();"); bindCommand(keyboard0, make, "z", TO, "Zoom::ZoomIn();"); f would be the key to actually "zoom" and z to toogle zoom ranges KnightMare 12-28-2007, 09:54 PM forgot to bind zoomin(); , thank you. | ||