| 364 | } |
| 365 | |
| 366 | void oob_state::init() |
| 367 | { |
| 368 | if ((shared.flags & 0x1) != 0x1) |
| 369 | { |
| 370 | return; |
| 371 | } |
| 372 | |
| 373 | shared.flags |= 0x2; |
| 374 | |
| 375 | static in_state_type in_state; |
| 376 | shared.states[0] = &in_state; |
| 377 | |
| 378 | static out_state_type out_state; |
| 379 | shared.states[1] = &out_state; |
| 380 | |
| 381 | static grab_state_type grab_state; |
| 382 | shared.states[2] = &grab_state; |
| 383 | |
| 384 | static drop_state_type drop_state; |
| 385 | shared.states[3] = &drop_state; |
| 386 | |
| 387 | shared.max_out_time = fixed.out_time; |
| 388 | shared.fade_alpha = 1.0f; |
| 389 | shared.render_hand = FALSE; |
| 390 | shared.control = FALSE; |
| 391 | |
| 392 | U32 bufsize; |
| 393 | void* info = xSTFindAsset(xStrHash(fixed.hand_model), &bufsize); |
| 394 | |
| 395 | xModelInstance* model; |
| 396 | if (info == NULL) |
| 397 | { |
| 398 | model = NULL; |
| 399 | } |
| 400 | else |
| 401 | { |
| 402 | model = xEntLoadModel(NULL, (RpAtomic*)info); |
| 403 | } |
| 404 | |
| 405 | shared.model = model; |
| 406 | } |
| 407 | |
| 408 | namespace oob_state |
| 409 | { |
nothing calls this directly
no test coverage detected