Merge remote-tracking branch 'nullworks/newui' into Pathfinder
This commit is contained in:
commit
29106eb8b9
@ -54,4 +54,13 @@
|
|||||||
<AutoVariable width="fill" target="follow-bot.corners" label="Corner activate"/>
|
<AutoVariable width="fill" target="follow-bot.corners" label="Corner activate"/>
|
||||||
</List>
|
</List>
|
||||||
</Box>
|
</Box>
|
||||||
</Tab>
|
<Box name="NavBot" width="content" height="content" padding="12 6 6 6" x="210" y="233">
|
||||||
|
<List width="200">
|
||||||
|
<AutoVariable width="fill" target="misc.pathing" label="Enable Pathing"/>
|
||||||
|
<AutoVariable width="fill" target="navbot.enable" label="Enable NavBot"/>
|
||||||
|
<AutoVariable width="fill" target="navbot.spy-mode" label="Enable Spy Mode"/>
|
||||||
|
<AutoVariable width="fill" target="navbot.heavy-mode" label="Enable Heavy Mode"/>
|
||||||
|
<AutoVariable width="fill" target="navbot.primary-only" label="Best Weapon only"/>
|
||||||
|
</List>
|
||||||
|
</Box>
|
||||||
|
</Tab>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<AutoVariable width="fill" target="misc.no-homo" label="#nohomo"/>
|
<AutoVariable width="fill" target="misc.no-homo" label="#nohomo"/>
|
||||||
<AutoVariable width="fill" target="misc.no-lerp" label="nolerp"/>
|
<AutoVariable width="fill" target="misc.no-lerp" label="nolerp"/>
|
||||||
<AutoVariable width="fill" target="misc.no-push" label="nopush"/>
|
<AutoVariable width="fill" target="misc.no-push" label="nopush"/>
|
||||||
<AutoVariable width="fill" target="misc.roll-speedhack" label="Rollspeedhack"/>
|
<AutoVariable width="fill" target="misc.roll-speedhack" label="Moonwalk"/>
|
||||||
<AutoVariable width="fill" target="misc.semi-auto" label="Semiauto Fire"/>
|
<AutoVariable width="fill" target="misc.semi-auto" label="Semiauto Fire"/>
|
||||||
<AutoVariable width="fill" target="misc.show-spectators" label="Show spectators"/>
|
<AutoVariable width="fill" target="misc.show-spectators" label="Show spectators"/>
|
||||||
<LabeledObject width="fill" label="Skybox Override">
|
<LabeledObject width="fill" label="Skybox Override">
|
||||||
|
1
external/CMakeLists.txt
vendored
Executable file → Normal file
1
external/CMakeLists.txt
vendored
Executable file → Normal file
@ -4,3 +4,4 @@ target_sources(cathook PRIVATE
|
|||||||
target_include_directories(cathook PRIVATE "${CMAKE_CURRENT_LIST_DIR}/MicroPather")
|
target_include_directories(cathook PRIVATE "${CMAKE_CURRENT_LIST_DIR}/MicroPather")
|
||||||
target_include_directories(cathook PRIVATE "${CMAKE_CURRENT_LIST_DIR}/ucccccp")
|
target_include_directories(cathook PRIVATE "${CMAKE_CURRENT_LIST_DIR}/ucccccp")
|
||||||
target_include_directories(cathook PRIVATE "${CMAKE_CURRENT_LIST_DIR}/TF2_NavFile_Reader")
|
target_include_directories(cathook PRIVATE "${CMAKE_CURRENT_LIST_DIR}/TF2_NavFile_Reader")
|
||||||
|
|
||||||
|
@ -162,7 +162,22 @@ void CreateMove()
|
|||||||
if (!g_pLocalPlayer->bZoomed && !(current_user_cmd->buttons & IN_ATTACK))
|
if (!g_pLocalPlayer->bZoomed && !(current_user_cmd->buttons & IN_ATTACK))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// Minigun spun up handler
|
||||||
|
if (g_pLocalPlayer->weapon()->m_iClassID() == CL_CLASS(CTFMinigun))
|
||||||
|
{
|
||||||
|
int weapon_state =
|
||||||
|
CE_INT(g_pLocalPlayer->weapon(), netvar.iWeaponState);
|
||||||
|
// If user setting for autospin isnt true, then we check if minigun
|
||||||
|
// is already zoomed
|
||||||
|
if ((weapon_state == MinigunState_t::AC_STATE_IDLE ||
|
||||||
|
weapon_state == MinigunState_t::AC_STATE_STARTFIRING) &&
|
||||||
|
!auto_spin_up)
|
||||||
|
return;
|
||||||
|
if (auto_spin_up)
|
||||||
|
current_user_cmd->buttons |= IN_ATTACK2;
|
||||||
|
if (!(current_user_cmd->buttons & (IN_ATTACK2 | IN_ATTACK)))
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!g_IEntityList->GetClientEntity(target_entity->m_IDX))
|
if (!g_IEntityList->GetClientEntity(target_entity->m_IDX))
|
||||||
return;
|
return;
|
||||||
if (!target_entity->hitboxes.GetHitbox(
|
if (!target_entity->hitboxes.GetHitbox(
|
||||||
@ -307,29 +322,6 @@ bool ShouldAim()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Minigun spun up handler
|
|
||||||
if (g_pLocalPlayer->weapon()->m_iClassID() == CL_CLASS(CTFMinigun))
|
|
||||||
{
|
|
||||||
int weapon_state =
|
|
||||||
CE_INT(g_pLocalPlayer->weapon(), netvar.iWeaponState);
|
|
||||||
// If user setting for autospin isnt true, then we check if minigun
|
|
||||||
// is already zoomed
|
|
||||||
if ((weapon_state == MinigunState_t::AC_STATE_IDLE ||
|
|
||||||
weapon_state == MinigunState_t::AC_STATE_STARTFIRING) &&
|
|
||||||
!auto_spin_up)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (auto_spin_up)
|
|
||||||
{
|
|
||||||
current_user_cmd->buttons |= IN_ATTACK2;
|
|
||||||
}
|
|
||||||
if (!(current_user_cmd->buttons & (IN_ATTACK2 | IN_ATTACK)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ Timer cd2{};
|
|||||||
Timer cd3{};
|
Timer cd3{};
|
||||||
void CreateMove()
|
void CreateMove()
|
||||||
{
|
{
|
||||||
if ( !enable || !nav::Prepare())
|
if (!enable || !nav::Prepare())
|
||||||
return;
|
return;
|
||||||
if (CE_BAD(LOCAL_E) || !LOCAL_E->m_bAlivePlayer())
|
if (CE_BAD(LOCAL_E) || !LOCAL_E->m_bAlivePlayer())
|
||||||
return;
|
return;
|
||||||
@ -165,7 +165,7 @@ void CreateMove()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!nav::ReadyForCommands && !spy_mode)
|
if (!nav::ReadyForCommands && !spy_mode && !heavy_mode)
|
||||||
cd3.update();
|
cd3.update();
|
||||||
bool isready = (spy_mode || heavy_mode) ? 1 : nav::ReadyForCommands;
|
bool isready = (spy_mode || heavy_mode) ? 1 : nav::ReadyForCommands;
|
||||||
int waittime = (spy_mode || heavy_mode) ? 100 : 5000;
|
int waittime = (spy_mode || heavy_mode) ? 100 : 5000;
|
||||||
@ -184,7 +184,7 @@ void CreateMove()
|
|||||||
int rng = rand() % sniper_spots.size();
|
int rng = rand() % sniper_spots.size();
|
||||||
random_spot = sniper_spots.at(rng);
|
random_spot = sniper_spots.at(rng);
|
||||||
if (random_spot.z)
|
if (random_spot.z)
|
||||||
nav::NavTo(random_spot, false);
|
nav::NavTo(random_spot, false, true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user