Skip to content

Commit

Permalink
8/8/2023 Dev Backup
Browse files Browse the repository at this point in the history
8/8/2023 Dev Backup
SyPB Beta 1.50 (1.50.45720.820):
Base improve & fixed

SwNPC Beta 1.50 (1.50.45418.151):
No Change

SyPB API Beta 1.50 (1.50.45440.55):
No Change
  • Loading branch information
CCNHsK-Dev committed Aug 8, 2023
1 parent c49cbd7 commit b41ec44
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 15 deletions.
Binary file modified Project SyPB/Project_OutPut/SwNPC_amxx.dll
Binary file not shown.
Binary file modified Project SyPB/Project_OutPut/sypb.dll
Binary file not shown.
Binary file modified Project SyPB/Project_OutPut/sypb_amxx.dll
Binary file not shown.
19 changes: 13 additions & 6 deletions Project SyPB/SyPB_BOT/source/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2598,14 +2598,15 @@ void StartFrame (void)
g_maxClients = engine->GetMaxClients();
LoadEntityData();

int debugMode = DEBUG_NONE;

if (!IsDedicatedServer() && !FNullEnt(g_hostEntity))
{
if (g_waypointOn)
{
if (sypb_showwp.GetBool())
sypb_showwp.SetInt(0);

// SyPB Pro P.30 - small change
bool hasBot = false;
for (int i = 0; i < g_maxClients; i++)
{
Expand All @@ -2620,19 +2621,25 @@ void StartFrame (void)
if (!hasBot)
g_waypoint->Think();
}
// SyPB Pro P.38 - Show Waypoint Msg
else if (sypb_showwp.GetBool() == true)
else
debugMode = sypb_debug.GetInt();

if (g_waypointOn || sypb_showwp.GetBool())
g_waypoint->ShowWaypointMsg();

g_debugMode = sypb_debug.GetInt();
if (g_debugMode < DEBUG_NONE || g_debugMode > DEBUG_ALL)
sypb_debug.SetInt(DEBUG_NONE);
if (debugMode < DEBUG_NONE || debugMode > DEBUG_ALL)
{
debugMode = DEBUG_NONE;
sypb_debug.SetInt(debugMode);
}

CheckWelcomeMessage();
}

g_debugMode = debugMode;
g_botActionStop = sypb_stopbots.GetBool();
g_ignoreEnemies = sypb_ignore_enemies.GetBool();

if (g_secondTime < g_pGlobals->time)
{
g_secondTime = g_pGlobals->time + 1.0f;
Expand Down
2 changes: 1 addition & 1 deletion Project SyPB/SyPB_BOT/source/navigate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ int Bot::GetAimingWaypoint (int targetWpIndex)
while (srcIndex != m_currentWaypointIndex)
{
if (srcIndex < 0)
continue;
break;

if (!g_waypoint->IsVisible(m_currentWaypointIndex, srcIndex))
{
Expand Down
4 changes: 2 additions & 2 deletions Project SyPB/SyPB_BOT/source/support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ bool IsAlive (edict_t *ent)

float GetShootingConeDeviation (edict_t *ent, Vector *position)
{
const Vector &dir = (*position - (GetEntityOrigin(ent) + ent->v.view_ofs)).Normalize();
const Vector& dir = (*position - (GetEntityOrigin(ent) + ent->v.view_ofs)).Normalize();
MakeVectors(ent->v.v_angle);

return g_pGlobals->v_forward | dir;
}

Expand Down
6 changes: 1 addition & 5 deletions Project SyPB/SyPB_BOT/source/waypoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ void Waypoint::SgdWp_Set (const char *modset)
else
{
g_editNoclip = false;
ChartPrint("[SgdWP] Cannot Savev your waypoint, Your waypoint has the problem");
ChartPrint("[SgdWP] Cannot save your waypoint, Your waypoint has the problem");
}
}

Expand Down Expand Up @@ -1824,8 +1824,6 @@ void Waypoint::Think(void)
m_fallPoint = true;
}
}

ShowWaypointMsg();
}

// SyPB Pro P.38 - Show Waypoint Msg
Expand Down Expand Up @@ -2032,8 +2030,6 @@ void Waypoint::ShowWaypointMsg(void)
" Flags: %s\n", m_facingAtIndex, g_numWaypoints, m_paths[m_facingAtIndex]->radius, GetWaypointInfo(m_facingAtIndex));
}

// SyPB Pro P.23 - SgdWP
// SyPB Pro P.45 - SgdWP
if (g_sgdWaypoint)
{
length += sprintf(&tempMessage[length], "\n Hold 'E' Call [SgdWP] Menu \n"
Expand Down
2 changes: 1 addition & 1 deletion Project SyPB/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define SYPB_NAME "SyPB"
#define SYPB_VERSION "Beta 1.50"
#define SYPB_VERSION_F 1.50
#define SYPB_VERSION_DWORD 1,50,20230805,819 // yyyy/mm/dd
#define SYPB_VERSION_DWORD 1,50,20230808,820 // yyyy/mm/dd

#define SWNPC_NAME "SwNPC"
#define SWNPC_VERSION "Beta 1.50"
Expand Down

0 comments on commit b41ec44

Please sign in to comment.