MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / VelStop

Method VelStop

src/SB/Game/zNPCTypeCommon.cpp:1347–1372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1345}
1346
1347void 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
1374F32 zNPCCommon::ThrottleAdjust(F32 dt, F32 spd_want, F32 accel)
1375{

Callers 12

ProcessMethod · 0.80
ProcessMethod · 0.80
EnterMethod · 0.80
ResumeMethod · 0.80
MoveToHomeMethod · 0.80
ExitMethod · 0.80
ExitMethod · 0.80
EnterMethod · 0.80
EnterMethod · 0.80
ProcessMethod · 0.80
EnterMethod · 0.80
ProcessMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected