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/
--- altpluzf4 <altpluzf4@...> wrote:
> No not counterstrike, TFC. But, I'm not really
> looking to use it for
> the ammo of a weapon. I'm just wanting the general
> knowledge for other
> things.
>
> Thanks though, but I'm actually looking for the
> Memory editing
> information...
>
> --- In metamod@yahoogroups.com, David Anderson
> <player220101@...> wrote:
> >
> > You don't need memory hacks to do this. You can
> just
> > restore ammo values when you've detected
> low/depleted
> > clips in the CurWeapon network message.
> >
> > Assuming it's Counter-Strike you're dealing with,
> of
> > course. If that's the case, you may want to take
> a
> > look at the AMX Mod X code for hacking common
> > Counter-Strike properties:
> >
> >
>
http://svn.alliedmods.net/viewvc.cgi/trunk/dlls/cstrike/cstrike/?root=amxmodx
> >
> > ---David "BAILOPAN" Anderson
> > http://www.amxmodx.org/
> >
> > --- altpluzf4 <altpluzf4@...> wrote:
> >
> > > Hello. I'm new to this group (or any group
> > > actually.)
> > >
> > > Does anyone have any idea how I could use a
> metamod
> > > plugin to 'search'
> > > and/or 'alter' memory in Half-Life?
> > >
> > > I used to have a plugin that did this (or
> something
> > > similar) to 'lock'
> > > the ammo count in the current clip of whatever
> gun
> > > you were using. The
> > > result being infinite ammo without needing to
> > > reload.
> > >
> > > It's been several years, and I just keep drawing
> > > blanks when trying to
> > > recall how it was done. The original code (for
> the
> > > altering of the
> > > ammo) was given to me by someone, and I have no
> way
> > > of contacting them
> > > now.
> > >
> > > Thanks for any help or suggestions!
> > >
> > >
> >
> >
> >
> >
> >
> >
> >
>
________________________________________________________________________________\
____
> > Don't get soaked. Take a quick peek at the
> forecast
> > with the Yahoo! Search weather shortcut.
> >
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> >
>
>
>
________________________________________________________________________________\
____
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html