Greed
Level 1 Trained Beginner
Offline
 Australia
Posts: 35
amosmonk
|
 |
« on: December 21, 2008, 01:03:08 AM » |
|
Hi i didn't realy know which section to put this in, but anyway. The title pretty much says it all, how do i have a skin thats not head crab or crow, more specifically a pot plant. i kinda sused out its somthing to do with:
"player_spawn_cmd" ;es es_xif(server_var(wcs_game) = server_var(wcs_game_css)) then es_xif (event_var(es_userteam) = 3) then est_SetModel event_var(userid) headcrab;es es_xif(server_var(wcs_game) = server_var(wcs_game_css)) then es_xif (event_var(es_userteam) = 2) then est_SetModel event_var(userid) headcrabblack;es est_SetHealth event_var(userid) 40"
but i dont realy know what to change, because i dont think chaging the word head crab to pot plant will do a lot. Anyway please help,
Thanks
|
|
|
|
|
Logged
|
|
|
|
|
Maxxi
|
 |
« Reply #1 on: December 21, 2008, 01:20:01 AM » |
|
Hi i didn't realy know which section to put this in, but anyway. The title pretty much says it all, how do i have a skin thats not head crab or crow, more specifically a pot plant. i kinda sused out its somthing to do with:
"player_spawn_cmd" ;es es_xif(server_var(wcs_game) = server_var(wcs_game_css)) then es_xif (event_var(es_userteam) = 3) then est_SetModel event_var(userid) headcrab;es es_xif(server_var(wcs_game) = server_var(wcs_game_css)) then es_xif (event_var(es_userteam) = 2) then est_SetModel event_var(userid) headcrabblack;es est_SetHealth event_var(userid) 40"
but i dont realy know what to change, because i dont think chaging the word head crab to pot plant will do a lot. Anyway please help,
Thanks
first you need to know the model you want to use
|
|
|
|
|
Logged
|
|
|
|
|
Namolem
|
 |
« Reply #2 on: December 21, 2008, 01:26:48 AM » |
|
You can try models from \srcds\hl2\models where crow and headcrab are. For example there is file pigeon.mdl so you can replace crow with pigeon. mdl files can be opened in Source SDK, but there isn't 100% guarantee that in game it will be look like in SDK
|
|
|
|
« Last Edit: December 21, 2008, 01:28:39 AM by Namolem »
|
Logged
|
|
|
|
Greed
Level 1 Trained Beginner
Offline
 Australia
Posts: 35
amosmonk
|
 |
« Reply #3 on: December 21, 2008, 01:30:21 AM » |
|
first you need to know the model you want to use didn't i say pot plant?
|
|
|
|
|
Logged
|
|
|
|
|
Maxxi
|
 |
« Reply #4 on: December 21, 2008, 01:52:18 AM » |
|
first you need to know the model you want to use didn't i say pot plant? do you know the name of te texture then?
|
|
|
|
|
Logged
|
|
|
|
Greed
Level 1 Trained Beginner
Offline
 Australia
Posts: 35
amosmonk
|
 |
« Reply #5 on: December 21, 2008, 02:01:52 AM » |
|
nope, any idea where i can find it?
|
|
|
|
|
Logged
|
|
|
|
|
Petru
Guest
|
 |
« Reply #6 on: December 21, 2008, 02:37:20 AM » |
|
nope, any idea where i can find it?
source sdk -> HLMV (Half Life model viewer) edit: u can view it in ther and u see the path..
|
|
|
|
« Last Edit: December 21, 2008, 03:13:08 AM by Petru »
|
Logged
|
|
|
|
Greed
Level 1 Trained Beginner
Offline
 Australia
Posts: 35
amosmonk
|
 |
« Reply #7 on: December 21, 2008, 05:27:35 AM » |
|
lol i dunno how to use hlmv =/ can you get the file path for the potplant for me someone?
|
|
|
|
|
Logged
|
|
|
|
Greed
Level 1 Trained Beginner
Offline
 Australia
Posts: 35
amosmonk
|
 |
« Reply #8 on: December 21, 2008, 05:31:52 AM » |
|
wait i think i got it, the file path is:
models\props\cs_office\plant01.mdl
so now i got the file path, what do i add to the spawn cmd?
|
|
|
|
|
Logged
|
|
|
|
|
Maxxi
|
 |
« Reply #9 on: December 21, 2008, 12:57:40 PM » |
|
;es es_xif(server_var(wcs_game) = server_var(wcs_game_css)) then es_xif (event_var(es_userteam) = 3) then est_SetModel event_var(userid) headcrab;es es_xif(server_var(wcs_game) = server_var(wcs_game_css)) then es_xif (event_var(es_userteam) = 2) then est_SetModel event_var(userid) headcrabblack;
thats the code for head crab, do i just do somthing like this for a pot plant?
;es es_xif(server_var(wcs_game) = server var(wcs_game_css)) then est_SetModel event_var(userid) models\props\cs_office\plant01.mdl;
??
please help =/
http://www.eventscripts.com/pages/Est_SetModelthis probably explains it better then i can and post your code in code tags 
|
|
|
|
|
Logged
|
|
|
|
|
Petru
Guest
|
 |
« Reply #10 on: December 21, 2008, 03:20:21 PM » |
|
es est_SetModel event_var(userid) models\props\cs_office\plant01.mdl
|
|
|
|
|
Logged
|
|
|
|
Greed
Level 1 Trained Beginner
Offline
 Australia
Posts: 35
amosmonk
|
 |
« Reply #11 on: December 21, 2008, 05:17:36 PM » |
|
ok i added the code petru put in but it comes up as an error on the server, its only a pot plant so it shouldn't do that, right? well any ideas why or how to fix it?
Greed
|
|
|
|
|
Logged
|
|
|
|
|
Petru
Guest
|
 |
« Reply #12 on: December 29, 2008, 12:15:45 AM » |
|
es est_SetModel event_var(userid) props\cs_office\plant01.mdl you do not need the models part... If this doesn't work then you probably do not have the files...  the server does has the models...
|
|
|
|
|
Logged
|
|
|
|
|