Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

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

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    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. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. 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. Red Dead Redemption 2

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

    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
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

[GTAIV][Q]Enterable Building


vob775
 Share

Recommended Posts

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

^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 by sjaak327
Link to comment
Share on other sites

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 icon14.gificon14.gificon14.gif

 

>thanks for help<

Link to comment
Share on other sites

 

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 smile.gif

Link to comment
Share on other sites

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

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 biggrin.gif

Link to comment
Share on other sites

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

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

Just a test with Aru's Script Hook...

user posted image

 

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

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

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

yes It works

 

very good job

well done tanks a lot the mod is great very cool !

 

icon14.gif respect for everybody who understand what they done (I' m not really but it works)

Link to comment
Share on other sites

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

ShotSkydiver
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. wink.gif

Link to comment
Share on other sites

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. wink.gif

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

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

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

Schallerboy20

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 tounge.gif

Link to comment
Share on other sites

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 tounge.gif

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

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

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
 Share

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