git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7892
d7cf8633-e32d-0410-b094-
e92efae38249
--- /dev/null
+#ifndef __CLVM_CMDS_H__
+#define __CLVM_CMDS_H__
+
+int CL_GetTagMatrix (matrix4x4_t *out, prvm_edict_t *ent, int tagindex);
+
+#endif /* __CLVM_CMDS_H__ */
#include "csprogs.h"
#include "cl_collision.h"
#include "snd_main.h"
+#include "clvm_cmds.h"
//============================================================================
// Client prog handling
tagentity = val->edict;
if((val = PRVM_EDICTFIELDVALUE(ed, prog->fieldoffsets.tag_index)) && val->_float)
tagindex = (int)val->_float;
- // FIXME: calculate tag matrix
- Matrix4x4_CreateIdentity(&tagmatrix);
+ CL_GetTagMatrix (&tagmatrix, PRVM_PROG_TO_EDICT(tagentity), tagindex);
}
else
Matrix4x4_CreateIdentity(&tagmatrix);