AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Player model set to an entity (https://forums.alliedmods.net/showthread.php?t=232151)

T3STIK 12-26-2013 09:14

Player model set to an entity
 
Hi,
I wanted to try to write a new mod, but I could not find any model,
which would be good for me.

So I had an idea, if is possible to set player model to any entity?
For example:
I have some brushes, which a set to entity "func_wall" (in valve hammer editor, in my map).
I set them names CTModels01-CTModels09 and TModels01-TModels09.

Is any way, how to set player's models to this entity, so that they could move?

Thanks for answers.

DavidJr 12-26-2013 20:12

Re: Player model set to an entity
 
Do you mean assign entity to player and they carry the entity? If so, it's possible

T3STIK 12-27-2013 07:53

Re: Player model set to an entity
 
Yes, I mean this (Assign entity to player, so that player will look like this entity).

Do you know any way, how to do it?

DavidJr 12-27-2013 09:55

Re: Player model set to an entity
 
You can use
PHP Code:

    entity_set_edict(entEV_ENT_aimentid)
    
entity_set_int(entEV_INT_movetypeMOVETYPE_FOLLOW


T3STIK 12-27-2013 12:28

Re: Player model set to an entity
 
It does not work. When did I use this, player had normal model and he carried that entity.

Here is better example, what I mean:
Do you know mod Hide N Seek, where you has not normal model, but
you was changed to any one model on this map (bottle, bed, lamp, door, ...)?
This is samae, but I need use to entity than model.

Image: http://**************/a/img811/7892/pzma.jpg

GuskiS 12-27-2013 15:36

Re: Player model set to an entity
 
Prophunt :P
You need special models for that. As far as I'm searched/tested - you need a model that can be added to players foot bone. After that, make player invisible, and you will be your globus. But then there is problem with player size remaining the same :P

DavidJr 12-27-2013 19:45

Re: Player model set to an entity
 
I guess it can be done with cs_set_user_model


All times are GMT -4. The time now is 10:08.

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