86% match, just some sda2 scheduling issues
| 187 | |
| 188 | // 86% match, just some sda2 scheduling issues |
| 189 | static void SB1_ResetGlobalStuff() |
| 190 | { |
| 191 | sSB1_Ptr->m_subModels[2]->Flags |= 1; |
| 192 | sSB1_Ptr->m_subModels[3]->Flags |= 1; |
| 193 | sSB1_Ptr->m_subModels[4]->Flags &= ~1; |
| 194 | sSB1_Ptr->m_subModels[5]->Flags &= ~1; |
| 195 | |
| 196 | sSB1_Ptr->m_tauntTimer = 0.0f; |
| 197 | |
| 198 | sSB1_deflated[0] = false; |
| 199 | sSB1_deflated[1] = false; |
| 200 | sSB1_armTgtHit = NULL; |
| 201 | |
| 202 | memset(sSB1_Ptr->m_stompRing, 0, sizeof(sSB1_Ptr->m_stompRing)); |
| 203 | |
| 204 | S32 i; |
| 205 | |
| 206 | for (i = 0; i < 2; i++) |
| 207 | { |
| 208 | if (sSB1_Ptr->m_armColl[i]) |
| 209 | { |
| 210 | sSB1_Ptr->m_armColl[i]->model->Flags = 0x2800; |
| 211 | sSB1_Ptr->m_armColl[i]->model->Next = NULL; |
| 212 | sSB1_Ptr->m_armColl[i]->bound.type = 1; |
| 213 | sSB1_Ptr->m_armColl[i]->bound.box.center = g_O3; |
| 214 | |
| 215 | sSB1_Ptr->m_armColl[i]->bound.box.box.upper.x = 100.0f; |
| 216 | sSB1_Ptr->m_armColl[i]->update = SB1Dummy_UpdateFunc; |
| 217 | sSB1_Ptr->m_armColl[i]->bupdate = SB1Dummy_BoundFunc; |
| 218 | sSB1_Ptr->m_armColl[i]->penby = XENT_COLLTYPE_PLYR; |
| 219 | sSB1_Ptr->m_armColl[i]->chkby = XENT_COLLTYPE_PLYR; |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | sSB1_Ptr->m_armColl[0]->model->Data = sSB1_Ptr->m_subModels[2]->Data; |
| 224 | sSB1_Ptr->m_armColl[0]->model->Mat = sSB1_Ptr->m_subModels[2]->Mat; |
| 225 | |
| 226 | sSB1_Ptr->m_armColl[1]->model->Data = sSB1_Ptr->m_subModels[3]->Data; |
| 227 | sSB1_Ptr->m_armColl[1]->model->Mat = sSB1_Ptr->m_subModels[3]->Mat; |
| 228 | |
| 229 | if (sSB1_Ptr->m_bodyColl) |
| 230 | { |
| 231 | sSB1_Ptr->m_bodyColl->model->Flags = 0x2000; |
| 232 | |
| 233 | sSB1_Ptr->m_bodyColl->bound.type = 4; |
| 234 | |
| 235 | sSB1_Ptr->m_bodyColl->bound.box.box.lower.x = -3.5f; |
| 236 | sSB1_Ptr->m_bodyColl->bound.box.box.lower.y = 0.0f; |
| 237 | sSB1_Ptr->m_bodyColl->bound.box.box.lower.z = -2.0f; |
| 238 | |
| 239 | sSB1_Ptr->m_bodyColl->bound.box.box.upper.x = 3.5f; |
| 240 | sSB1_Ptr->m_bodyColl->bound.box.box.upper.y = 10.0f; |
| 241 | sSB1_Ptr->m_bodyColl->bound.box.box.upper.z = 2.0f; |
| 242 | |
| 243 | sSB1_Ptr->m_bodyColl->bound.mat = (xMat4x3*)sSB1_Ptr->model->Mat; |
| 244 | |
| 245 | sSB1_Ptr->m_bodyColl->update = SB1Dummy_UpdateFunc; |
| 246 | sSB1_Ptr->m_bodyColl->bupdate = SB1Dummy_BoundFunc; |