[DOD][SOLVED] - replacing dod_control_point models
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:
Code:
Code:
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....:up: |
Re: [DOD] - replacing dod_control_point models...
whoa, slow down.. not so many responses at once... lmao
Anyways, here is where I am at now... I DID get some flags to change models, but some did not, and with changing them it seemed to have "killed" the capture areas... I added a bit of "developer" code to show information on the objectives before and after the change.. the output from this has me baffled... Would someone knowledgable in DOD look this over and try this code out (replace christmas tree models with something you have on hand, the model itself makes no differenc, I just want them to change with a plugin) Code:
|
Re: [DOD] - replacing dod_control_point models...
The way I change models in DOD is by capturing the desired entity with a register_forward(FM_KeyValue, "your_routine") in the plugin_precache() routine, then replace the model with fm_set_kvd(), and then return as FMRES_SUPERCEDE. Note, this method uses the fakemeta and fakemeta_util includes.
The reason your control points don't work is because DOD links them to the master as they're loading. So make you're changes in precache before they get processed. Works for me anyway. |
Re: [DOD] - replacing dod_control_point models...
Got it !!
Code:
|
Re: [DOD][SOLVED] - replacing dod_control_point models
Since not all maps use the multi-flag model, you should also consider creating, checking for, and replacing the /models/w_aflag.mdl, w_bflag, w_gflag & w_wflag models.
Our server has been using my flag replacement plugin for quite a while. Check it out by simply clicking my signature. |
Re: [DOD][SOLVED] - replacing dod_control_point models
yes yes, I planned on this, plus I plan to locate some names of other flags used on some custom models.... the most important part was just getting it to work, now that I know how and understand a few more things, adding to this and making it customizable will be a breeze... again Thanx for the help !!
|
| All times are GMT -4. The time now is 06:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.