KGunZ Snifer Scope

Results 1 to 9 of 9
  1. #1
    Enthusiast ndannyy is offline
    MemberRank
    Sep 2010 Join Date
    45Posts

    thumbs up KGunZ Snifer Scope

    If anybody has the code already embedded in the launcher, please upload it for me, thanks!


  2. #2
      Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    Re: KGunZ Snifer Scope

    What exactly are you looking for? You didn't make sense.

  3. #3
    Enthusiast Skyhigh122 is offline
    MemberRank
    Mar 2011 Join Date
    41Posts

    Re: KGunZ Snifer Scope

    there is no such thing.

  4. #4
    Enthusiast ndannyy is offline
    MemberRank
    Sep 2010 Join Date
    45Posts

    Re: KGunZ Snifer Scope

    When you press your flip button (Default = right click) you get a zoomed in scope instead of turning invisible. I believe evil gunz has it too.

  5. #5
    Enthusiast Skyhigh122 is offline
    MemberRank
    Mar 2011 Join Date
    41Posts

    Re: KGunZ Snifer Scope

    its coding.

  6. #6
    Aristrum Mark is offline
    MemberRank
    Aug 2007 Join Date
    United KingdomLocation
    474Posts

    Re: KGunZ Snifer Scope

    Quote Originally Posted by ndannyy View Post
    When you press your flip button (Default = right click) you get a zoomed in scope instead of turning invisible. I believe evil gunz has it too.
    That's because I coded it for them, and as far as I know KGunZ doesn't have it (that is, I've not heard anyone talk about it up until now.)

  7. #7
    Enthusiast Skyhigh122 is offline
    MemberRank
    Mar 2011 Join Date
    41Posts

    Re: KGunZ Snifer Scope

    you coded it? COOL!

  8. #8
      Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    Re: KGunZ Snifer Scope

    Is this useful by any chance?

    Quote Originally Posted by Eugene from GunzDev View Post
    Fix The Scope
    The sniper weapon in Gunz has no delay on the right click to activate the 'scope' and allow you to shoot. This makes it hard for people to effectivly use the sniper in Gunz. One way to fix this is adding a timer on the function that is called when you activate the 'scope'.

    ZMyCharacter::OnGadget_Snifer

    The function was actually supposed to be ZMyCharacter::OnGadget_Sniper but MAIET spelled it wrong.

    For this example I'll use CDetours to hook the function for June 2007 client. After this hook is applied, there will be a 100 millisecond timeout on the scope function so you can scope normally.

    Code:
    DWORD g_dwLastSnifer = 0;
    CDetour SniferDet;
    void __stdcall SniferHook()
    {
    	if(GetTickCount() - g_dwLastSnifer < 100) 
    		SniferDet.Ret(false);
    
    	g_dwLastSnifer = GetTickCount();
    }
    	
    	
    BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID)
    {
    	if(dwReason == DLL_PROCESS_ATTACH)
    	{
    		SniferDet.Detour((PBYTE)0x4806B0, (PBYTE)SniferHook, true);
    		SniferDet.Apply();
    	}
    	return TRUE;
    }

    Allow scope while wallrunning
    Gunz also won't let you scope while you are wall running. You can remove this with an asm edit.

    If you look at 00480C33, you will find this is the first check in ZMyCharacter::ProcessGadget. This checks a bool to determine if your currently wallrunning.

    Code:
    00480C33                                                 .  F607 02             TEST BYTE PTR DS:[EDI],2
    00480C36                                                 .  0F85 48010000       JNZ gunz.00480D84
    Removing it will allow you to use scope while wall running, thus also allowing you to shoot while wall running.

    Code:
    VirtualProtect((void*)0x00480C33, 9, PAGE_EXECUTE_READWRITE, 0);
    memcpy((void*)0x00480C33, "\x90\x90\x90\x90\x90\x90\x90\x90\x90", 9);
    VirtualProtect((void*)0x00480C33, 9, PAGE_EXECUTE_READ, 0);
    Address clients
    oct 2008 - 4806B0 | 4846E7
    jun 2008 - 47FA10 | 483977
    jun 2007 - 47C9D0 | 480C33

    That's all. Now it's much easier to pwn people with a sniper on gunz.

  9. #9
    Aristrum Mark is offline
    MemberRank
    Aug 2007 Join Date
    United KingdomLocation
    474Posts

    Re: KGunZ Snifer Scope

    Phoenix, that adds a delay between scoping and allows you to scope whilst wall running :).



Advertisement