06BD: no_obstacles_between in c++

JegaTurn

Active member
Joined
Nov 7, 2017
Messages
27
Reaction score
0
Is it possible to use 06BD: no_obstacles_between in c++? How?
 

y0mike

Active member
Joined
May 10, 2014
Messages
97
Reaction score
41
Location
mizus girl's house
Yes it is possible. 2 ways.

You can either find out what it does by checking the function that handles that opcode (in this case its 0x496E00). 0x6BD = 1725 and the address I've given handles 1700-1799, so IIRC there should a large switch statement and you should be able to figure out the rest from there.

Edit: I just opened up that function in IDA. Its a pain in the ass to reverse. I'm pretty sure its just a CWorld::GetIsLineOfSightClear call, you're better off calling that.

Or.

https://github.com/DK22Pac/plugin-sdk/blob/master/shared/extensions/ScriptCommands.h#L136

Then you can just supply the opcode in the template param and call it in c++.
 
  • Like
Reactions: ini
Top