AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to use this funtion? (https://forums.alliedmods.net/showthread.php?t=51266)

lhrcap 02-14-2007 14:51

how to use this funtion?
 
entity_set_string(id, EV_SZ_viewmodel, "")
entity_set_string(id, EV_SZ_weaponmodel, "")

"" <---- this place is model name??

ex) entity_set_string(id, EV_SZ_viewmodel, "model/weapons/v_knife.mdl")
entity_set_string(id,EV_SZ_weaponmodel,model/weapons/w_knife.mdl")

right??:shock:

teame06 02-14-2007 15:43

Re: how to use this funtion?
 
Yes that the correct way to use it. You just need to make sure the files are their correctly in the folder. It models/ not model/ for the folder name.

lhrcap 02-14-2007 23:50

Re: how to use this funtion?
 
that function

is using only models/ V_mdl or W_mdl/ ?

ex my custommodel name => v_katana.mdl

entity_set_string(id, EV_SZ_viewmodel, "models/v_katana.mdl")

only? or

if i have m4a1 skin "v_m4m204.mdl"

entity_set_string(id, EV_SZ_viewmodel, "models/v_m4m204.mdl") ??

i curious .. if i drop all weapon and change knife model -> v_katana.mdl

how to ??

Ryu2877 02-15-2007 01:01

Re: how to use this funtion?
 
PHP Code:

entity_set_string(idEV_SZ_viewmodel"models/v_model.mdl")//self view model;
entity_set_string(idEV_SZ_weaponmodel"models/p_model.mdl")//player's model, 3th personal eyeshot;
entity_set_model(EntityID"models/w_model.mdl")//weapon(weaponbox)'s world model, droped or on ground; 

if you want change current weapon model to specifically "model", use "CurWeapon" event, about some "events": http://wiki.tcwonline.org/index.php/..._1_Game_Events

lhrcap 02-16-2007 08:09

Re: how to use this funtion?
 
um... models folder is..

cstrike/models ?

or

valve/models ?

if valve/models ->change rooting cstrike/models?

possible:)?

[ --<-@ ] Black Rose 02-16-2007 08:52

Re: how to use this funtion?
 
cstrike/models

lhrcap 02-17-2007 00:08

Re: how to use this funtion?
 
THX!


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

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