| 344 | } |
| 345 | |
| 346 | void NPCGlyph::Init(en_npcglyph gtyp, RpAtomic* model_data) |
| 347 | { |
| 348 | xVec3 vec = {}; |
| 349 | |
| 350 | typ_glyph = gtyp; |
| 351 | |
| 352 | if (model_data != NULL) |
| 353 | { |
| 354 | mdl_glyph = xModelInstanceAlloc(model_data, NULL, 0, 0, NULL); |
| 355 | if (mdl_glyph != NULL) |
| 356 | { |
| 357 | xMat4x3 frame; |
| 358 | xMat3x3Euler(&frame, &vec); |
| 359 | xVec3Copy(&frame.pos, &g_O3); |
| 360 | frame.flags = 0; |
| 361 | xModelSetFrame(mdl_glyph, &frame); |
| 362 | } |
| 363 | } |
| 364 | |
| 365 | Reset(); |
| 366 | } |
| 367 | |
| 368 | void NPCGlyph::Kill() |
| 369 | { |
no test coverage detected