Raised This Month: $ Target: $400
 0% 

Creating an entity messes up


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 01-03-2007 , 14:41   Re: Creating an entity messes up
Reply With Quote #4

Quote:
Originally Posted by VEN View Post
I think you wanted to make it like that:

Also in keyvalue hook check for entity validity and necessary classname key.
Hi, I have tried that too and everything still spawns at (0 0 0).

I don't understand why every entity is spawning there anyway? There isn't anywhere in the code that I can see to have everything spawn there, only the "info_tfdetect".

Maybe this code could be causing that, I don't know why it would be though. It's all I can think of.
Code:
public forward_keyvalue(ent2, kvdid) {     if(ent2)     {         new keyname[128];                 get_kvd(kvdid, KV_KeyName, keyname, 127);                 /* ------- This is the cause maybe? ------- */         if(equal(keyname, "origin"))         {             set_kvd(kvdid, KV_Value, "0 0 0");         }         /* ---------------------------------------- */     }         return FMRES_IGNORED }
hlstriker is offline
 



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


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