Pandemic 0 Posted March 9, 2009 Share Posted March 9, 2009 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 Link to post Share on other sites
CaptainDingo 0 Posted March 9, 2009 Share Posted March 9, 2009 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. Hopefully someone takes up the offer, but it's harder than it sounds. Link to post Share on other sites
Pandemic 0 Posted March 9, 2009 Author Share Posted March 9, 2009 Mh. Can i help you with your Drug Mod? Link to post Share on other sites
Nikkola bellic,Belgrade,Serbia 0 Posted March 9, 2009 Share Posted March 9, 2009 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 So you want this mod as well 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? Link to post Share on other sites
Pandemic 0 Posted March 9, 2009 Author Share Posted March 9, 2009 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. Link to post Share on other sites
Hergonan 1 Posted March 9, 2009 Share Posted March 9, 2009 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. 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
Darecki 7 Posted March 9, 2009 Share Posted March 9, 2009 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 0 Posted March 9, 2009 Share Posted March 9, 2009 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 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??? Link to post Share on other sites
Pandemic 0 Posted March 9, 2009 Author Share Posted March 9, 2009 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
Hergonan 1 Posted March 9, 2009 Share Posted March 9, 2009 I will check soon if it's possible. Link to post Share on other sites
Rawmeat 1 Posted March 9, 2009 Share Posted March 9, 2009 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. Hopefully someone takes up the offer, but it's harder than it sounds. Drug dealing mod sounds awesome I wish i could write scripts too! Link to post Share on other sites
Hergonan 1 Posted March 9, 2009 Share Posted March 9, 2009 A bit buggy, if there are no chairs around he just sits in the air Link to post Share on other sites
CaptainDingo 0 Posted March 9, 2009 Share Posted March 9, 2009 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 ). @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. Oh, but was Niko able to do that "Sit on nearest object" thing like you said? Link to post Share on other sites
Pandemic 0 Posted March 9, 2009 Author Share Posted March 9, 2009 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 Very, very nice. Respect! I Hope you Release it Soon. Greetz Link to post Share on other sites
Pandemic 0 Posted March 9, 2009 Author Share Posted March 9, 2009 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 Link to post Share on other sites
Hergonan 1 Posted March 9, 2009 Share Posted March 9, 2009 (edited) It's very easy to do 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); } Hahaha, what the f*ck Edited March 9, 2009 by Hergonan Link to post Share on other sites
CaptainDingo 0 Posted March 9, 2009 Share Posted March 9, 2009 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
Pandemic 0 Posted March 9, 2009 Author Share Posted March 9, 2009 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
Hergonan 1 Posted March 9, 2009 Share Posted March 9, 2009 (edited) 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 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 March 9, 2009 by Hergonan Link to post Share on other sites
Rawmeat 1 Posted March 9, 2009 Share Posted March 9, 2009 hahah! That's one funny picture, what the f*ck is he sitting there for Link to post Share on other sites
Maddy25 0 Posted March 9, 2009 Share Posted March 9, 2009 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
Rawmeat 1 Posted March 9, 2009 Share Posted March 9, 2009 Just a question, where do you put the .lib file? Link to post Share on other sites
Nikkola bellic,Belgrade,Serbia 0 Posted March 9, 2009 Share Posted March 9, 2009 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
Hergonan 1 Posted March 9, 2009 Share Posted March 9, 2009 (edited) 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 March 9, 2009 by Hergonan Link to post Share on other sites
Rawmeat 1 Posted March 9, 2009 Share Posted March 9, 2009 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) Link to post Share on other sites
Hergonan 1 Posted March 9, 2009 Share Posted March 9, 2009 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
Rawmeat 1 Posted March 9, 2009 Share Posted March 9, 2009 Yeah i'm using Xliveless, i didn't even have a plugins folder so i made one and it worked Thanks! Link to post Share on other sites
Pandemic 0 Posted March 10, 2009 Author Share Posted March 10, 2009 If someone create it a NetScript could, I would be very grateful. Link to post Share on other sites
P_4_CZT1 0 Posted March 10, 2009 Share Posted March 10, 2009 it works with the .asi but not in multiplayer why? Link to post Share on other sites
Hergonan 1 Posted March 10, 2009 Share Posted March 10, 2009 Probably because you're not the server Link to post Share on other sites