Search the web
Sign In
New User? Sign Up
metamod · Metamod Half-Life Utility Mod
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Memory Searching / Editing   Message List  
Reply | Forward Message #687 of 723 |
Re: [metamod] Re: Memory Searching / Editing

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



Fri Mar 23, 2007 2:10 am

player220101
Offline Offline
Send Email Send Email

Forward
Message #687 of 723 |
Expand Messages Author Sort by Date

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...
altpluzf4
Offline Send Email
Mar 18, 2007
6:21 pm

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...
David Anderson
player220101
Offline Send Email
Mar 18, 2007
8:03 pm

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...
altpluzf4
Offline Send Email
Mar 22, 2007
11:31 pm

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: ...
David Anderson
player220101
Offline Send Email
Mar 23, 2007
2:10 am

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...
altpluzf4
Offline Send Email
Mar 23, 2007
4:48 am

pvPrivateData is a void * pointer to the CBaseEntity structure in the HL1SDK. This structure is mod specific, but you can get an idea of the information in it...
David Anderson
player220101
Offline Send Email
Mar 23, 2007
6:26 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help