Raised This Month: $ Target: $400
 0% 

entity spawning


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 02-26-2006 , 16:13   entity spawning
Reply With Quote #1

Code:
entity_playing[id] = create_entity("info_target") entity_set_string(entity_playing[id],EV_SZ_classname,"ghw_playback_ent") entity_set_string(entity_playing[id],EV_SZ_model,"models/player/terror/terror.mdl") entity_set_vector(entity_playing[id],EV_VEC_origin,origin) entity_set_int(entity_playing[id],EV_INT_solid,SOLID_BBOX) entity_set_int(entity_playing[id],EV_INT_movetype,MOVETYPE_FLY) entity_set_edict(entity_playing[id],EV_ENT_owner,33) entity_set_float(entity_playing[id],EV_FL_framerate,1.0) entity_set_int(entity_playing[id],EV_INT_sequence,0) entity_set_size(entity_playing[id],minsize,maxsize)
Exactly like that, model is precached, origin is defined correctly. The entity will spawn, u will not be able to see it (model not set / appears invisible). You can run into the ent (minsize and maxsize are set exactly same size as a player) but if you look at the entity, my server crasher . Nothing in logs.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Des12
Senior Member
Join Date: Jan 2005
Old 02-26-2006 , 16:20  
Reply With Quote #2

Do you have the model uploaded to the server?
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 02-26-2006 , 16:51  
Reply With Quote #3

lol. yes i do indeed since the terror model is one of the 4 CS models, my server wouldn't work without it.

More Info:
listen server
win32
AMXX 1.6

anyone?
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 02-26-2006 , 16:52  
Reply With Quote #4

shouldnt u use this to set the model
Code:
/* Sets the model of an Entity. */ native entity_set_model(iIndex, const szModel[]);
__________________
plop
p3tsin is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 02-26-2006 , 16:57  
Reply With Quote #5

either way will work. I have used my other method several times in other plugins and worked but for some reason this exact part right here hates me. Maybe the model setting method has changed since I made my last plugins... I'll try with entity_set_model
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 02-26-2006 , 18:00  
Reply With Quote #6

Quote:
Originally Posted by p3tsin
entity_set_model
wow... That worked. Thanks a lot. + Karma.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 02-26-2006 , 19:27  
Reply With Quote #7

Either way WON'T work; some times the damn thing has to be set how the mod wants it to be set.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
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 20:15.


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