megaman54 Posted November 23, 2012 Share Posted November 23, 2012 Today i started to seriously look into the MTA source code. I have explored it much and it looks very interesting. I also did some (very) small tests and they worked nicely. But, i have a slight problem here: in CMultiplayerSA.cpp, when i disable some hook (not actually sure if they are hooks lol), for example i comment out this: MemPut < BYTE > ( 0x4629E0, 0xC3 ); from the comment above it i understaned that it should prevent SA from generating roadblocks, but when i comment it out and go see ingame it still doesnt generate roadblocks. What am i missing here? I guess its something obvious but for me, who isnt experienced in hooking games, it looks very confusing. I hope that someone that actually knows these things explains to me what is going on. Thanks Link to comment
x86 Posted November 30, 2012 Share Posted November 30, 2012 It's because wanted level is disabled. Link to comment
megaman54 Posted November 30, 2012 Author Share Posted November 30, 2012 Okay thanks I will look into it and try some more stuff Link to comment
x86 Posted November 30, 2012 Share Posted November 30, 2012 It will be hard I can tell you. Why do you want to do it? Why not just createObject ? Link to comment
megaman54 Posted December 1, 2012 Author Share Posted December 1, 2012 The roadblocks was just an example. I try to disable some other hooks too and see if they work. Mostly i will be testing if i can get the game to load main.scm again and some npc's too. Link to comment
x86 Posted December 5, 2012 Share Posted December 5, 2012 You can't let a NPC spawn by main.scm, MTA will crash. Because this 'NPC' wasn't created by MTA. Link to comment
Recommended Posts