Quote:
Originally Posted by VEN
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
}