View Single Post
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 07-07-2014 , 10:29   Re: Custom Player Skins (Core)
Reply With Quote #8

Quote:
Originally Posted by Mitchell View Post
Commit updated
Thanks! Developers can really mess with this plugin, which is nice. You dont mind adding precache for custom player model automatically? So plugin makers will not be confused what crashes the server. Also add something like this to transmit hook to prevent players from seeing custom player skin of observed target.
Code:
new target = GetEntPropEnt(client, Prop_Send, "m_hObserverTarget"); if (IsValidEdict(target) && entity == EntRefToEntIndex(CPS_GetSkin(target))) {     return Plugin_Handled; }
I also got a question about SetVariantString("forward"). I used it for hats plugin, cant see reason of using it here. AFAIK DoD:S have an attachment 'head' instead of generic 'forward' or 'eyes', so I would check engine version just to be clear.
And SetEntityRenderMode(client, RENDER_NONE) added for preventing double model on a player or 'misanimations', right?
Thanks in advance.
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot

Last edited by Root_; 07-07-2014 at 15:49.
Root_ is offline