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

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

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

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
Pandemic

[Q] [GTA IV] Sitting Mod

Recommended Posts

Pandemic

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

 

Share this post


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.

Share this post


Link to post
Share on other sites
Pandemic

Mh.

 

Can i help you with your Drug Mod?

Share this post


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

Share this post


Link to post
Share on other sites
Pandemic

 

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

Share this post


Link to post
Share on other sites
Hergonan
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.

Share this post


Link to post
Share on other sites
Darecki

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

Share this post


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

Share this post


Link to post
Share on other sites
Pandemic

 

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 ?

Share this post


Link to post
Share on other sites
Hergonan

I will check soon if it's possible.

Share this post


Link to post
Share on other sites
Rawmeat
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!

Share this post


Link to post
Share on other sites
Hergonan

user posted image

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

Share this post


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?

Share this post


Link to post
Share on other sites
Pandemic

 

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

Share this post


Link to post
Share on other sites
Pandemic

 

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

Share this post


Link to post
Share on other sites
Hergonan

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

Share this post


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.

Share this post


Link to post
Share on other sites
Pandemic

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.

Share this post


Link to post
Share on other sites
Hergonan

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

Share this post


Link to post
Share on other sites
Rawmeat

hahah! That's one funny picture, what the f*ck is he sitting there for biggrin.gif

Share this post


Link to post
Share on other sites
Maddy25

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

Share this post


Link to post
Share on other sites
Rawmeat

Just a question, where do you put the .lib file?

Share this post


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

Share this post


Link to post
Share on other sites
Hergonan

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

Share this post


Link to post
Share on other sites
Rawmeat

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

Share this post


Link to post
Share on other sites
Hergonan

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);   } 	} }}

 

Share this post


Link to post
Share on other sites
Rawmeat

Yeah i'm using Xliveless, i didn't even have a plugins folder so i made one and it worked smile.gif Thanks!

Share this post


Link to post
Share on other sites
Pandemic

If someone create it a NetScript could, I would be very grateful.

Share this post


Link to post
Share on other sites
P_4_CZT1

it works with the .asi but not in multiplayer why?

Share this post


Link to post
Share on other sites
Hergonan

Probably because you're not the server

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 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.