Quantcast

Jump to content

» «
Photo

Disable shooting/fire weapon thru memory

3 replies to this topic
HeresOtis
  • HeresOtis

    The SCM Undergrad

  • Feroci
  • Joined: 29 Apr 2011
  • United-States

#1

Posted 25 July 2014 - 08:25 PM

Any memory address to disable player weapon shooting/disable fire weapon key?

 

What's the opposite of 0x90909090? How to re-enable a memory address?


Silent
  • Silent

    Moderating Cookie Monster

  • Feroci
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#2

Posted 26 July 2014 - 10:12 AM

Can't you use an opcode for that?

Also, the opposite of 0x90909090 is what the memory was before it was NOPed. Say, it's different for each case.

HeresOtis
  • HeresOtis

    The SCM Undergrad

  • Feroci
  • Joined: 29 Apr 2011
  • United-States

#3

Posted 26 July 2014 - 10:48 AM

Can't you use an opcode for that?

Also, the opposite of 0x90909090 is what the memory was before it was NOPed. Say, it's different for each case.

Lol I found the opcode. I couldn't find anything at first because a lot of the opcode descriptons changed since v1 (I believe) of sascm.

Anyways, its 0881.

 

So to re-enable, I store the value of the memory in a variable, then restore when I want to enable it?


Silent
  • Silent

    Moderating Cookie Monster

  • Feroci
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#4

Posted 26 July 2014 - 08:39 PM

That could do. Or just look up what's the original code.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users