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

 Can I do these things with native script?

 mod player mass, 1st person view,
 
playaindahood  
Posted: Monday, Apr 9 2012, 06:48
Quote Post


Cooljunk Productions
Group Icon
Group: Members
Joined: Apr 4, 2008

sy.gif

XXXXX



There's a few things I would like to be able to do by modifying the native script, so without doing any .ini sh*t.

Just three mods. Modifying player mass, like making the player weight 900 tons so when I run into a car, it it thrown across the street, doing 1st person view, which hopefully can be done with the native script, and then making explosive projectiles. So normal bullets explode on impact.

These seem like possible things. If anyone know how I could do it, please let me know! thanks
Users WebsitePM
  Top
 

 
thaCURSEDpie  
Posted: Monday, Apr 9 2012, 13:26
Quote Post


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

XXXXX



Change player mass: I don't know how to do this, sorry. I think it's hard-coded.

1st person view: already made, search on google or gtagarage smile.gif. You'd best use C++ scripthook or .Net scripthook if you wanted to make this, though.

Bullets explode on impact: edit weaponinfo.xml (sorry, don't know a whole lot about that). Have a look on the wiki: gtamodding.com.
Or... hook internal functions, find bullet impact, create explosion (very time-consuming and hard, but awesome if you get it to work ^^).

Hope this helps.
PM
  Top
 

 
playaindahood  
Posted: Monday, Apr 9 2012, 14:09
Quote Post


Cooljunk Productions
Group Icon
Group: Members
Joined: Apr 4, 2008

sy.gif

XXXXX



QUOTE (thaCURSEDpie @ Monday, Apr 9 2012, 13:26)
Change player mass: I don't know how to do this, sorry. I think it's hard-coded.

1st person view: already made, search on google or gtagarage smile.gif. You'd best use C++ scripthook or .Net scripthook if you wanted to make this, though.

Bullets explode on impact: edit weaponinfo.xml (sorry, don't know a whole lot about that). Have a look on the wiki: gtamodding.com.
Or... hook internal functions, find bullet impact, create explosion (very time-consuming and hard, but awesome if you get it to work ^^).

Hope this helps.

Looks like the only thing I will be able to do is first person view, as I want this all to be done with scripts only. no weapon.xml modifying. Thanks tho.
Users WebsitePM
  Top
 

 
thaCURSEDpie  
Posted: Monday, Apr 9 2012, 15:05
Quote Post


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

XXXXX



If you use my StructEdit mod, you can edit the weapon-parameters in-game. Though that was more meant to support weaponinfo.xml modding. There are some functions in there to do it programmatically, but I never got around to documenting them and making them really useable. If you really want this, you could have a look at the source (https://github.com/thaCURSEDpie/StructEdit) and try to understand how it works. You could also modify the sourcecode to make it work for you smile.gif.

And with regards to the FPS mod: why would you want to make that if it's already made? Just as an exercise? tounge.gif.


Pretty much anything can be done through scripts and without changing files (apart from changing textures and such), but it takes some time reversing the game.
PM
  Top
 

 
Fantaseb  
Posted: Monday, Apr 9 2012, 16:12
Quote Post


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

uk.gif

XXXXX



QUOTE (playaindahood @ Monday, Apr 9 2012, 14:09)
QUOTE (thaCURSEDpie @ Monday, Apr 9 2012, 13:26)
Change player mass: I don't know how to do this, sorry. I think it's hard-coded.

1st person view: already made, search on google or gtagarage smile.gif. You'd best use C++ scripthook or .Net scripthook if you wanted to make this, though.

Bullets explode on impact: edit weaponinfo.xml (sorry, don't know a whole lot about that). Have a look on the wiki: gtamodding.com.
Or... hook internal functions, find bullet impact, create explosion (very time-consuming and hard, but awesome if you get it to work ^^).

Hope this helps.

Looks like the only thing I will be able to do is first person view, as I want this all to be done with scripts only. no weapon.xml modifying. Thanks tho.

So let me get this right you want you guns to shoot rockets from your guns like this?


http://www.youtube.com/watch?v=-czYDR8ZZsg


Well send me your weaponfile.xml for whatever version you are using and I will do it, for offline/online play smile.gif
PM
  Top
 

 
playaindahood  
Posted: Monday, Apr 9 2012, 20:37
Quote Post


Cooljunk Productions
Group Icon
Group: Members
Joined: Apr 4, 2008

sy.gif

XXXXX



QUOTE (Fantaseb @ Monday, Apr 9 2012, 16:12)
QUOTE (playaindahood @ Monday, Apr 9 2012, 14:09)
QUOTE (thaCURSEDpie @ Monday, Apr 9 2012, 13:26)
Change player mass: I don't know how to do this, sorry. I think it's hard-coded.

1st person view: already made, search on google or gtagarage smile.gif. You'd best use C++ scripthook or .Net scripthook if you wanted to make this, though.

Bullets explode on impact: edit weaponinfo.xml (sorry, don't know a whole lot about that). Have a look on the wiki: gtamodding.com.
Or... hook internal functions, find bullet impact, create explosion (very time-consuming and hard, but awesome if you get it to work ^^).

Hope this helps.

Looks like the only thing I will be able to do is first person view, as I want this all to be done with scripts only. no weapon.xml modifying. Thanks tho.

So let me get this right you want you guns to shoot rockets from your guns like this?


http://www.youtube.com/watch?v=-czYDR8ZZsg


Well send me your weaponfile.xml for whatever version you are using and I will do it, for offline/online play smile.gif

I'm afraid i'm not talking about rockets being produced. I want an effect similar to the explosive sniper rifle cheat in BOGT, but for original GTA 4, and can be produced by a script.

nothing having to do with the weaponinfo.xml.

@thaCURSEDpie, I messaged you, explaining what I'm doing with this scripting method. So it's not about challenging myself.
Users WebsitePM
  Top
 

 
Fantaseb  
Posted: Tuesday, Apr 10 2012, 03:04
Quote Post


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

uk.gif

XXXXX



QUOTE (playaindahood @ Monday, Apr 9 2012, 20:37)
QUOTE (Fantaseb @ Monday, Apr 9 2012, 16:12)
QUOTE (playaindahood @ Monday, Apr 9 2012, 14:09)
QUOTE (thaCURSEDpie @ Monday, Apr 9 2012, 13:26)
Change player mass: I don't know how to do this, sorry. I think it's hard-coded.

1st person view: already made, search on google or gtagarage smile.gif. You'd best use C++ scripthook or .Net scripthook if you wanted to make this, though.

Bullets explode on impact: edit weaponinfo.xml (sorry, don't know a whole lot about that). Have a look on the wiki: gtamodding.com.
Or... hook internal functions, find bullet impact, create explosion (very time-consuming and hard, but awesome if you get it to work ^^).

Hope this helps.

Looks like the only thing I will be able to do is first person view, as I want this all to be done with scripts only. no weapon.xml modifying. Thanks tho.

So let me get this right you want you guns to shoot rockets from your guns like this?


http://www.youtube.com/watch?v=-czYDR8ZZsg


Well send me your weaponfile.xml for whatever version you are using and I will do it, for offline/online play smile.gif

I'm afraid i'm not talking about rockets being produced. I want an effect similar to the explosive sniper rifle cheat in BOGT, but for original GTA 4, and can be produced by a script.

nothing having to do with the weaponinfo.xml.

@thaCURSEDpie, I messaged you, explaining what I'm doing with this scripting method. So it's not about challenging myself.

You don't need scripts to do that, just make the gun shoot rockets, slow down projectile rate, and make a new explosion in that explosion file, trust me bro I am from the xbox modding scene we where doing this stuff with guns before you guys knew how to alot of things.
PM
  Top
 

 
playaindahood  
Posted: Tuesday, Apr 10 2012, 03:29
Quote Post


Cooljunk Productions
Group Icon
Group: Members
Joined: Apr 4, 2008

sy.gif

XXXXX



QUOTE (Fantaseb @ Tuesday, Apr 10 2012, 03:04)
QUOTE (playaindahood @ Monday, Apr 9 2012, 20:37)
QUOTE (Fantaseb @ Monday, Apr 9 2012, 16:12)
QUOTE (playaindahood @ Monday, Apr 9 2012, 14:09)
QUOTE (thaCURSEDpie @ Monday, Apr 9 2012, 13:26)
Change player mass: I don't know how to do this, sorry. I think it's hard-coded.

1st person view: already made, search on google or gtagarage smile.gif. You'd best use C++ scripthook or .Net scripthook if you wanted to make this, though.

Bullets explode on impact: edit weaponinfo.xml (sorry, don't know a whole lot about that). Have a look on the wiki: gtamodding.com.
Or... hook internal functions, find bullet impact, create explosion (very time-consuming and hard, but awesome if you get it to work ^^).

Hope this helps.

Looks like the only thing I will be able to do is first person view, as I want this all to be done with scripts only. no weapon.xml modifying. Thanks tho.

So let me get this right you want you guns to shoot rockets from your guns like this?


http://www.youtube.com/watch?v=-czYDR8ZZsg


Well send me your weaponfile.xml for whatever version you are using and I will do it, for offline/online play smile.gif

I'm afraid i'm not talking about rockets being produced. I want an effect similar to the explosive sniper rifle cheat in BOGT, but for original GTA 4, and can be produced by a script.

nothing having to do with the weaponinfo.xml.

@thaCURSEDpie, I messaged you, explaining what I'm doing with this scripting method. So it's not about challenging myself.

You don't need scripts to do that, just make the gun shoot rockets, slow down projectile rate, and make a new explosion in that explosion file, trust me bro I am from the xbox modding scene we where doing this stuff with guns before you guys knew how to alot of things.

No, because if I do that, then the projectiles will not be accurate. they will bounce off sh*t, and I do not want the rate to be slower. I need an explosion produced on the exact position where there is a bullet hit.
Users WebsitePM
  Top
 

 
Fantaseb  
Posted: Wednesday, Apr 11 2012, 23:01
Quote Post


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

uk.gif

XXXXX



QUOTE (playaindahood @ Tuesday, Apr 10 2012, 03:29)
QUOTE (Fantaseb @ Tuesday, Apr 10 2012, 03:04)
QUOTE (playaindahood @ Monday, Apr 9 2012, 20:37)
QUOTE (Fantaseb @ Monday, Apr 9 2012, 16:12)
QUOTE (playaindahood @ Monday, Apr 9 2012, 14:09)
QUOTE (thaCURSEDpie @ Monday, Apr 9 2012, 13:26)
Change player mass: I don't know how to do this, sorry. I think it's hard-coded.

1st person view: already made, search on google or gtagarage smile.gif. You'd best use C++ scripthook or .Net scripthook if you wanted to make this, though.

Bullets explode on impact: edit weaponinfo.xml (sorry, don't know a whole lot about that). Have a look on the wiki: gtamodding.com.
Or... hook internal functions, find bullet impact, create explosion (very time-consuming and hard, but awesome if you get it to work ^^).

Hope this helps.

Looks like the only thing I will be able to do is first person view, as I want this all to be done with scripts only. no weapon.xml modifying. Thanks tho.

So let me get this right you want you guns to shoot rockets from your guns like this?


http://www.youtube.com/watch?v=-czYDR8ZZsg


Well send me your weaponfile.xml for whatever version you are using and I will do it, for offline/online play smile.gif

I'm afraid i'm not talking about rockets being produced. I want an effect similar to the explosive sniper rifle cheat in BOGT, but for original GTA 4, and can be produced by a script.

nothing having to do with the weaponinfo.xml.

@thaCURSEDpie, I messaged you, explaining what I'm doing with this scripting method. So it's not about challenging myself.

You don't need scripts to do that, just make the gun shoot rockets, slow down projectile rate, and make a new explosion in that explosion file, trust me bro I am from the xbox modding scene we where doing this stuff with guns before you guys knew how to alot of things.

No, because if I do that, then the projectiles will not be accurate. they will bounce off sh*t, and I do not want the rate to be slower. I need an explosion produced on the exact position where there is a bullet hit.

I wish I had that Tutorial to explain, later tommorow I will do a weap.xml for you with the guns like that, or I will paste it and you can modify you weap.xml file for it
PM
  Top
 

 
playaindahood  
Posted: Thursday, Apr 12 2012, 01:08
Quote Post


Cooljunk Productions
Group Icon
Group: Members
Joined: Apr 4, 2008

sy.gif

XXXXX



QUOTE (Fantaseb @ Wednesday, Apr 11 2012, 23:01)
QUOTE (playaindahood @ Tuesday, Apr 10 2012, 03:29)
QUOTE (Fantaseb @ Tuesday, Apr 10 2012, 03:04)
QUOTE (playaindahood @ Monday, Apr 9 2012, 20:37)
QUOTE (Fantaseb @ Monday, Apr 9 2012, 16:12)
QUOTE (playaindahood @ Monday, Apr 9 2012, 14:09)
QUOTE (thaCURSEDpie @ Monday, Apr 9 2012, 13:26)
Change player mass: I don't know how to do this, sorry. I think it's hard-coded.

1st person view: already made, search on google or gtagarage smile.gif. You'd best use C++ scripthook or .Net scripthook if you wanted to make this, though.

Bullets explode on impact: edit weaponinfo.xml (sorry, don't know a whole lot about that). Have a look on the wiki: gtamodding.com.
Or... hook internal functions, find bullet impact, create explosion (very time-consuming and hard, but awesome if you get it to work ^^).

Hope this helps.

Looks like the only thing I will be able to do is first person view, as I want this all to be done with scripts only. no weapon.xml modifying. Thanks tho.

So let me get this right you want you guns to shoot rockets from your guns like this?


http://www.youtube.com/watch?v=-czYDR8ZZsg


Well send me your weaponfile.xml for whatever version you are using and I will do it, for offline/online play smile.gif

I'm afraid i'm not talking about rockets being produced. I want an effect similar to the explosive sniper rifle cheat in BOGT, but for original GTA 4, and can be produced by a script.

nothing having to do with the weaponinfo.xml.

@thaCURSEDpie, I messaged you, explaining what I'm doing with this scripting method. So it's not about challenging myself.

You don't need scripts to do that, just make the gun shoot rockets, slow down projectile rate, and make a new explosion in that explosion file, trust me bro I am from the xbox modding scene we where doing this stuff with guns before you guys knew how to alot of things.

No, because if I do that, then the projectiles will not be accurate. they will bounce off sh*t, and I do not want the rate to be slower. I need an explosion produced on the exact position where there is a bullet hit.

I wish I had that Tutorial to explain, later tommorow I will do a weap.xml for you with the guns like that, or I will paste it and you can modify you weap.xml file for it

I can't use the weapon.xml file though. it's patched and there has not been a bypass yet.
Users WebsitePM
  Top
 

 
Fantaseb  
Posted: Thursday, Apr 12 2012, 17:14
Quote Post


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

uk.gif

XXXXX



QUOTE (playaindahood @ Thursday, Apr 12 2012, 01:08)
QUOTE (Fantaseb @ Wednesday, Apr 11 2012, 23:01)
QUOTE (playaindahood @ Tuesday, Apr 10 2012, 03:29)
QUOTE (Fantaseb @ Tuesday, Apr 10 2012, 03:04)
QUOTE (playaindahood @ Monday, Apr 9 2012, 20:37)
QUOTE (Fantaseb @ Monday, Apr 9 2012, 16:12)
QUOTE (playaindahood @ Monday, Apr 9 2012, 14:09)
QUOTE (thaCURSEDpie @ Monday, Apr 9 2012, 13:26)
Change player mass: I don't know how to do this, sorry. I think it's hard-coded.

1st person view: already made, search on google or gtagarage smile.gif. You'd best use C++ scripthook or .Net scripthook if you wanted to make this, though.

Bullets explode on impact: edit weaponinfo.xml (sorry, don't know a whole lot about that). Have a look on the wiki: gtamodding.com.
Or... hook internal functions, find bullet impact, create explosion (very time-consuming and hard, but awesome if you get it to work ^^).

Hope this helps.

Looks like the only thing I will be able to do is first person view, as I want this all to be done with scripts only. no weapon.xml modifying. Thanks tho.

So let me get this right you want you guns to shoot rockets from your guns like this?


http://www.youtube.com/watch?v=-czYDR8ZZsg


Well send me your weaponfile.xml for whatever version you are using and I will do it, for offline/online play smile.gif

I'm afraid i'm not talking about rockets being produced. I want an effect similar to the explosive sniper rifle cheat in BOGT, but for original GTA 4, and can be produced by a script.

nothing having to do with the weaponinfo.xml.

@thaCURSEDpie, I messaged you, explaining what I'm doing with this scripting method. So it's not about challenging myself.

You don't need scripts to do that, just make the gun shoot rockets, slow down projectile rate, and make a new explosion in that explosion file, trust me bro I am from the xbox modding scene we where doing this stuff with guns before you guys knew how to alot of things.

No, because if I do that, then the projectiles will not be accurate. they will bounce off sh*t, and I do not want the rate to be slower. I need an explosion produced on the exact position where there is a bullet hit.

I wish I had that Tutorial to explain, later tommorow I will do a weap.xml for you with the guns like that, or I will paste it and you can modify you weap.xml file for it

I can't use the weapon.xml file though. it's patched and there has not been a bypass yet.

I will make a video and upload to Youtube on how to bypass that, I was part of the X360 modding scene, we bypassed all these files within 10minutes of a patch.
PM
  Top
 

 
playaindahood  
Posted: Thursday, Apr 12 2012, 22:27
Quote Post


Cooljunk Productions
Group Icon
Group: Members
Joined: Apr 4, 2008

sy.gif

XXXXX



QUOTE (Fantaseb @ Thursday, Apr 12 2012, 17:14)
QUOTE (playaindahood @ Thursday, Apr 12 2012, 01:08)
QUOTE (Fantaseb @ Wednesday, Apr 11 2012, 23:01)
QUOTE (playaindahood @ Tuesday, Apr 10 2012, 03:29)
QUOTE (Fantaseb @ Tuesday, Apr 10 2012, 03:04)
QUOTE (playaindahood @ Monday, Apr 9 2012, 20:37)
QUOTE (Fantaseb @ Monday, Apr 9 2012, 16:12)
QUOTE (playaindahood @ Monday, Apr 9 2012, 14:09)
QUOTE (thaCURSEDpie @ Monday, Apr 9 2012, 13:26)
Change player mass: I don't know how to do this, sorry. I think it's hard-coded.

1st person view: already made, search on google or gtagarage smile.gif. You'd best use C++ scripthook or .Net scripthook if you wanted to make this, though.

Bullets explode on impact: edit weaponinfo.xml (sorry, don't know a whole lot about that). Have a look on the wiki: gtamodding.com.
Or... hook internal functions, find bullet impact, create explosion (very time-consuming and hard, but awesome if you get it to work ^^).

Hope this helps.

Looks like the only thing I will be able to do is first person view, as I want this all to be done with scripts only. no weapon.xml modifying. Thanks tho.

So let me get this right you want you guns to shoot rockets from your guns like this?


http://www.youtube.com/watch?v=-czYDR8ZZsg


Well send me your weaponfile.xml for whatever version you are using and I will do it, for offline/online play smile.gif

I'm afraid i'm not talking about rockets being produced. I want an effect similar to the explosive sniper rifle cheat in BOGT, but for original GTA 4, and can be produced by a script.

nothing having to do with the weaponinfo.xml.

@thaCURSEDpie, I messaged you, explaining what I'm doing with this scripting method. So it's not about challenging myself.

You don't need scripts to do that, just make the gun shoot rockets, slow down projectile rate, and make a new explosion in that explosion file, trust me bro I am from the xbox modding scene we where doing this stuff with guns before you guys knew how to alot of things.

No, because if I do that, then the projectiles will not be accurate. they will bounce off sh*t, and I do not want the rate to be slower. I need an explosion produced on the exact position where there is a bullet hit.

I wish I had that Tutorial to explain, later tommorow I will do a weap.xml for you with the guns like that, or I will paste it and you can modify you weap.xml file for it

I can't use the weapon.xml file though. it's patched and there has not been a bypass yet.

I will make a video and upload to Youtube on how to bypass that, I was part of the X360 modding scene, we bypassed all these files within 10minutes of a patch.

uhhhh. wow. well I just messaged you. also, I would make the video private. people like to abuse the hell out of those mods and spam rockets everywhere.
Users WebsitePM
  Top
 

 
iSmokeMeth  
Posted: Monday, Apr 16 2012, 22:55
Quote Post


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

XXXXX



returning the targeted ped u will have to figure out but probably 10 different ways u could

CODE
//place in a tick method
if ((Player.Character.Weapons.CurrentType == Weapons.BasicSniperRifle || Player.Character.Weapons.CurrentType == Weapons.SniperRifle_M40A1) &&
    GTA.Native.Function.Call<bool>("HAS_CHAR_BEEN_DAMAGED_BY_CHAR", targetedPed, Player.Character))
{
   World.AddExplosion(targetedPed.Position);
}


this is not tested and probably needs some changes but u CAN do what u want with a script and leave xml files alone, u could even toggle the script to be active when u want, so editing files the game loads to memory would require you to exit out and mess with moving files around... anyways i can already see some bugs that need squashing with my code but regardless u can see it is possible if u get creative

also u can mod player mass, just script what u want to happen to car if it hits niko or something, make him proof to all damage when a car is in range to hit him and record collisions and add explosion or apply force to car when it hits you. You probably need to know a thing or two about vector math to apply force in the direction u want

scripting isnt tough but being creative is the difficult part because u can literally do anything u want if u think hard enough, that's why i love coding and am addicted to scripting for gta, possibilities are almost limitless ;D

This post has been edited by iSmokeMeth on Tuesday, Apr 17 2012, 04:01
PM
  Top
 

 

1 User(s) are reading this topic (1 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