Jump to content

Some questions


Recommended Posts

Posted

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

Posted

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.

Posted

You can't let a NPC spawn by main.scm, MTA will crash. Because this 'NPC' wasn't created by MTA.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...