Sinn Posted January 6, 2009 Share Posted January 6, 2009 SET_STATE_OF_CLOSEST_DOOR_OF_TYPE(0xe64cf26a, -27,9f, -462,9f, 15,6f, 1, 0.0f); SET_STATE_OF_CLOSEST_DOOR_OF_TYPE(0x33a00d13, -27,57f, -465,9f, 16,27f, 1, 0.0f); SET_STATE_OF_CLOSEST_DOOR_OF_TYPE(0xe64cf26a, -27,57f, -466,55f, 16,27f, 1, 0.0f); SET_STATE_OF_CLOSEST_DOOR_OF_TYPE(0x33a00d13, -27,57f, -469,55f, 16,27f, 1, 0.0f); These are (probably) for the four doors of the bank. The first value of the 1st and 3rd are the same, aswell as the 2nd and 4th. This may be some pointer to the models or something, like the left door and the right door? The next i think are coordinates. In the script it also asks: if (DOES_OBJECT_OF_TYPE_EXIST_AT_COORDS(-27,57f, -463,55f, 16,27f, 2.0f, 0xe64cf26a)) { SET_STATE_OF_CLOSEST_DOOR_OF_TYPE(0xe64cf26a, -27,9f, -462,9f, 15,6f, 0, -1.0f); } The second to last is probably the lock code indeed, and i havent got a clue as to what the last means. Link to comment Share on other sites More sharing options...
sjaak327 Posted January 6, 2009 Share Posted January 6, 2009 (edited) ^if you search for the hex value in the link a few posts up, you will indeed see that the first parm are the hash codes for the left and right door, the 2nd, 3rd and 4th params are the x,y,z coordinates, the 5th and 6th are probably going to be 1 and 0 and maybe the other way around when closed, I tried this quickly with a lua script, but nothing happened to the doors. I'm also guessing that with alice and LUA, you need to put in the decimal value of the two doors (first param is in hex now, in the table are also dec provided). The last two parms need to be set accordingly for the doors to open or close. To do this in lua you would do the following for instance the first line: SET_STATE_OF_CLOSEST_DOOR_OF_TYPE(0xe64cf26a, -27,9f, -462,9f, 15,6f, 1, 0.0f); with alice and LUA this would go like this: function OpenDoor() PushInt(3863802474) PushFloat(x) PushFloat(y) PushFloat(z) PushInt(1) PushInt(0) CallNative("SET_STATE_OF_CLOSEST_DOOR_OF_TYPE") x=27,9 y=462,9 z=15,6 But I do believe for this to work, we will need to wait for a new version of alice. Edited January 6, 2009 by sjaak327 Link to comment Share on other sites More sharing options...
peterpolli Posted January 6, 2009 Share Posted January 6, 2009 hello sry I' m not very good in scripting can anybod please tell me which file I've got to mod? Because If I only delete this 3 lines in the int_door.ide it doesn't work. can an body help me or just load the moded file up at rapidshare or something I would love this mod so much !!! sr for m very bad english and respect for anbody how know how to do this difficult stuff >thanks for help< Link to comment Share on other sites More sharing options...
Sinn Posted January 7, 2009 Share Posted January 7, 2009 PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR = 0--Bankx=27,9y=462,9z=15,6function InitScript()Wait(10000)endfunction WaitForPlayerPoolCreation()while (IsPlayerPoolCreated() == 0) do Wait(2000)endendfunction WaitForValidPlayer()PLAYER_CHAR = 0repeat CallNative("GET_PLAYER_ID")PLAYER_ID = GetIntResult()if (PLAYER_ID >= 0) then PushInt(PLAYER_ID) CallNative("CONVERT_INT_TO_PLAYERINDEX") PLAYER_INDEX = GetIntResult() PushInt(PLAYER_INDEX) PushVarPtr() CallNative("GET_PLAYER_CHAR") PLAYER_CHAR = GetIntParam(1) if (PLAYER_CHAR <= 0) then Wait(1000) end enduntil (PLAYER_CHAR > 0) endfunction OpenDoor()PushInt(3863802474)PushFloat(x)PushFloat(y)PushFloat(z)PushInt(1)PushFloat(0.0)CallNative("SET_STATE_OF_CLOSEST_DOOR_OF_TYPE")endfunction main()InitScript()while true doif (IsKeyPressed(121) == 1) thenWaitForPlayerPoolCreation()WaitForValidPlayer() OpenDoor()Wait (1000)endWait(300)endend-- startmain(); Like that maybe? Why would we have to wait for a new version of alice? @peterpolli: only deleting those lines should result in the doors not being in the game anymore. If not, you probably deleted the wrong lines, so check again Link to comment Share on other sites More sharing options...
sjaak327 Posted January 7, 2009 Share Posted January 7, 2009 Alexander mentioned that the current version couldn't access any models, we are passing model hashes, so I guess it simply cannot work with alice 0.1. Link to comment Share on other sites More sharing options...
peterpolli Posted January 7, 2009 Share Posted January 7, 2009 OK thank you very much i will check it again Link to comment Share on other sites More sharing options...
Intosia Posted January 7, 2009 Share Posted January 7, 2009 Alexander mentioned that the current version couldn't access any models, we are passing model hashes, so I guess it simply cannot work with alice 0.1. So we need a C++ version Link to comment Share on other sites More sharing options...
peterpolli Posted January 7, 2009 Share Posted January 7, 2009 I delete this lines and go to the bank but I just don't work for me do I have to do something else or only deleting this lines ...? I don't install the gta iv magic patch or something like this is it necessary or not! there are still the orginal doors. should it look so: objs BM_lawyerDoor, null, 100, 79822848, 6, 0.000694633, -0.0926045, -1.25, 1.50998, 0.0956695, 1.25071, 0.755339, 0.00153251, 0.000357389, 1.46347, null BM_lawyerDoor_2a, null, 100, 79822848, 6, -0.000178933, -0.0926045, -1.25, 1.50911, 0.0956695, 1.25071, 0.754465, 0.00153251, 0.000357389, 1.46347, null CJ_BOAT_DOOR, null, 40, 79822848, 6, -0.0102099, -0.120927, -1.13432, 1.20605, 0.190744, 1.13432, 0.597922, 0.0349085, 1.19209e-007, 1.29645, null (and so on) or so: objs BM_lawyerDoor, null, 100, 79822848, 6, 0.000694633, -0.0926045, -1.25, 1.50998, 0.0956695, 1.25071, 0.755339, 0.00153251, 0.000357389, 1.46347, null BM_lawyerDoor_2a, null, 100, 79822848, 6, -0.000178933, -0.0926045, -1.25, 1.50911, 0.0956695, 1.25071, 0.754465, 0.00153251, 0.000357389, 1.46347, null CJ_BOAT_DOOR, null, 40, 79822848, 6, -0.0102099, -0.120927, -1.13432, 1.20605, 0.190744, 1.13432, 0.597922, 0.0349085, 1.19209e-007, 1.29645, null (and so on) thanks for help Link to comment Share on other sites More sharing options...
pinky Posted January 7, 2009 Share Posted January 7, 2009 They are for the door in the Lawyers office and not the Bank, the clue is in the name. I just deleted them all so I get get into most interiors. Beware though, deleting these doors causes similar ide problems to adding in the missing Lost bikes. You will get map objects popping up in silly places and car spawning gets ropey. just create a backup first and return to the original once you have seen what you want in the locked buildings. Link to comment Share on other sites More sharing options...
oinkoink Posted January 7, 2009 Share Posted January 7, 2009 Just a test with Aru's Script Hook... Download -- 'BankDoors.asi' With [F10] you can open/close the doors. SET_STATE_OF_CLOSEST_DOOR_OF_TYPE(modelHash, x, y, z, open/close, swingSide);1 = close0 = open -- Hook-Stuff: [scripting.h] static void SetStateOfClosestDoorOfType(u32 nameHash, f32 x, f32 y, f32 z, b8 enable, f32 swingSide) { NativeInvoke::Invoke<scriptVoid>("SET_STATE_OF_CLOSEST_DOOR_OF_TYPE", nameHash, x, y, z, enable, swingSide); } HaveFun! Link to comment Share on other sites More sharing options...
peterpolli Posted January 7, 2009 Share Posted January 7, 2009 where I have to put the asi file ? I have the alice mod but I don't know what to do with asi? Can you please help me ? Link to comment Share on other sites More sharing options...
sjaak327 Posted January 7, 2009 Share Posted January 7, 2009 Put the Asi into your GTAIV game directory. Link to comment Share on other sites More sharing options...
Sinn Posted January 7, 2009 Share Posted January 7, 2009 Ok cool, tnx Link to comment Share on other sites More sharing options...
peterpolli Posted January 7, 2009 Share Posted January 7, 2009 only in the GTA folder ? Link to comment Share on other sites More sharing options...
Cyborg11 Posted January 7, 2009 Share Posted January 7, 2009 Put it in the Alice Folder in your GTA IV folder @oinkoink: Which door can I open with your mod? Link to comment Share on other sites More sharing options...
oinkoink Posted January 7, 2009 Share Posted January 7, 2009 Only the LibertyCityBank doors...see the 1st post on the 1st page it's a much better pic. Oh...of course the asi file should be in the GTA IV main folder and you need also an asi loader (binkhooked or xliveless). Babatschi Link to comment Share on other sites More sharing options...
peterpolli Posted January 7, 2009 Share Posted January 7, 2009 yes It works very good job well done tanks a lot the mod is great very cool ! respect for everybody who understand what they done (I' m not really but it works) Link to comment Share on other sites More sharing options...
katsumotoo Posted January 8, 2009 Share Posted January 8, 2009 Pls can you make more buildings opened like those on LC bank??? Comrades and Jacobs house and many others???? And why arent people inside the bank after pushing F10??? Link to comment Share on other sites More sharing options...
ShotSkydiver Posted January 9, 2009 Share Posted January 9, 2009 Pls can you make more buildings opened like those on LC bank??? Comrades and Jacobs house and many others???? And why arent people inside the bank after pushing F10??? Probably because the Bank isn't a ped spawn location in the normal game. It wasn't needed because you weren't supposed to access the interior outside of the mission. Link to comment Share on other sites More sharing options...
sjaak327 Posted January 9, 2009 Share Posted January 9, 2009 Pls can you make more buildings opened like those on LC bank??? Comrades and Jacobs house and many others???? And why arent people inside the bank after pushing F10??? Probably because the Bank isn't a ped spawn location in the normal game. It wasn't needed because you weren't supposed to access the interior outside of the mission. Well actually, I didn't use the "open door" asi, instead I just telported inside, and yes there are people, sometimes only employees (one or two), sometimes also customers. Link to comment Share on other sites More sharing options...
pinky Posted January 9, 2009 Share Posted January 9, 2009 Probably just depends on the time of day you are in there too. Link to comment Share on other sites More sharing options...
gta-pilot Posted January 9, 2009 Share Posted January 9, 2009 Ok ok.... But how can i get now in the bank D:? Link to comment Share on other sites More sharing options...
187monk Posted January 10, 2009 Share Posted January 10, 2009 Ok ok.... But how can i get now in the bank D:? Hit f10 Link to comment Share on other sites More sharing options...
gta-pilot Posted January 10, 2009 Share Posted January 10, 2009 Ok can please someone explane it to me? I'v downloaded the .asi i did it in the GTA IV main folder. I start up te game i went looking for the bank of liberty city. I found one but the doors did not open. Can someone make a blip on the richt location? Clickerdie click Link to comment Share on other sites More sharing options...
KingBulleT 8747 Posted January 10, 2009 Share Posted January 10, 2009 Big, somewhere in this street Link to comment Share on other sites More sharing options...
GTA_XP Posted January 10, 2009 Share Posted January 10, 2009 Holey f*ck! Am I dreaming?! Where am I? In the GTA4 heaven? This Enterable buildings owns GTA SA enterable buildings!!!! Link to comment Share on other sites More sharing options...
Nerdman3000 Posted January 10, 2009 Share Posted January 10, 2009 What about other stuff, like Mr. Fustuins mansion, or Jimmy Pegrniros house. Link to comment Share on other sites More sharing options...
Schallerboy20 Posted January 11, 2009 Share Posted January 11, 2009 Make that one police station used in the cutscenes openable IF possible, It'd be good for us who like to pretend we're LCPD Link to comment Share on other sites More sharing options...
LAPD 85 Posted January 11, 2009 Share Posted January 11, 2009 Make that one police station used in the cutscenes openable IF possible, It'd be good for us who like to pretend we're LCPD Why not make one mod that makes all buildings enterable, open and unlocked, instead of one for each building? Link to comment Share on other sites More sharing options...
buzbegone Posted January 11, 2009 Share Posted January 11, 2009 Why not let vob do his work without people making requests and clogging up this topic A checklist for him would be nice though to keep track of the unlocked interiors in the event that they actually are unlocked Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now