# Freelancer (1.3) by Taragoth
# Released 11 July 2011
# Edits by Caba'drin 14 Dec 2011
# Mod-Merger'd by Windyplains, Monnikje and Caba'drin
from header_meshes import *
####################################################################################################################
# Each mesh record contains the following fields:
# 1) Mesh id: used for referencing meshes in other files. The prefix mesh_ is automatically added before each mesh id.
# 2) Mesh flags. See header_meshes.py for a list of available flags
# 3) Mesh resource name: Resource name of the mesh
# 4) Mesh translation on x axis: Will be done automatically when the mesh is loaded
# 5) Mesh translation on y axis: Will be done automatically when the mesh is loaded
# 6) Mesh translation on z axis: Will be done automatically when the mesh is loaded
# 7) Mesh rotation angle over x axis: Will be done automatically when the mesh is loaded
#
Mesh rotation angle over y axis: Will be done automatically when the mesh is loaded
# 9) Mesh rotation angle over z axis: Will be done automatically when the mesh is loaded
# 10) Mesh x scale: Will be done automatically when the mesh is loaded
# 11) Mesh y scale: Will be done automatically when the mesh is loaded
# 12) Mesh z scale: Will be done automatically when the mesh is loaded
####################################################################################################################
meshes = [
#+freelancer begin
("pic_soldier_world_map", 0, "pic_soldier_world_map", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("pic_soldier_rebel", 0, "pic_soldier_rebel", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("pic_soldier_desert", 0, "pic_soldier_desert", 0, 0, 0, 0, 0, 0, 1, 1, 1),
#+freelancer end
]
from util_common import *
def modmerge_meshes(orig_meshes):
# add remaining meshes
from util_common import add_objects
num_appended, num_replaced, num_ignored = add_objects(orig_meshes, meshes)
print num_appended, num_replaced, num_ignored
# Used by modmerger framework version >= 200 to merge stuff
# This function will be looked for and called by modmerger if this mod is active
# Do not rename the function, though you can insert your own merging calls where indicated
def modmerge(var_set):
try:
var_name_1 = "meshes"
orig_meshes = var_set[var_name_1]
modmerge_meshes(orig_meshes)
except KeyError:
errstring = "Variable set does not contain expected variable: \"%s\"." % var_name_1
raise ValueError(errstring)