| 519 | } |
| 520 | |
| 521 | void DemoWriteObjCreate(uint8_t type, uint16_t id, int roomnum, vector *pos, const matrix *orient, int parent_handle, |
| 522 | object *obj) { |
| 523 | |
| 524 | if (Demo_flags == DF_RECORDING) { |
| 525 | |
| 526 | if ((type == OBJ_ROBOT) || (type == OBJ_POWERUP) || (type == OBJ_CLUTTER) || (type == OBJ_BUILDING) || |
| 527 | (type == OBJ_CAMERA)) { |
| 528 | cf_WriteByte(Demo_cfp, DT_OBJ_CREATE); |
| 529 | // cf_WriteFloat(Demo_cfp,Gametime); |
| 530 | cf_WriteByte(Demo_cfp, type); |
| 531 | cf_WriteByte(Demo_cfp, orient ? 1 : 0); |
| 532 | cf_WriteShort(Demo_cfp, id); |
| 533 | cf_WriteInt(Demo_cfp, roomnum); |
| 534 | gs_WriteVector(Demo_cfp, *pos); |
| 535 | cf_WriteInt(Demo_cfp, parent_handle); |
| 536 | if (orient) |
| 537 | gs_WriteMatrix(Demo_cfp, *orient); |
| 538 | |
| 539 | // Add the script name if there is one |
| 540 | // Start with the name len (minus the null) |
| 541 | |
| 542 | cf_WriteShort(Demo_cfp, OBJNUM(obj)); |
| 543 | } |
| 544 | } |
| 545 | } |
| 546 | |
| 547 | #define MAX_COOP_TURRETS 400 |
| 548 | extern float turret_holder[MAX_COOP_TURRETS]; |
no test coverage detected