Raised This Month: $ Target: $400
 0% 

Possibility?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 10-11-2006 , 12:00   Possibility?
Reply With Quote #1

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.)
__________________
i stop around here and there.
Da_sk8rboy is offline
Silencer123
Veteran Member
Join Date: Jul 2006
Old 10-11-2006 , 13:40   Re: Possibility?
Reply With Quote #2

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").
__________________
EAT YOUR VEGGIES
Silencer123 is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-11-2006 , 14:59   Re: Possibility?
Reply With Quote #3

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 ...
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 10-11-2006 , 15:43   Re: Possibility?
Reply With Quote #4

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
__________________
All you need to change the world is one good lie and a river of blood

Last edited by P34nut; 10-11-2006 at 15:54.
P34nut is offline
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 10-11-2006 , 15:50   Re: Possibility?
Reply With Quote #5

what I was planning to use fakemeta?
__________________
i stop around here and there.
Da_sk8rboy is offline
Silencer123
Veteran Member
Join Date: Jul 2006
Old 10-11-2006 , 16:07   Re: Possibility?
Reply With Quote #6

I do not know - Fakemeta is more efficient but a little bit harder to use.
Whatever you chose, Engine or Fakemeta, only chose one.
__________________
EAT YOUR VEGGIES
Silencer123 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-11-2006 , 16:10   Re: Possibility?
Reply With Quote #7

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".
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 10-11-2006 , 16:11   Re: Possibility?
Reply With Quote #8

So i guess using engine i would put [CODE:] engfunc(EngFunc_SetModel, id, "models/mymodel.mdl") [CODE\]
__________________
i stop around here and there.
Da_sk8rboy is offline
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 10-11-2006 , 16:12   Re: Possibility?
Reply With Quote #9

... so instead of using engine or fakemeta, Avalanche, i could just use
Code:
cs_set_user_model(id,"modelname");


__________________
i stop around here and there.
Da_sk8rboy is offline
Silencer123
Veteran Member
Join Date: Jul 2006
Old 10-11-2006 , 16:13   Re: Possibility?
Reply With Quote #10

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.
__________________
EAT YOUR VEGGIES
Silencer123 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 04:58.


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