Raised This Month: $32 Target: $400
 8% 

Different models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
safetymoose
Senior Member
Join Date: Feb 2015
Old 07-23-2016 , 11:48   Different models
Reply With Quote #1

Is it possible to make different players see different models? For example, lets say we have 3 players, A, B and C. Is it possible to make player A see player C with one model, and player B see player C with a different model? Is it possible to change which model is displayed to which player? Something like sending a message to specific players?
safetymoose is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-23-2016 , 12:25   Re: Different models
Reply With Quote #2

There is ES_ModelIndex entity state for AddToFullPack, that should do it.
klippy is offline
safetymoose
Senior Member
Join Date: Feb 2015
Old 08-12-2016 , 10:52   Re: Different models
Reply With Quote #3

Here is what i tried:
PHP Code:
new Model;

public 
plugin init()
{
       
register_forward(FM_AddToFullPack"fw_AddToFullPack"1);
}

public 
plugin_precache()
{
       
Model precache_model("models/player/mymodel/mymodel.mdl");
}

public 
fw_AddToFullPack(es_handleeenthosthostflagsplayerpSet)
{
       if(
player && is_user_alive(ent))
       {
               
set_es(es_handleES_ModelIndexModel);
       }

       return 
FMRES_IGNORED;

The player's model is not changed, but when i add
PHP Code:
set_es(es_handleES_RenderModekRenderTransAdd); 
i can see that this part of the code works fine.

Am i using ES_ModelIndex wrong? Or is the problem that i'm testing on podbots? Any ideas?
safetymoose is offline
Reply



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 23:30.


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