X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=svvm_cmds.c;h=251ecc4fa4c74b0b8f21bc89d3d32e6bcb1bd336;hb=1497fb1549ed18cb1a210cb407c6286f34474e19;hp=d77c1f0057d0a4e1b95e1cd7423662590b2ff078;hpb=56ea125a48ae3d8fd628559014e68ee83dc5b324;p=xonotic%2Fdarkplaces.git diff --git a/svvm_cmds.c b/svvm_cmds.c index d77c1f00..251ecc4f 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -89,10 +89,12 @@ char *vm_sv_extensions = "DP_SV_NODRAWTOCLIENT " "DP_SV_PING " "DP_SV_PLAYERPHYSICS " +"DP_SV_PRECACHEANYTIME " "DP_SV_PUNCHVECTOR " "DP_SV_ROTATINGBMODEL " "DP_SV_SETCOLOR " "DP_SV_SLOWMO " +"DP_SV_WRITEUNTERMINATEDSTRING " "DP_TE_BLOOD " "DP_TE_BLOODSHOWER " "DP_TE_CUSTOMFLASH " @@ -862,7 +864,7 @@ void PF_lightstyle (void) style = PRVM_G_FLOAT(OFS_PARM0); val = PRVM_G_STRING(OFS_PARM1); - if( (unsigned) style >= 64 ) { + if( (unsigned) style >= MAX_LIGHTSTYLES ) { PRVM_ERROR( "PF_lightstyle: style: %i >= 64", style ); } @@ -1185,6 +1187,11 @@ void PF_WriteString (void) MSG_WriteString (WriteDest(), PRVM_G_STRING(OFS_PARM1)); } +void PF_WriteUnterminatedString (void) +{ + MSG_WriteUnterminatedString (WriteDest(), PRVM_G_STRING(OFS_PARM1)); +} + void PF_WriteEntity (void) { @@ -1789,6 +1796,22 @@ void PF_te_plasmaburn (void) MSG_WriteCoord(&sv.datagram, PRVM_G_VECTOR(OFS_PARM0)[2], sv.protocol); } +void PF_te_flamejet (void) +{ + MSG_WriteByte(&sv.datagram, svc_temp_entity); + MSG_WriteByte(&sv.datagram, TE_FLAMEJET); + // org + MSG_WriteCoord(&sv.datagram, PRVM_G_VECTOR(OFS_PARM0)[0], sv.protocol); + MSG_WriteCoord(&sv.datagram, PRVM_G_VECTOR(OFS_PARM0)[1], sv.protocol); + MSG_WriteCoord(&sv.datagram, PRVM_G_VECTOR(OFS_PARM0)[2], sv.protocol); + // vel + MSG_WriteCoord(&sv.datagram, PRVM_G_VECTOR(OFS_PARM1)[0], sv.protocol); + MSG_WriteCoord(&sv.datagram, PRVM_G_VECTOR(OFS_PARM1)[1], sv.protocol); + MSG_WriteCoord(&sv.datagram, PRVM_G_VECTOR(OFS_PARM1)[2], sv.protocol); + // count + MSG_WriteByte(&sv.datagram, PRVM_G_FLOAT(OFS_PARM2)); +} + static void clippointtosurface(msurface_t *surface, vec3_t p, vec3_t out) { int i, j, k; @@ -2469,8 +2492,8 @@ PF_gettaginfo, // #452 vector(entity ent, float tagindex) gettaginfo (DP_QC_G PF_dropclient, // #453 void(entity clent) dropclient (DP_SV_DROPCLIENT) PF_spawnclient, // #454 entity() spawnclient (DP_SV_BOTCLIENT) PF_clienttype, // #455 float(entity clent) clienttype (DP_SV_BOTCLIENT) -NULL, // #456 -NULL, // #457 +PF_WriteUnterminatedString, // #456 void(float to, string s) WriteUnterminatedString (DP_SV_WRITEUNTERMINATEDSTRING) +PF_te_flamejet, // #457 void(vector org, vector vel, float howmany) te_flamejet = #457 (DP_TE_FLAMEJET) NULL, // #458 NULL, // #459 e10, e10, e10, e10 // #460-499 (LordHavoc)