Is it impossible to done "Zoom In/Out"?

Results 1 to 12 of 12
  1. #1
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Is it impossible to done "Zoom In/Out"?

    Hmm, I'm trying to do sniper cops with zoom in/out anyway:
    Code:
    		m_fDist -= add_distance;
    		if (m_fDist < m_fMinDist) m_fDist = m_fMinDist;
    		else if (m_fDist > m_fMaxDist) m_fDist = m_fMaxDist;
    		m_Eye.z = -m_fDist;
    It's not working. I'm asking if possible if yes any clues?


  2. #2
    Ecchi addicted adz28 is offline
    MemberRank
    Nov 2008 Join Date
    IkebukuroLocation
    524Posts

    Re: Is it impossible to done "Zoom In/Out"?

    Yes it is possible.
    Check ZWeaponScreenEffect and you will find other interesting things.

  3. #3
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Is it impossible to done "Zoom In/Out"?

    Quote Originally Posted by adz28 View Post
    Yes it is possible.
    Check ZWeaponScreenEffect and you will find other interesting things.
    Okey...
    Well I noticed something:
    Code:
    ((MBitmapR2*)m_pSniferPanel)->Create("snifer.png", RGetDevice(), "interface/Default/Combat/snifer.png");
    How I can use it? (I have snifer.png) any idea?

  4. #4
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Is it impossible to done "Zoom In/Out"?

    Original:
    Code:
    	case MWM_MOUSEWHEEL:
    		{
    			if ( ZGetGame()->IsReplay())
    				break;
    
    			int nDelta = pEvent->nDelta;
    
    			if ( (ZGetMyInfo()->IsAdminGrade() && ZGetCombatInterface()->GetObserver()->IsVisible()) ||
    				(ZGetGameInterface()->GetScreenDebugger()->IsVisible()) || 
    				(!ZGetGameInterface()->m_bViewUI))
    			{
    				ZCamera* pCamera = ZGetGameInterface()->GetCamera();
    				pCamera->m_fDist+=-(float)nDelta;
    				pCamera->m_fDist=max(CAMERA_DIST_MIN,pCamera->m_fDist);
    				pCamera->m_fDist=min(CAMERA_DIST_MAX,pCamera->m_fDist);
    				break;
    			}
    
    //			if (nDelta > 0)	ZGetGameInterface()->ChangeWeapon(ZCWT_PREV);
    //			else if (nDelta < 0) ZGetGameInterface()->ChangeWeapon(ZCWT_NEXT);
    		}break;
    Edited:
    Code:
    	case MWM_MOUSEWHEEL:
    		{
    			if ( ZGetGame()->IsReplay())
    				break;
    
    			int nDelta = pEvent->nDelta;
    
    			if ( (ZGetCombatInterface()->GetObserver()->IsVisible()) ||
    				(ZGetGameInterface()->GetScreenDebugger()->IsVisible()) || 
    				(!ZGetGameInterface()->m_bViewUI))
    			{
    				ZCamera* pCamera = ZGetGameInterface()->GetCamera();
    				pCamera->m_fDist+=-(float)nDelta;
    				pCamera->m_fDist=max(CAMERA_DIST_MIN,pCamera->m_fDist);
    				pCamera->m_fDist=min(CAMERA_DIST_MAX,pCamera->m_fDist);
    				break;
    			}
    
    //			if (nDelta > 0)	ZGetGameInterface()->ChangeWeapon(ZCWT_PREV);
    //			else if (nDelta < 0) ZGetGameInterface()->ChangeWeapon(ZCWT_NEXT);
    		}break;

    EDITEDITEDIT: I didn't test it, but it's common sense.

  5. #5
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Is it impossible to done "Zoom In/Out"?

    Quote Originally Posted by Vusion View Post
    Original:
    Code:
    	case MWM_MOUSEWHEEL:
    		{
    			if ( ZGetGame()->IsReplay())
    				break;
    
    			int nDelta = pEvent->nDelta;
    
    			if ( (ZGetMyInfo()->IsAdminGrade() && ZGetCombatInterface()->GetObserver()->IsVisible()) ||
    				(ZGetGameInterface()->GetScreenDebugger()->IsVisible()) || 
    				(!ZGetGameInterface()->m_bViewUI))
    			{
    				ZCamera* pCamera = ZGetGameInterface()->GetCamera();
    				pCamera->m_fDist+=-(float)nDelta;
    				pCamera->m_fDist=max(CAMERA_DIST_MIN,pCamera->m_fDist);
    				pCamera->m_fDist=min(CAMERA_DIST_MAX,pCamera->m_fDist);
    				break;
    			}
    
    //			if (nDelta > 0)	ZGetGameInterface()->ChangeWeapon(ZCWT_PREV);
    //			else if (nDelta < 0) ZGetGameInterface()->ChangeWeapon(ZCWT_NEXT);
    		}break;
    Edited:
    Code:
    	case MWM_MOUSEWHEEL:
    		{
    			if ( ZGetGame()->IsReplay())
    				break;
    
    			int nDelta = pEvent->nDelta;
    
    			if ( (ZGetCombatInterface()->GetObserver()->IsVisible()) ||
    				(ZGetGameInterface()->GetScreenDebugger()->IsVisible()) || 
    				(!ZGetGameInterface()->m_bViewUI))
    			{
    				ZCamera* pCamera = ZGetGameInterface()->GetCamera();
    				pCamera->m_fDist+=-(float)nDelta;
    				pCamera->m_fDist=max(CAMERA_DIST_MIN,pCamera->m_fDist);
    				pCamera->m_fDist=min(CAMERA_DIST_MAX,pCamera->m_fDist);
    				break;
    			}
    
    //			if (nDelta > 0)	ZGetGameInterface()->ChangeWeapon(ZCWT_PREV);
    //			else if (nDelta < 0) ZGetGameInterface()->ChangeWeapon(ZCWT_NEXT);
    		}break;

    EDITEDITEDIT: I didn't test it, but it's common sense.
    Hmm, okey? not working. How it supposed to work

  6. #6
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: Is it impossible to done "Zoom In/Out"?

    Work on something better than something already in the game, TRY working on game modes and inspire us, zzzz

  7. #7
    Ecchi addicted adz28 is offline
    MemberRank
    Nov 2008 Join Date
    IkebukuroLocation
    524Posts

    Re: Is it impossible to done "Zoom In/Out"?

    Quote Originally Posted by Joe9099 View Post
    Work on something better than something already in the game, TRY working on game modes and inspire us, zzzz
    OnlySniper Game mode where you can choose only maps for sniping? I guess many ppl want to zoom with the sniper <-<

  8. #8
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Is it impossible to done "Zoom In/Out"?

    Quote Originally Posted by adz28 View Post
    OnlySniper Game mode where you can choose only maps for sniping? I guess many ppl want to zoom with the sniper <-<
    XML edits :/.


    On-Topic: Did you try it in observer mode -.- ?

  9. #9
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Is it impossible to done "Zoom In/Out"?

    Quote Originally Posted by Vusion View Post
    XML edits :/.


    On-Topic: Did you try it in observer mode -.- ?
    And failed.

  10. #10
    Account Upgraded | Title Enabled! ForceGFX is offline
    MemberRank
    Jan 2012 Join Date
    The NetherlandsLocation
    412Posts

    Re: Is it impossible to done "Zoom In/Out"?

    Probaly no body will help.you at ragezone. You hve. ti find things like this by your self out
    Posted via Mobile Device

  11. #11
    Proficient Member Akunji is offline
    MemberRank
    Feb 2012 Join Date
    The NetherlandsLocation
    160Posts

    Re: Is it impossible to done "Zoom In/Out"?

    Quote Originally Posted by ForceGFX View Post
    Probaly no body will help.you at ragezone. You hve. ti find things like this by your self out
    Posted via Mobile Device
    Nobody helps because the only active people in 1.5 development on ragezone are server owners.

    And its quite obvious that somebody who owns a server is not giving his server functions away.

  12. #12
    Intelligent DoucheBag jur13n is offline
    MemberRank
    Jan 2008 Join Date
    Zwolle,Location
    1,946Posts

    Re: Is it impossible to done "Zoom In/Out"?

    Quote Originally Posted by qet123 View Post
    Hmm, okey? not working. How it supposed to work
    It's the scrolling in observe, he only enabled it for all users..



Advertisement