Model Changing in DoD
Hey all. I'm working on a new plugin. This plugin as the topic states is going to change models for admins in DoD. I have been doing some searching and located a cs_set_user_model. And then went into the code and found out how it works. But, no dice. I have tried register_forward(FM_SetModel) and register_event(ResetHUD) and then within each of these checked the model to be models/player.mdl and forced it to be a certain model. Now when I attempt to join and look at myself or other admins It stays the same. No model changes. So I'm posting the basic test code. Can someone give a shout if they see where the problem is.
Thanks, and Cheers! Code:
register_event("ResetHUD", "handle_model", "b")Code:
register_forward(FM_SetModel, "handle_model") |
Code:
/* The actual return value of the function, use these instead of PLUGIN_HANDLED etc whenCode:
|
@Cheap_Suit
Yeah did that, thanks though. Just that I got rid of the code cause I didn't think it was working. Then when I was doing this thread I used the code above and forgot to change the FM returns. Cheers! |
Might be this...
Code:
Code:
|
Nope, that just a redundant statement. I know that it gets that far with my code as at one point in time I have a log_amx command within the if statement.
Thanks, Cheers! |
Request a DoD model changing function. In the meantime, you can do what Target suggested:
Quote:
|
I've been trying to do this with tfc without using the tfc module because tfc_setmodel is the only function i use from it.
afaik entity_set_string EV_SZ_model just doesnt work for players DispatchKeyValue(id,"replacement_model","Aqua fresh"); works in tfc but you have to respawn for it to take effect. How would i make it take effect immediately? but i think replacement_model is a tfc specific function from item_tfgoal Is there an entity in DOD that allows you to change the playermodel |
@XxAvalanchexX
Thanks for the information. But I do have some questiong. I can understand what T(+)rget wrote. But the implementation is in question. Would I do the following for the ClientUserInfoChanged: Code:
public client_infochanged(id)Code:
public client_PostThink(id)Cheers! |
entity_set_model????????????????????
You probably just could do this: Code:
Why can't you do this? |
ive tried entity_set_model before and it doesnt work with players
|
| All times are GMT -4. The time now is 07:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.