Fixed custom beams
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@854 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
5136f7bcbc
commit
fa82bc9c8c
1 changed files with 15 additions and 5 deletions
|
@ -6946,15 +6946,25 @@ void PF_CustomTEnt(progfuncs_t *prinst, struct globalvars_s *pr_globals)
|
||||||
|
|
||||||
type = sv.customtents[type].netstyle;
|
type = sv.customtents[type].netstyle;
|
||||||
arg = 2;
|
arg = 2;
|
||||||
if (type & CTE_CUSTOMCOUNT)
|
if (type & CTE_ISBEAM)
|
||||||
{
|
{
|
||||||
MSG_WriteByte(&sv.multicast, G_FLOAT(OFS_PARM0+arg*3));
|
MSG_WriteCoord(&sv.multicast, G_VECTOR(OFS_PARM0+arg*3)[0]);
|
||||||
|
MSG_WriteCoord(&sv.multicast, G_VECTOR(OFS_PARM0+arg*3)[1]);
|
||||||
|
MSG_WriteCoord(&sv.multicast, G_VECTOR(OFS_PARM0+arg*3)[2]);
|
||||||
arg++;
|
arg++;
|
||||||
}
|
}
|
||||||
if (type & CTE_CUSTOMDIRECTION)
|
else
|
||||||
{
|
{
|
||||||
MSG_WriteDir(&sv.multicast, G_VECTOR(OFS_PARM0+arg*3));
|
if (type & CTE_CUSTOMCOUNT)
|
||||||
arg++;
|
{
|
||||||
|
MSG_WriteByte(&sv.multicast, G_FLOAT(OFS_PARM0+arg*3));
|
||||||
|
arg++;
|
||||||
|
}
|
||||||
|
if (type & CTE_CUSTOMDIRECTION)
|
||||||
|
{
|
||||||
|
MSG_WriteDir(&sv.multicast, G_VECTOR(OFS_PARM0+arg*3));
|
||||||
|
arg++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (arg != *prinst->callargc)
|
if (arg != *prinst->callargc)
|
||||||
Con_Printf("PF_CusromTEnt: bad number of arguments for particle type\n");
|
Con_Printf("PF_CusromTEnt: bad number of arguments for particle type\n");
|
||||||
|
|
Loading…
Reference in a new issue