From 31e43d10214a61cd44a8767121b1a9feea1b88dd Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 19 Nov 2004 17:44:33 +0000 Subject: [PATCH] It now knows how NQ mods can set TE_ effects 76 and 79 git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@477 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/net_preparse.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/engine/server/net_preparse.c b/engine/server/net_preparse.c index 322beb6e9..532919cb8 100644 --- a/engine/server/net_preparse.c +++ b/engine/server/net_preparse.c @@ -384,7 +384,7 @@ void NPP_NQWriteByte(int dest, qbyte data) //replacement write func (nq to qw) break; case TE_RAILTRAIL: protocollen = sizeofcoord*6+sizeof(qbyte)*1; - multicastpos=1; + multicastpos=2; multicasttype=MULTICAST_PHS; break; case TE_STREAM_CHAIN: @@ -404,6 +404,18 @@ void NPP_NQWriteByte(int dest, qbyte data) //replacement write func (nq to qw) multicasttype=MULTICAST_PHS; break; + case 76: + protocollen = sizeofcoord*9+sizeof(qbyte)*2; + multicastpos = 2; + multicasttype=MULTICAST_PHS; + break; + + case 79: + protocollen = sizeofcoord*6+sizeof(qbyte)*3; + multicastpos = 1; + multicasttype=MULTICAST_PHS; + break; + default: protocollen = sizeof(buffer); Con_Printf("bad tempentity\n");