IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Prevent dead body

 disappearing
 
HeresOtis  
Posted: Tuesday, Apr 17 2012, 22:34
Quote Post


Mark Chump
Group Icon
Group: Members
Joined: Apr 29, 2011

XXXXX



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
PM
  Top
 

 
Deji  
Posted: Tuesday, Apr 17 2012, 23:19
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



Users WebsitePM
  Top
 

 
HeresOtis  
Posted: Tuesday, Apr 17 2012, 23:30
Quote Post


Mark Chump
Group Icon
Group: Members
Joined: Apr 29, 2011

XXXXX



Too advanced for me cry.gif

How do you NOP?
PM
  Top
 

 
Link2012  
Posted: Wednesday, Apr 18 2012, 02:46
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



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


This post has been edited by Link2012 on Wednesday, Apr 18 2012, 02:52
PMMSN
  Top
 

 
HeresOtis  
Posted: Wednesday, Apr 18 2012, 03:10
Quote Post


Mark Chump
Group Icon
Group: Members
Joined: Apr 29, 2011

XXXXX



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?
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG