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

Post mod/code requests in the Mod Requests topic

Post mod releases in the Mod Showroom

Read the Modding Rules BEFORE posting!

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

 Produce explosion on vehicle impact?

 when i hit a ped
 
playaindahood  
Posted: Monday, Apr 9 2012, 20:29
Quote Post


I lost the bet
Group Icon
Group: Members
Joined: Apr 4, 2008

us.gif

XXXXX



Does anyone know of a native script I could use to make it so an explosion is produced when your car collides with a pedestrian/other player?

It seems very possible. Thanks for any help
Users WebsitePMXbox Live
  Top
 

 
thaCURSEDpie  
Posted: Sunday, Apr 15 2012, 14:04
Quote Post


GTA:IV scripter
Group Icon
Group: Members
Joined: Jul 1, 2007

XXXXX



Considering your other posts and PMs, you're probably trying to do this on the console... But I'm just going to ignore that and explain how I'd do it (have already done it, actually):

Reverse GTAIV.exe -> find the function which gets called when a ped is hurt.
Find out who or what is causing the ped to get hurt.
Code a hook to detour the native code to your own code, then do the things needed.
Retour back to native code, so code execution can continue.

Have a look at my latest youtube vid, you can see it's working (though I don't put explosions, I play a sound upon hit).

GL.
PM
  Top
 

 
tickHooker  
Posted: Sunday, Apr 15 2012, 20:01
Quote Post


Player Hater
Group Icon
Group: BUSTED!
Joined: Apr 15, 2012

XXXXX



can you elaborate tcp?
PM
  Top
 

 
FaTony  
Posted: Sunday, Apr 15 2012, 20:47
Quote Post


C++ guy
Group Icon
Group: Members
Joined: Aug 12, 2011

XXXXX



Take a look at this thread.
PM
  Top
 

 
Fantaseb  
Posted: Sunday, Apr 15 2012, 22:01
Quote Post


One Nation, One Love, But Who? ;)
Group Icon
Group: BUSTED!
Joined: Oct 17, 2011

uk.gif

XXXXX



QUOTE (thaCURSEDpie @ Sunday, Apr 15 2012, 14:04)
Considering your other posts and PMs, you're probably trying to do this on the console... But I'm just going to ignore that and explain how I'd do it (have already done it, actually):

Reverse GTAIV.exe -> find the function which gets called when a ped is hurt.
Find out who or what is causing the ped to get hurt.
Code a hook to detour the native code to your own code, then do the things needed.
Retour back to native code, so code execution can continue.

Have a look at my latest youtube vid, you can see it's working (though I don't put explosions, I play a sound upon hit).

GL.

Well I geuss the PC modders dont know much GTA IV on Xbox 360 does not have a GTAIV.exe file like PC, scripts are not loaded that way for online use, we have a Defualt.xex and we cant mod that at all! So we use the Script_network.img and load all of our scripts from there, Xbox scripting is different from PC. If we could use the .XEX file it would be great but Jtags cant get online, so we do modding other ways.
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