MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / PerformUnlock

Method PerformUnlock

engine/Poseidon/AI/VehicleAIPilot.cpp:1681–1690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1679}
1680
1681void EntityAI::PerformUnlock()
1682{
1683 if (_locked && _tempLocked)
1684 {
1685 float manRadius = _lockedSoldier ? ManLockRadius : floatMax(4, _lockedRadius * 0.6);
1686 _locker->UnlockPositionMan(_lockedBeg, manRadius);
1687 _locker->UnlockPosition(_lockedBeg, _lockedRadius, _lockedSoldier);
1688 _tempLocked = false;
1689 }
1690}
1691
1692void EntityAI::LockPosition()
1693{

Callers 6

IsSimplePathMethod · 0.80
VerifyPathMethod · 0.80
CheckEmptyMethod · 0.80
FindNearestEmptyMethod · 0.80
CreateNoRoadPathMethod · 0.80
CreateRoadPathMethod · 0.80

Calls 3

floatMaxFunction · 0.85
UnlockPositionManMethod · 0.80
UnlockPositionMethod · 0.45

Tested by

no test coverage detected