Scripting fixes
This commit is contained in:
parent
1816ca1b61
commit
88cee0fe52
@ -1183,7 +1183,7 @@ namespace scripting
|
||||
{"_meth_81B2", 0x81B2}, // SP 0x1402A15D0 MP 0x14036AE60
|
||||
{"viewkick", 0x81B3}, // SP 0x1402A1640 MP 0x14036AFA0
|
||||
{"_meth_81B4", 0x81B4}, // SP 0x14029B1E0 MP 0x1403668B0
|
||||
{"_meth_81B5", 0x81B5}, // SP 0x1402998B0 MP 0x140364980
|
||||
{"getentitynumber", 0x81B5}, // SP 0x1402998B0 MP 0x140364980
|
||||
{"autoboltmissileeffects", 0x81B6}, // SP 0x140299AA0 MP 0x140364B50
|
||||
{"enablegrenadetouchdamage", 0x81B7}, // SP 0x140299CA0 MP 0x140364F40
|
||||
{"disablegrenadetouchdamage", 0x81B8}, // SP 0x140299F20 MP 0x1403650C0
|
||||
|
@ -59,12 +59,12 @@ namespace scripting
|
||||
|
||||
script_function get_function_by_index(const unsigned index)
|
||||
{
|
||||
static const auto function_table = SELECT_VALUE(0x149668F50, 0x147DD1850);
|
||||
static const auto method_table = SELECT_VALUE(0x14966A670, 0x147DD2F50);
|
||||
static const auto function_table = SELECT_VALUE(0x14B1D1B90, 0x149813EF0);
|
||||
static const auto method_table = SELECT_VALUE(0x14B1D33A0, 0x149815700);
|
||||
|
||||
if (index < 0x2DF)
|
||||
if (index < 0x301)
|
||||
{
|
||||
return reinterpret_cast<script_function*>(function_table)[index];
|
||||
return reinterpret_cast<script_function*>(function_table)[index - 1];
|
||||
}
|
||||
|
||||
return reinterpret_cast<script_function*>(method_table)[index - 0x8000];
|
||||
|
Loading…
Reference in New Issue
Block a user