Results 1 to 7 of 7
  1. #1
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty

    [ODBG] Anti flash/stun

    Leech Approved by: Hell_Demon

    First thing you'll have to do is load up iw4mp.exe in ollydbg.
    Next, find -> all referenced text strings.

    Step 1:
    Search for -> drawDamageFlash


    Step 2:
    Follow it by pressing enter or double clicking the line


    Step 3:
    As can be seen in the picture
    MOV DWORD PTR DS:[7F0C60], EAX
    was what we were looking for.
    So, lets go to that addy


    Step 4:
    Now that we're at the location where this dvar is stored, we'll have to find references to it.


    Step 5:
    You'll end up with 3 refs.
    First one is where we came from(MOV DWORD PTR DS:[7F0C60], EAX)
    The second is where we'll want to go
    The third is the location of the cvar(from where we found the referece).
    So, right click the 2nd entry and click follow in disassembler.


    Step 6:
    In the function where we now arrived, the value of drawDamageFlash is compared to 0(off), if it is it makes a jump.
    Now there's two things we could do.
    1 is we change the JE(jump if equal) to JMP(always jump) to remove the flashbang effect
    or 2, we pray that this function handles all flash related stuff(so stun grenades too) and return 0 at the top.
    I chose for #2, so writeprocessmemory the following to the start of the function to disable flash and stun effects:
    B8 00 00 00 00 C3 90
    B8 00 00 00 00 is MOV EAX, 0
    EAX is the register used for return values.
    C3 = return
    90 is a nop(no operation), since the original command was 7 bytes long.


    Hope this helped

    __________________________________________________ ____

    All credits to Hell_Demon ofcourse. Thanks bud.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  2. The Following 6 Users Say Thank You to why06 For This Useful Post:

    'Bruno (02-28-2010),falzarex (02-25-2010),mookamoka3 (02-14-2011),Retoxified (02-25-2010),Void (02-25-2010),XGelite (02-25-2010)

  3. #2
    Retoxified's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    148
    Reputation
    8
    Thanks
    171
    Awsome! I got stuck on noflash since cg_drawshellshock method was patched
    Thanks for this ill look into it some more as I noticed it doesn't remove the slow movement while being stunned

  4. #3
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    this is nice. Thanks.

  5. #4
    |-|3|_][({}PT3R12's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    UnkwOwnS
    Posts
    449
    Reputation
    12
    Thanks
    472
    My Mood
    Twisted
    CA? Or what game, i tried using some console command like that but it didn't work =\

  6. #5
    Retoxified's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    148
    Reputation
    8
    Thanks
    171
    Quote Originally Posted by |-|3|_][({}PT3R12 View Post
    CA? Or what game, i tried using some console command like that but it didn't work =\
    modern warfare 2

  7. #6
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Good job hell_demon and why!
    -Rest in peace leechers-

    Your PM box is 100% full.

  8. #7
    falzarex's Avatar
    Join Date
    Apr 2008
    Gender
    male
    Location
    here
    Posts
    417
    Reputation
    14
    Thanks
    145
    Glad to see that the Hell_Demon lives on
    of course there are a whole list of engine console commands somewhere on the web
    Quote Originally Posted by falzarex aka myself
    GTFO FUCKER U DONT BELONG IN THE INTERNETZ WORLD COZ ITS MINE


    This is an epic fail resume
    Hello VBfags.
    A 'member' of the almighty C++ section will soon join you, he is 13 year old, has the IQ and typing skills of a VBfag, so I thought he would fit in here nicely.

    A few reasons why he should be in this section instead of the C++ section:
    1) He has the IQ of a VBfag.
    2) He has no sense of grammer/spelling at all.
    3) He thinks he is pro(like most of the people in here)
    4) He thinks copy pasting is fun(exactly what you guys do)
    5) He loves it up the ass(he will keep you VBfags nice and warm)

Similar Threads

  1. anti-flash goggles or patriot mask?
    By Shame in forum Combat Arms Discussions
    Replies: 17
    Last Post: 09-02-2011, 09:51 AM
  2. [OllyDBG]No flash/partial stun
    By Hell_Demon in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 2
    Last Post: 06-18-2010, 07:55 AM
  3. How do you do Anti flash?
    By Synns in forum Visual Basic Programming
    Replies: 15
    Last Post: 02-08-2010, 05:25 PM
  4. Flash Mx
    By Harvo in forum Spammers Corner
    Replies: 9
    Last Post: 08-24-2008, 05:19 PM
  5. HW Man's anti-vehicle mines
    By poiu123 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 01-05-2006, 07:42 AM