As for armor fragments - everything is fair. Previously, I used only one file 0_mesh resource and worked with him
Code: Select all
fname = getOpenFileName \
f_header = fopen fname "rb" - the title of the model. Hence taken scaling and offset
f__mesh = fopen (fname + "[0_mesh resource _!]") "rb" - file body, hence take everything buffer.
Code: Select all
file_array = getFiles (fname + "[*")
for i = 1 to file_array.count do (
f__mesh = fopen (file_array[i]) "rb"
But an array of coefficient scaling and offset for storm_masterchief is not where typically. I was too lazy to calculate the correct algorithm for a single model, and I found it manually and simply set it's address offset only for this file
Code: Select all
if ((findString fname "storm_masterchief.render_model")! = undefined) do (
fseek f_header 0x06d39ca #seek_set