Skip to content

Commit

Permalink
fix: some tas things
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Oct 3, 2024
1 parent 7af6ddd commit f75118f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Features/Tas/TasTools/StrafeTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ void AutoStrafeTool::Apply(TasFramebulk &fb, const TasPlayerInfo &rawPInfo) {
float moveAngle = DEG2RAD(angle - pInfo.angles.y);
fb.moveAnalog.x = -sinf(moveAngle);
fb.moveAnalog.y = cosf(moveAngle);
if (sar.game->Is(SourceGame_INFRA)) {
fb.moveAnalog.y *= 2;
}
if (pInfo.onSpeedPaint) fb.moveAnalog.x *= 2;
} else if (params.strafeType == AutoStrafeType::VECTORIAL_CAM) {
float lookAngle = this->shouldFollowLine ? params.strafeDir.angle : velAngle;
Expand Down
1 change: 1 addition & 0 deletions src/Modules/FileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ std::string FileSystem::GetSaveDirectory() {
#endif

bool FileSystem::MapExists(std::string name) {
if (sar.game->Is(SourceGame_INFRA)) return true; // the maps are inside VPKs
name = "maps/" + name;
if (!Utils::EndsWith(name, ".bsp")) name += ".bsp";
return FileExistsSomewhere(name);
Expand Down

0 comments on commit f75118f

Please sign in to comment.