AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Possibility? (https://forums.alliedmods.net/showthread.php?t=45781)

Da_sk8rboy 10-11-2006 12:00

Possibility?
 
is it possible to transfer a skin from another Mod, (Dod,Half-life,etc.)
to cstrike Skin. In meaning, Could i use a different Skin, (Spider-Man)
To a plugin. So when i use my command

EX:

amx_adminheal <target> <amount healed>

when i do that i want i my plugin whoever the target is, when that command is used, that targets model should look like EX: Spider-Man.

(i already have the part scripted where there hp changes, i just thought it would be cool to have there model changed to look like spider man.)

Silencer123 10-11-2006 13:40

Re: Possibility?
 
Yes, it is possible, but you need to add the CS specific animations,
like defusing/planting Bomb and the different Animations of Weapons.
(Shooting, Realoding, etc.) You can use Milkshape 3D for this, but I
recommend you do not do Stuff with Models at all. But if you do so
you can set a Model on a Player with entity_set_model(id,"models/mymodel.mdl")
or, if you use fakemeta instead of engine, set_pev(id,pev_model,"models/mymodel.mdl").

teame06 10-11-2006 14:59

Re: Possibility?
 
http://www.amxmodx.org/funcwiki.php?go=func&id=191

Counter-strike has specfic natives for changing models on a player. You have to use the cs_set_user_model. You can't use entity_set_model nor can you use set_pev(id, pev_model ...

P34nut 10-11-2006 15:43

Re: Possibility?
 
anyways

Silencer123

this:
PHP Code:

set_pev(id,pev_model,"models/mymodel.mdl"

is a very bad way to set models via FM
use :
PHP Code:

engfunc(EngFunc_SetModelid"models/mymodel.mdl"

srry for offtopic

Da_sk8rboy 10-11-2006 15:50

Re: Possibility?
 
what I was planning to use fakemeta?

Silencer123 10-11-2006 16:07

Re: Possibility?
 
I do not know - Fakemeta is more efficient but a little bit harder to use.
Whatever you chose, Engine or Fakemeta, only chose one.

XxAvalanchexX 10-11-2006 16:10

Re: Possibility?
 
Assuming the player models have the same skeletal structure for both of the mods involved, it's very easy to transfer the animations from one to the other, without using any pricey programs.

As for actually setting the player's model, in CS, you would use:

Code:
cs_set_user_model(id,"modelname");

This native requires that the models you use are stored in "models/player/modelname/modelname.mdl".

Da_sk8rboy 10-11-2006 16:11

Re: Possibility?
 
So i guess using engine i would put [CODE:] engfunc(EngFunc_SetModel, id, "models/mymodel.mdl") [CODE\]

Da_sk8rboy 10-11-2006 16:12

Re: Possibility?
 
... so instead of using engine or fakemeta, Avalanche, i could just use
Code:

cs_set_user_model(id,"modelname");



Silencer123 10-11-2006 16:13

Re: Possibility?
 
Yes that works with Milkshape 3D just find some Tutorials and get a Crack or buy it.
And yes you can do it that way but you need to #include <cstrike> then.


All times are GMT -4. The time now is 04:58.

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