Thank you for your time.
I've learned basic assembly (via a 'cracking' tutorial *for
educational purposes*)
I'll look around and test some things and see what I come up with.
Thank you for the information.
Also, a while ago, I tried using something like, a for loop, checking
something like
if (*((int*)pEntity->pvPrivateData + i) == 6)
and set it to a clientcommand of "test"
Of course, that didn't help at all.... it just always said when i was
554, it was equal to 6
Apparently I'm not really understanding what pvPrivateData is. If you
have any information on this value, could you please explain.
Honestly, I've never learned any programming... I just saw metamod one
day, and got interested. So I downloaded simple sources like
ChickenMod, that I could easily read and understand, and I taught
myself the basics.
So, Thanks again for your help!
--- In metamod@yahoogroups.com, David Anderson <player220101@...> wrote:
>
> TFC has a CurWeapon message and we've got a bunch of
> TFC helpers (including ammo functions) for AMX Mod X.
> So my same message as before still applies.
>
> Source:
> http://svn.alliedmods.net/viewvc.cgi/trunk/dlls/tfcx/?root=amxmodx
>
> If you really want to go into memory hacks, it
> unfortunately goes beyond the scope of normal
> Metamod/HL1 API coding. However, I can tell you a few
> things you'll need:
> * learn x86 assembly
> * read about mprotect() / VirtualProtect()
> * get a cross-platform disassembler, such as IDA. If
> you just want quick disassemblies you can use
> 'objdump' on linux.
>
> Once you've got that, you can start looking for the
> TFC function that depletes a player's ammo, and
> patches it out. The HL1SDK will help you find this
> easily.
>
> ---David "BAILOPAN" Anderson
> http://www.amxmodx.org/
>