Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Cayo Perico Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA VI

      1. St. Andrews Cathedral
    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    6. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    7. GTA III

      1. Guides & Strategies
      2. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

[Q] [GTA IV] Sitting Mod


Pandemic

Recommended Posts

Hello,

 

I have a Question. It is Possible to create a Net.Script or Alice Script that Nico can Sitting on Benches, Chairs ?

The Peds arround LC can Sitting. And really cool was when Nico can this Animation too. Maybe someone can create this Script, i really hope that biggrin.gif

 

Link to post
Share on other sites
CaptainDingo

As I said in the other thread, it's 100% possible. But it would take a lot of work, and I'm in the middle of starting my new drug dealing mod. moto_whistle.gif

 

Hopefully someone takes up the offer, but it's harder than it sounds.

Link to post
Share on other sites
Nikkola bellic,Belgrade,Serbia
Hello,

 

I have a Question. It is Possible to create a Net.Script or Alice Script that Nico can Sitting on Benches, Chairs ?

The Peds arround LC can Sitting. And really cool was when Nico can this Animation too. Maybe someone can create this Script, i really hope that biggrin.gif

So you want this mod as well smile.gif Yes i hope I see such mod

I mean peds sit all the time in stairs/benches and Nikko can fly Heli,Fire RPGs,guns,Fight most people off but cant sit? notify.gif

Link to post
Share on other sites

 

I mean peds sit all the time in stairs/benches and Nikko can fly Heli,Fire RPGs,guns,Fight most people off but cant sit?

 

Thanks and Amen to Rockstar Games. lol.gif

Link to post
Share on other sites
As I said in the other thread, it's 100% possible. But it would take a lot of work, and I'm in the middle of starting my new drug dealing mod. moto_whistle.gif

 

Hopefully someone takes up the offer, but it's harder than it sounds.

Not really a lot of work...

There are sit and sitonnearestobject etc tasks, and I believe niko can perform them.

Link to post
Share on other sites

That would be cool... Too bad that Rockstar always've made incomplete games.. As for me of course. When they make one good thing, they forget about another one, more important than previous ;d

Link to post
Share on other sites
Nikkola bellic,Belgrade,Serbia
Not really a lot of work...

There are sit and sitonnearestobject etc tasks, and I believe niko can perform them.

Well I hope someone makes that smile.gif

 

  That would be cool... Too bad that Rockstar always've made incomplete games.. As for me of course. When they make one good thing, they forget about another one, more important than previous ;d

Yeah why they wouldnt implement features like sitting/hanging/stun punch move...etc WHEN THEY ARE ALREADY IN THERE??? notify.gif

Link to post
Share on other sites

 

Not really a lot of work...

There are sit and sitonnearestobject etc tasks, and I believe niko can perform them.

 

How much Time Cost that do build a Script for it?

Maybe, you can this ?

Link to post
Share on other sites
As I said in the other thread, it's 100% possible. But it would take a lot of work, and I'm in the middle of starting my new drug dealing mod. moto_whistle.gif

 

Hopefully someone takes up the offer, but it's harder than it sounds.

Drug dealing mod sounds awesome biggrin.gif I wish i could write scripts too!

Link to post
Share on other sites
CaptainDingo

 

Mh.

 

Can i help you with your Drug Mod?

Not really, not unless you have suggestions for it (and can bounce them off me in decent English, no offense but it's hard to understand you sometimes confused.gif).

 

@Hergonan:

 

Although I don't want to be the guy to make a mod for it, I did imagine an idea to teleport Niko to the proper seating position if he's around a bench/chair, but imagine the huge list of coordinates you'd need to get the location of every single seat in the game. suicidal.gif

 

Oh, but was Niko able to do that "Sit on nearest object" thing like you said?

Link to post
Share on other sites

 

A bit buggy, if there are no chairs around he just sits in the air

 

Oh my Good. This is so awesome! You really a Master of Scripting colgate.gif

Very, very nice. Respect!

I Hope you Release it Soon.

 

Greetz

Link to post
Share on other sites

 

Not really, not unless you have suggestions for it (and can bounce them off me in decent English, no offense but it's hard to understand you sometimes

 

You are Right. My English is really sh*t. But i hope that will better soon. Sorry confused.gif

Link to post
Share on other sites

It's very easy to do biggrin.gif

I'm just fixing its bugs etc, and learning the variables.

 

So far:

static void TaskSitDownOnNearestObject(Ped ped, u32 sitType, u32 p2, f32 x, f32 y, f32 z, u32 p6, f32 p7, u32 p8, u32 p9) {

NativeInvoke::Invoke<scriptVoid>("TASK_SIT_DOWN_ON_NEAREST_OBJECT", ped, sitType, p2, x, y, z, p6, p7, p8, p9);

}

 

user posted image

Hahaha, what the f*ck

Edited by Hergonan
Link to post
Share on other sites
CaptainDingo

 

lol.gif Those are two of the most ridiculously long pieces of code I've seen so far. My head would explode crunching the numbers.

Link to post
Share on other sites

A Question: Did you Build a Net.Script or a Alice Script? Sorry when this two Things are the Same.

And a Key, example " T " and Nico sitting on a Chear or something.

Link to post
Share on other sites

http://toxicfork.com/projects/gtaivmods/misc/sittingdown.zip

 

If you are near an object to sit down, press T to sit.

Press T to get up, if you are sitting down.

Don't try this in cinematics tounge.gif

 

Bugs: MANY objects can be sat down on, including, for example, ketchup bottles. Yeah.

 

F12 version: http://toxicfork.com/projects/gtaivmods/misc/sitdownf12.zip (Everything the same, except it works with f12 instead of T)

Edited by Hergonan
Link to post
Share on other sites

yeah this is a great mod idea, i had the same idea aswell, hope it gets a release without those mentioned bugs

Link to post
Share on other sites
Nikkola bellic,Belgrade,Serbia

So this may actually be done .f*cking awesome

Question-what about the stairs -possible to sit there as well

Peds certainly can

Link to post
Share on other sites

You put the .lib in the same folder as the dll

 

EDIT: Can people try the mod and tell me if it works?

Someone reported that it doesn't work.

It works for me, so we need to see if it works or not for others.

Edited by Hergonan
Link to post
Share on other sites

I tried putting both files in the GTAIV/scripts folder but i can't get it to work. Sorry but i'm a complete noob at this... it only load the other 3 scripts i have (I checked the console) confused.gif

Link to post
Share on other sites

Are you using an ASI loader or a DLL loader?

With an ASI loader you gotta rename the .dll into asi, place the .lib by that file, and then place those in your gtaiv folder.

Xliveless -> extract the rar into your gtaiv/plugins/ folder

 

Anyway, if it doesn't work, here's the code so someone can use it.

Scripting.h ->

 

static b8 IsSittingObjectNear(f32 p0, f32 p1, f32 p2, u32 p3) { return NativeInvoke::Invoke<b8>("IS_SITTING_OBJECT_NEAR", p0, p1, p2, p3); }static void TaskSitDownOnNearestObject(Ped ped, u32 sitType, u32 p2, f32 x, f32 y, f32 z, u32 p6, f32 p7, u32 p8, b8 teleport) {  NativeInvoke::Invoke<scriptVoid>("TASK_SIT_DOWN_ON_NEAREST_OBJECT", ped, sitType, p2, x, y, z, p6, p7, p8, teleport); }static Player GetPlayer(){ Player playerIndex = ConvertIntToPlayerIndex(GetPlayerId()); return playerIndex;}static Ped GetPlayerPed(){ Ped ped; GetPlayerChar(GetPlayer(), &ped); return ped;}

 

CustomFiberThread.cpp ->

 

	if((GetAsyncKeyState(VK_F12) & 1) != 0){ if(!IsCharInAnyCar(Scripting::GetPlayerPed())){ 	if(IsCharSittingIdle(Scripting::GetPlayerPed())){   TaskStandStill(Scripting::GetPlayerPed(),5); 	} 	else{   f32 x,y,z;   GetCharCoordinates(Scripting::GetPlayerPed(),&x,&y,&z);   if(IsSittingObjectNear(x,y,z,0)){   	   	TaskSitDownOnNearestObject(Scripting::GetPlayerPed(),2,0,x,y,z,0,0.0f,-2,0);   } 	} }}

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.