I am working on a "Holiday" plugin that "changes" some map entities and replaces them with themed items... I have a few novel ideas but I need some physical files for some, and some help with some code on another.. I am hoping someone has something to help me...
The first and most troubling to me is writing code that edits the dod_control_point entity and replaces the current values for point_model_neutral, point_model_axis, point_model_allies (and the 3 associated body number properties)
What I found was a forward and a native that seem interesting and probably along the lines of what I need, but I can not for the life of me wrap my head around it...
From the <dodfun.inc>
Code:
/* called after first InitObj */
forward controlpoints_init();
Code:
enum CP_VALUE {
...
CP_model_body_neutral,
CP_model_body_allies,
CP_model_body_axis,
...
CP_model_neutral,
CP_model_allies,
CP_model_axis,
};
Code:
/* use this function to change control point's data */
native objective_set_data( index, CP_VALUE:key , iValue=-1, szValue[]="" );
one of my current hangups is "what is
iValue=-1 ?"
and the second part of my request.... does anyone know where I can find, or simply has any Christmas themed models, or right now little gift(package) models... I am in no way a modeller, though I have been known to hack a few succesfully, so creating my own is impossible... any help here or for above would be greatly appreciated....