Raised This Month: $ Target: $400
 0% 

Ent Spawning (Solid Problem)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
udsting
Junior Member
Join Date: Sep 2006
Location: California, USA
Old 11-10-2007 , 20:56   Ent Spawning (Solid Problem)
Reply With Quote #1

I'm trying to spawn a solid entity in The Specialists with this code segment, it all compiles fine but the ent isn't showing up in the map. I'm sure I made some novice mistake but I can't figure it out so I was hoping someone could spot it for me.
__________________

Last edited by udsting; 11-11-2007 at 03:27. Reason: code baleted due to fail
udsting is offline
Send a message via AIM to udsting Send a message via MSN to udsting Send a message via Yahoo to udsting Send a message via Skype™ to udsting
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-10-2007 , 21:00   Re: Ent Spawning (lol I dunno)
Reply With Quote #2

Are you calling the function?
hlstriker is offline
udsting
Junior Member
Join Date: Sep 2006
Location: California, USA
Old 11-10-2007 , 21:43   Re: Ent Spawning (lol I dunno)
Reply With Quote #3

I'm going to assume I'm not. ^^;
__________________
udsting is offline
Send a message via AIM to udsting Send a message via MSN to udsting Send a message via Yahoo to udsting Send a message via Skype™ to udsting
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-10-2007 , 22:01   Re: Ent Spawning (lol I dunno)
Reply With Quote #4

Show all of your code?
hlstriker is offline
udsting
Junior Member
Join Date: Sep 2006
Location: California, USA
Old 11-10-2007 , 22:25   Re: Ent Spawning (lol I dunno)
Reply With Quote #5

Code:
#include <amxmodx> #include <amxmisc> #include <engine> #include <fun> #include <fakemeta> #define PLUGIN "QuickfixPlugs" #define VERSION "1.1" #define AUTHOR "udsting" public plugin_init() {         register_plugin(PLUGIN, VERSION, AUTHOR)         set_lights("a")         model_spawn("models/mecklenburg/piano.mdl")     } public plugin_precache() {     precache_model("models/mecklenburg/piano.mdl") } public model_spawn(model[]) {     new Float:origin[3] = {1354.0,-1895.0,-215.0}     new Float:maxs[3] = {100.0,26.0,52.0}     new Float:mins[3] = {-100.0,-26.0,-52.0}     new Float:angles[3] = {-0.0, -180.0, -0.0}             new ent = create_entity("info_target")     entity_set_string(ent, EV_SZ_classname, "entaddons")     entity_set_model(ent,model)     entity_set_origin(ent,origin)     entity_set_vector(ent,EV_VEC_angles,angles)     entity_set_size(ent,mins,maxs)     entity_set_int(ent,EV_INT_solid,2)     entity_set_int(ent,EV_INT_movetype,0)     entity_set_float(ent,EV_FL_animtime,2.0)     entity_set_float(ent,EV_FL_framerate,1.0)     entity_set_int(ent,EV_INT_sequence,1);     entity_set_byte(ent,EV_BYTE_controller1,125);     entity_set_byte(ent,EV_BYTE_controller2,125);     entity_set_byte(ent,EV_BYTE_controller3,125);     entity_set_byte(ent,EV_BYTE_controller4,125);     }
__________________

Last edited by udsting; 11-11-2007 at 02:21.
udsting is offline
Send a message via AIM to udsting Send a message via MSN to udsting Send a message via Yahoo to udsting Send a message via Skype™ to udsting
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-11-2007 , 01:21   Re: Ent Spawning (lol I dunno)
Reply With Quote #6

Try using a task in plugin_init to call the model_spawn() function.
hlstriker is offline
udsting
Junior Member
Join Date: Sep 2006
Location: California, USA
Old 11-11-2007 , 02:13   Re: Ent Spawning (lol I dunno)
Reply With Quote #7

Thanks much hlstriker! (Lunar and Hawk too!)

I'm working on this right now and I'll keep updating rather than making a new topic incase anyone checks it. Right now I'm having trouble with setting the solid state. I can tell I'm hitting something, but I'm able to pass through it.
__________________
udsting is offline
Send a message via AIM to udsting Send a message via MSN to udsting Send a message via Yahoo to udsting Send a message via Skype™ to udsting
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-11-2007 , 13:16   Re: Ent Spawning (Solid Problem)
Reply With Quote #8

I had that problem too until I changed the movetype to fly.
hlstriker is offline
udsting
Junior Member
Join Date: Sep 2006
Location: California, USA
Old 11-11-2007 , 18:49   Re: Ent Spawning (Solid Problem)
Reply With Quote #9

No luck. T_T
__________________
udsting is offline
Send a message via AIM to udsting Send a message via MSN to udsting Send a message via Yahoo to udsting Send a message via Skype™ to udsting
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 01:14.


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