From 2d375353e47620c45b6fe7d8fb0adedbe2d0419f Mon Sep 17 00:00:00 2001 From: Steven Garcia Date: Sat, 20 Jun 2020 04:38:01 -0500 Subject: [PATCH] [Guerilla] Add surface index to firing position definition --- H2Codez/H2Guerilla/H2Guerilla.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/H2Codez/H2Guerilla/H2Guerilla.cpp b/H2Codez/H2Guerilla/H2Guerilla.cpp index fd88baf..dc68e20 100644 --- a/H2Codez/H2Guerilla/H2Guerilla.cpp +++ b/H2Codez/H2Guerilla/H2Guerilla.cpp @@ -359,6 +359,9 @@ void H2GuerrilaPatches::Init() // allow other processes to read files open with fopen_s WriteValue(0x006B1614 + 1, _SH_DENYWR); + // Add surface index to firing position definition. + WriteValue(0x96ED68, { tag_field::long_integer, "surface index", NULL, blam_tag::null() }); + // patch code for embedded tool console to use the right exe name WritePointer(0x004761AC + 1, "H2tool ");