Trying to get G_PositionEntityOnTag to work...


(Ancalagon) #1

I’m currently trying to use “G_PositionEntityOnTag” to position an entity onto a player tag, but so far the function just returns false.


if(!G_PositionEntityOnTag( head, self, "tag_head" ))
{
	G_Printf(" failed!
");
	return;
}

So far it just doesn’t get past this point. I can’t use CG_PositionEntityOnTag() because this has to actually occur server-side. Does anyone know what I’m doing wrong? Or another way to do it?

Thanks.


(bani) #2

tags simply don’t work server-side. sorry.


(Ancalagon) #3

Ok, thanks… I’ll just have to estimate the position from the player origin.


([RW]FRED) #4

Looks at G_BuildHead in g_combat.c

with the use of trap_GetTag(…);

G_PositionEntityOnTag works only with entity such as mover and need a file named myModel.tag build with md3tag tool.


(Ancalagon) #5

Thankyou, this seems to be working now