Quantcast

Jump to content

» «
Photo

Prevent dead body

4 replies to this topic
HeresOtis
  • HeresOtis

    The SCM Undergrad

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

#1

Posted 17 April 2012 - 10:34 PM

How can I prevent the dead body of the actor using the code below from disappearing? I will eventually remove references but I need him to stay on screen for a while.
CODE
0AE1: 1@ = random_actor_near_point 22@ 23@ 24@ in_radius 20.0 find_next 0 pass_deads 0 //IF and SET

Deji
  • Deji

    Coding like a Rockstar!

  • Feroci Racing
  • Joined: 24 Dec 2007
  • None

#2

Posted 17 April 2012 - 11:19 PM

http://gtag.gtagamin...findpost&p=4610
http://gtag.gtagamin...findpost&p=4594

Close. Should be helpful smile.gif

HeresOtis
  • HeresOtis

    The SCM Undergrad

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

#3

Posted 17 April 2012 - 11:30 PM

Too advanced for me cry.gif

How do you NOP?

LINK/2012
  • LINK/2012

    LIVIN' IN CODE

  • Feroci Racing
  • Joined: 30 Jan 2011
  • Brazil

#4

Posted 18 April 2012 - 02:46 AM Edited by Link2012, 18 April 2012 - 02:52 AM.

QUOTE (HeresOtis @ Tuesday, Apr 17 2012, 20:30)
Too advanced for me cry.gif

How do you NOP?

The NOP opcode (most used) in assembly language is the opcode 0x90, This instruction does nothing relevant.
So, NOP 7 bytes means, replace the opcodes there in a range of 7 bytes with a new one, that does nothing.

CODE
// NOP 7 bytes @ 0x6121CD
0A8C: write_memory 0x6121CD size 4 value 0x90909090 virtual_protect 1
0A8C: write_memory 0x6121D1 size 2 value 0x9090 virtual_protect 1
0A8C: write_memory 0x6121D3 size 1 value 0x90 virtual_protect 1

HeresOtis
  • HeresOtis

    The SCM Undergrad

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

#5

Posted 18 April 2012 - 03:10 AM

So just copy and paste that? Does that work for all peds or can it be for one defined in a script?
And what if I want the ped to disappear again?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users