Raised This Month: $ Target: $400
 0% 

Making a model solid


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 03-08-2006 , 17:18  
Reply With Quote #6

Code:
new Float:origin[3] //fill in origin here new ent = create_entity("info_target") entity_set_string(ent,EV_SZ_classname,"ghw_fake_player") entity_set_model(ent,"models/player/gign/gign.mdl") entity_set_origin(ent,origin) entity_set_int(ent, EV_INT_solid,SOLID_BBOX) entity_set_int(ent,EV_INT_movetype,MOVETYPE_FLY) entity_set_edict(ent,EV_ENT_owner,33) //idle sequence (looks like he's lagged out / swimming in air) entity_set_float(ent,EV_FL_framerate,1.0) entity_set_int(ent,EV_INT_sequence,0) //Set size of invisible box that is interactive w/ players (depending on solid type) new Float:min[3] new Float:max[3] min[0]=-16.0 min[1]=-16.0 min[2]=-32.0 max[0]=16.0 max[1]=16.0 max[2]=32.0 entity_set_size(ent,min,max)

Don't know EXACTLY what you are talking about Target with the whole origin + min, but incase you think I'm saying something I'm not, that is an example of creating a player model and that would set its size to the exact size of a player. Used that exact script in several of my plugins and works.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
 



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:22.


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