Results 1 to 1 of 1
  1. #1
    rawr im a tiger's Avatar
    Join Date
    Feb 2012
    On the edge of Sanity
    My Mood

    Nightvision (All Game Versions!)

    Quick tut, but I have no desire to spend a long time on something so simple. Please, if you don't understand, don't ask. If this is useful to you, you'll know.

    The addies I use here are 1.9.453.

    Nightvision is a byte flag on WeaponStyles (CG+0x0374). Cross-ref it in IDA (press X) and look through until you find a line that tests for a byte flag of 40h. This is the function that checks for nightvision. Pay particular attention to this section:

    .text:0051DDB8 YesNV:                                  ; CODE XREF: TestNightvision+E6j
    .text:0051DDB8                 pop     edi
    .text:0051DDB9                 pop     esi
    .text:0051DDBA                 mov     al, 1
    .text:0051DDBC                 pop     ebx
    .text:0051DDBD                 pop     ecx
    .text:0051DDBE                 retn
    .text:0051DDBF ; ---------------------------------------------------------------------------
    .text:0051DDBF NVTest:                                 ; CODE XREF: TestNightvision+CCj
    .text:0051DDBF                 test    byte ptr Weaponstyles, 40h
    .text:0051DDC6                 jnz     short YesNV
    .text:0051DDC8 NoNV:                                   ; CODE XREF: TestNightvision+C0j
    .text:0051DDC8                                         ; TestNightvision+D6j
    .text:0051DDC8                 pop     edi
    .text:0051DDC9                 pop     esi
    .text:0051DDCA                 xor     al, al
    .text:0051DDCC                 pop     ebx
    .text:0051DDCD                 pop     ecx
    .text:0051DDCE                 retn
    .text:0051DDCE TestNightvision endp
    The jnz there will trigger if the flag is found. Change it to a jump and it will always trigger, and you have nightvision. That approach, however, only works for IW5M and Tekno; it will crash your game on steam. On steam, you'll need to do something like this
    *(BYTE*)WEAPONSTYLES |= 0x40
    every frame or more.

    There, nightvision for all game versions.
    Last edited by rawr im a tiger; 10-10-2012 at 09:44 PM.

  2. The Following User Says Thank You to rawr im a tiger For This Useful Post:

    Kenshin13 (10-11-2012)

Similar Threads

  1. [Release] M-efti's MW2 SP Trainer 1.7 All game versions
    By pyton789 in forum Call of Duty 6 - Modern Warfare 2 (MW2) Hacks
    Replies: 92
    Last Post: 09-10-2013, 12:08 PM
  2. Steam Emulator - All Games - All Servers
    By Zhellbound in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 24
    Last Post: 12-05-2009, 09:32 PM
  3. [Release] all game crosshair
    By cow111 in forum Combat Arms Discussions
    Replies: 32
    Last Post: 09-12-2009, 05:40 PM
  4. how to get free stuff for all games
    By itachi1795 in forum CrossFire Hacks & Cheats
    Replies: 8
    Last Post: 04-24-2009, 04:55 AM
  5. Steam all games
    By Ze619 in forum General
    Replies: 15
    Last Post: 05-22-2007, 04:28 AM