MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / DemoWriteCollidePlayerWeapon

Function DemoWriteCollidePlayerWeapon

Descent3/demofile.cpp:1356–1364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1354 vector *collision_normal, bool f_reverse_normal, fvi_info *hit_info);
1355
1356void DemoWriteCollidePlayerWeapon(object *playerobj, object *weapon, vector *collision_point, vector *collision_normal,
1357 bool f_reverse_normal, void *hit_info) {
1358 cf_WriteByte(Demo_cfp, DT_COLLIDE_PLR);
1359 cf_WriteShort(Demo_cfp, OBJNUM(playerobj));
1360 cf_WriteShort(Demo_cfp, OBJNUM(weapon));
1361 gs_WriteVector(Demo_cfp, *collision_point);
1362 gs_WriteVector(Demo_cfp, *collision_normal);
1363 cf_WriteByte(Demo_cfp, f_reverse_normal ? 1 : 0);
1364}
1365
1366void DemoReadCollidePlayerWeapon(void) {
1367 vector collision_p;

Callers 1

Calls 2

cf_WriteByteFunction · 0.85
cf_WriteShortFunction · 0.85

Tested by

no test coverage detected