| 1345 | } |
| 1346 | |
| 1347 | void zNPCCommon::VelStop() |
| 1348 | { |
| 1349 | this->spd_throttle = 0.0f; |
| 1350 | this->frame->dvel.x = 0.0f; |
| 1351 | this->frame->dvel.y = 0.0f; |
| 1352 | this->frame->dvel.z = 0.0f; |
| 1353 | this->frame->vel.x = 0.0f; |
| 1354 | this->frame->vel.y = 0.0f; |
| 1355 | this->frame->vel.z = 0.0f; |
| 1356 | this->frame->mode |= 0xC; |
| 1357 | |
| 1358 | if (!this->drv_data) |
| 1359 | { |
| 1360 | this->frame->dpos.x = 0.0f; |
| 1361 | this->frame->dpos.y = 0.0f; |
| 1362 | this->frame->dpos.z = 0.0f; |
| 1363 | this->frame->mode |= 0x2; |
| 1364 | } |
| 1365 | else if (!this->drv_data->driver) |
| 1366 | { |
| 1367 | this->frame->dpos.x = 0.0f; |
| 1368 | this->frame->dpos.y = 0.0f; |
| 1369 | this->frame->dpos.z = 0.0f; |
| 1370 | this->frame->mode |= 0x2; |
| 1371 | } |
| 1372 | } |
| 1373 | |
| 1374 | F32 zNPCCommon::ThrottleAdjust(F32 dt, F32 spd_want, F32 accel) |
| 1375 | { |