Silver102 Posted February 15 Share Posted February 15 Hello. I have added a lot of vehicles including planes to my GTA and I wish they would appear in the sky along with planes like the at400 and the Andromada, but I don't know how. I tried to change it with "Model Variations" but it was to no avail. Link to comment Share on other sites More sharing options...
Jack Posted February 15 Share Posted February 15 (edited) 3 hours ago, Silver102 said: Hello. I have added a lot of vehicles including planes to my GTA and I wish they would appear in the sky along with planes like the at400 and the Andromada, but I don't know how. I tried to change it with "Model Variations" but it was to no avail. It's hardcoded. I think the function which controlls those random planes is: void CPlane::DoPlaneGenerationAndRemoval() { // 0x6CD2F0 // ... } Spoiler Yep, it does: injector::WriteMemory<DWORD>(0x6CDA0E + 6, MODEL_RUSTLER); injector::WriteMemory<DWORD>(0x6CDA31 + 6, MODEL_CROPDUST); injector::WriteMemory<DWORD>(0x6CDA54 + 6, MODEL_BEAGLE); injector::WriteMemory<DWORD>(0x6CDAB1 + 6, MODEL_POLMAV); injector::WriteMemory<DWORD>(0x6CDBA6 + 6, MODEL_ANDROM); injector::WriteMemory<DWORD>(0x6CDBC9 + 6, MODEL_AT400); Edited February 15 by Jack Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
Silver102 Posted February 15 Author Share Posted February 15 48 minutes ago, Jack said: It's hardcoded. I think the function which controlls those random planes is: void CPlane::DoPlaneGenerationAndRemoval() { // 0x6CD2F0 // ... } Hide contents Yep, it does: injector::WriteMemory<DWORD>(0x6CDA0E + 6, MODEL_RUSTLER); injector::WriteMemory<DWORD>(0x6CDA31 + 6, MODEL_CROPDUST); injector::WriteMemory<DWORD>(0x6CDA54 + 6, MODEL_BEAGLE); injector::WriteMemory<DWORD>(0x6CDAB1 + 6, MODEL_POLMAV); injector::WriteMemory<DWORD>(0x6CDBA6 + 6, MODEL_ANDROM); injector::WriteMemory<DWORD>(0x6CDBC9 + 6, MODEL_AT400); Then it cannot be edited? Link to comment Share on other sites More sharing options...
Jack Posted February 16 Share Posted February 16 16 hours ago, Silver102 said: Then it cannot be edited? It can be edited. Just change those plane model ID values to your owns and the new planes should appear. Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
Silver102 Posted February 16 Author Share Posted February 16 7 hours ago, Jack said: It can be edited. Just change those plane model ID values to your owns and the new planes should appear. And where is this function exactly? In what file? Link to comment Share on other sites More sharing options...
Jack Posted February 16 Share Posted February 16 (edited) 1 hour ago, Silver102 said: And where is this function exactly? In what file? Functions are part of the executable file. There're a lot of them so we use the public gta database created by interactive disassembler (IDA) to quickly navigate through the file. Models are easy to find since in gta SA they have large values so we start a binary search. For example the plane named rustler has model ID 476 (according to vehicles.ide file). So in order to discover it I start a binary search because it's quick: 476 = 0x1DC = DC 01 00 00 The search result led me to the function called: CPlane::DoPlaneGenerationAndRemoval(); When I look it closely I realised it's right what you need (scm): 0A8C: write_memory 0x6CDA14 size 4 value #RUSTLER vp false 0A8C: write_memory 0x6CDA37 size 4 value #CROPDUST vp false 0A8C: write_memory 0x6CDA5A size 4 value #BEAGLE vp false 0A8C: write_memory 0x6CDBAC size 4 value #ANDROM vp false 0A8C: write_memory 0x6CDBCF size 4 value #AT400 vp false No need for model load since those values write themselves to a single variable which is used later to load plane models automaticly. So the game does it for us. Edited February 16 by Jack Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
Silver102 Posted February 17 Author Share Posted February 17 I can't understand it. I can't find this "public gta database created by interactive disassembler (IDA)" unless I get it wrong. I don't know much about scripts, I thought it was just enough to change or add a value to a file. And I can't even find the right function. I'd love to learn how to do it, but if it's too time-consuming, I'll just let those planes go. 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