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

Function ObjInitMarker

Descent3/ObjInit.cpp:1055–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1053 return ret;
1054}
1055int ObjInitMarker(object *objp) {
1056 int ret = 1;
1057 static int first = 1;
1058 static int polynum = -1;
1059 ASSERT(objp->type == OBJ_MARKER);
1060 // Set size & shields
1061 objp->shields = 100;
1062 objp->size = 2.0;
1063 // Set up control info
1064 SetObjectControlType(objp, CT_NONE);
1065 objp->movement_type = MT_NONE;
1066 ObjSetRenderPolyobj(objp, Marker_polynum);
1067 PageInPolymodel(Marker_polynum, OBJ_MARKER, &objp->size);
1068 objp->lm_object.used = 0;
1069 objp->lighting_render_type = LRT_STATIC;
1070 return ret;
1071}
1072int ObjInitDoor(object *objp, bool reinit) {
1073 // Set up movement info
1074 objp->movement_type = MT_NONE;

Callers 1

ObjInitTypeSpecificFunction · 0.85

Calls 3

SetObjectControlTypeFunction · 0.85
ObjSetRenderPolyobjFunction · 0.85
PageInPolymodelFunction · 0.85

Tested by

no test coverage detected