Raised This Month: $ Target: $400
 0% 

how to use this funtion?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lhrcap
Senior Member
Join Date: Dec 2006
Old 02-14-2007 , 14:51   how to use this funtion?
Reply With Quote #1

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??
lhrcap is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 02-14-2007 , 15:43   Re: how to use this funtion?
Reply With Quote #2

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.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
lhrcap
Senior Member
Join Date: Dec 2006
Old 02-14-2007 , 23:50   Re: how to use this funtion?
Reply With Quote #3

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 ??
lhrcap is offline
Ryu2877
Member
Join Date: Sep 2006
Location: China
Old 02-15-2007 , 01:01   Re: how to use this funtion?
Reply With Quote #4

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

Last edited by Ryu2877; 02-15-2007 at 01:11. Reason: forgot add ".mdl", sorry
Ryu2877 is offline
lhrcap
Senior Member
Join Date: Dec 2006
Old 02-16-2007 , 08:09   Re: how to use this funtion?
Reply With Quote #5

um... models folder is..

cstrike/models ?

or

valve/models ?

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

possible?
lhrcap is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-16-2007 , 08:52   Re: how to use this funtion?
Reply With Quote #6

cstrike/models
[ --<-@ ] Black Rose is offline
lhrcap
Senior Member
Join Date: Dec 2006
Old 02-17-2007 , 00:08   Re: how to use this funtion?
Reply With Quote #7

THX!
lhrcap 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 00:35.


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