Raised This Month: $ Target: $400
 0% 

[DOD][SOLVED] - replacing dod_control_point models


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
=|[76AD]|= TatsuSaisei
Junior Member
Join Date: Nov 2006
Old 11-27-2006 , 23:34   [DOD][SOLVED] - replacing dod_control_point models
Reply With Quote #1

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....

Last edited by =|[76AD]|= TatsuSaisei; 01-02-2007 at 01:41. Reason: solved....
=|[76AD]|= TatsuSaisei is offline
Send a message via AIM to =|[76AD]|= TatsuSaisei
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode