AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Name into Model (https://forums.alliedmods.net/showthread.php?t=184727)

Pattinho 05-08-2012 09:39

Name into Model
 
Hey guys,

i just have a question. For example, i have a custom model. Is it possible through a plugin to put the name of the mate into this model ? So that no one has to download every model, just only one model ?

bazhenov93 05-08-2012 15:04

Re: Name into Model
 
Why everyone write only "hey guys", should be 'guys/girls' !

I don't understand your question, do you want to put your name on a model?
With pawn you can't, you need edit your model "with half life model viewer"

Neeeeeeeeeel.- 05-09-2012 02:21

Re: Name into Model
 
Quote:

Originally Posted by Pattinho (Post 1704828)
Hey guys,

i just have a question. For example, i have a custom model. Is it possible through a plugin to put the name of the mate into this model ? So that no one has to download every model, just only one model ?

Mmm no... maybe you can use sprites that are smaller than the models.

GordonFreeman (RU) 05-09-2012 02:27

Re: Name into Model
 
Use sprites as chars
attach to player

bazhenov93 05-09-2012 02:40

Re: Name into Model
 
What about lags/ping?

fysiks 05-09-2012 02:41

Re: Name into Model
 
Quote:

Originally Posted by GordonFreeman (RU) (Post 1705370)
Use sprites as chars
attach to player

That would be extremely intensive to implement and would not be worth it.

Pattinho 05-09-2012 19:49

Re: Name into Model
 
Im so sorry bazhenov93 :D

Well I have a clan and i just wanna do for every member a special model with his name in his back. And its just annoying to download for everyone 10 models or something like that. So I though i make a custom model without name and put through my plugin the name on the model. Is that Possible ?

Because i saw in the Plugin "American Football" that he just use one model but if i play this mod there are different names in there backs. Well the Plugin got so many lines and its at first hard to understand what he is really doing.

So would be nice boys and girls :D if someone can help me or i have to understand the plugin :(

Pattinho 05-10-2012 06:24

Re: Name into Model
 
I found something in the plugin of American Football Mod, he use this for set a player a model

PHP Code:

public set_user_model(id)
{
    
id -= 30437lastmove[0] = (lastmove[0] <= 0.2) ? 0.0 lastmove[0] - 0.2;
    
// check to make sure player has a unique skin
    
new user_team get_user_team(id);
    for (new 
1<= MaxPlayersi++)
        if (!
is_bot[i] && != id)
        if (
is_user_connected(i))
        if (
skin[i] == skin[id])
        if (
get_user_team(i) == user_team)
            
set_random_skin(id);
    
// set the model
    
engfunc(EngFunc_SetClientKeyValueidengfunc(EngFunc_GetInfoKeyBufferid), "model"model_names[(get_user_team(id) == 1) ? 10 21]), set_pev(idpev_skinskin[id] != -skin[id] : 0);


PHP Code:

engfunc(EngFunc_SetClientKeyValueidengfunc(EngFunc_GetInfoKeyBufferid), "model"model_names[(get_user_team(id) == 1) ? 10 21]), set_pev(idpev_skinskin[id] != -skin[id] : 0); 

but i dont understand this

<VeCo> 05-10-2012 06:49

Re: Name into Model
 
In the American football mod all player models are put in one as different skins. You can't add anything on the model with a plugin, you can add all models in one as skins, but you need to know how to create models, which is not so easy and you wouldn't make it (it's not as changing textures in HLMV...). So the only way is to use different models as different files...

Pattinho 05-10-2012 07:00

Re: Name into Model
 
Ah so he just split the model into 10 others ? ah ye then its really better to make different models. Thanks for all


All times are GMT -4. The time now is 00:20.

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