'Bruno (02-28-2010),falzarex (02-25-2010),mookamoka3 (02-14-2011),Retoxified (02-25-2010),Void (02-25-2010),XGelite (02-25-2010)
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
'Bruno (02-28-2010),falzarex (02-25-2010),mookamoka3 (02-14-2011),Retoxified (02-25-2010),Void (02-25-2010),XGelite (02-25-2010)
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
this is nice. Thanks.
CA? Or what game, i tried using some console command like that but it didn't work =\
Good job hell_demon and why!
-Rest in peace leechers-
Your PM box is 100% full.
Glad to see that the Hell_Demon lives on
of course there are a whole list of engine console commands somewhere on the web
Originally Posted by falzarex aka myself
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)