Lines 1465-1477
Link Here
|
1465 |
return; |
1465 |
return; |
1466 |
|
1466 |
|
1467 |
MSG_WriteMarker(&cl->reliablebuf, svc_spawnmobj); |
1467 |
MSG_WriteMarker(&cl->reliablebuf, svc_spawnmobj); |
1468 |
MSG_WriteLong(&cl->reliablebuf, mo->x); |
|
|
1469 |
MSG_WriteLong(&cl->reliablebuf, mo->y); |
1470 |
MSG_WriteLong(&cl->reliablebuf, mo->z); |
1471 |
MSG_WriteLong(&cl->reliablebuf, mo->angle); |
1472 |
|
1473 |
MSG_WriteShort(&cl->reliablebuf, mo->type); |
1468 |
MSG_WriteShort(&cl->reliablebuf, mo->type); |
1474 |
MSG_WriteShort(&cl->reliablebuf, mo->netid); |
1469 |
MSG_WriteShort(&cl->reliablebuf, mo->netid); |
|
|
1470 |
|
1471 |
// [SL] 2012-02-25 - Send the position for a bullet/blood puff as 16 bits |
1472 |
// instead of 32-bit fixed-point. This is done kind of hacky and should |
1473 |
// be revised in the future. |
1474 |
if (mo->type == MT_PUFF || mo->type == MT_BLOOD) |
1475 |
{ |
1476 |
MSG_WriteShort(&cl->reliablebuf, mo->x >> FRACBITS); |
1477 |
MSG_WriteShort(&cl->reliablebuf, mo->y >> FRACBITS); |
1478 |
MSG_WriteShort(&cl->reliablebuf, mo->z >> FRACBITS); |
1479 |
} |
1480 |
else |
1481 |
{ |
1482 |
MSG_WriteLong(&cl->reliablebuf, mo->x); |
1483 |
MSG_WriteLong(&cl->reliablebuf, mo->y); |
1484 |
MSG_WriteLong(&cl->reliablebuf, mo->z); |
1485 |
MSG_WriteLong(&cl->reliablebuf, mo->angle); |
1486 |
} |
1487 |
|
1475 |
MSG_WriteByte(&cl->reliablebuf, mo->rndindex); |
1488 |
MSG_WriteByte(&cl->reliablebuf, mo->rndindex); |
1476 |
MSG_WriteShort(&cl->reliablebuf, (mo->state - states)); // denis - sending state fixes monster ghosts appearing under doors |
1489 |
MSG_WriteShort(&cl->reliablebuf, (mo->state - states)); // denis - sending state fixes monster ghosts appearing under doors |
1477 |
|
1490 |
|