Skip to content

Commit

Permalink
SyPB Beta 1.47 - Open Source
Browse files Browse the repository at this point in the history
SyPB Beta 1.47 Available
(Build: 1.47.41669.671)

(22/12/2016)
  • Loading branch information
CCNHsK-Dev committed Jan 21, 2017
1 parent 3e16027 commit 4d2bf16
Show file tree
Hide file tree
Showing 70 changed files with 916 additions and 1,371 deletions.
28 changes: 22 additions & 6 deletions sypb_src/include/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,16 @@ enum PathConnection
PATHCON_BOTHWAYS
};

// SyPB Support Game Mode
enum GameMode
{
MODE_DM = 1,
MODE_ZP = 2,
MODE_NOTEAM = 3,
MODE_ZH = 4,
MODE_BASE = 0
};

// bot known file headers
const char FH_WAYPOINT[] = "PODWAY!";
const char FH_VISTABLE[] = "PODVIS!";
Expand Down Expand Up @@ -732,15 +742,14 @@ class Bot

// SyPB Pro P.24 - Move Target
float m_damageTime;
float m_checkDTime;

float m_askCheckTime; // time to ask team
float m_collideTime; // time last collision
float m_firstCollideTime; // time of first collision
float m_probeTime; // time of probing different moves
float m_lastCollTime; // time until next collision check
int m_collisionProbeBits; // bits of possible collision moves
int m_collideMoves[4]; // sorted array of movements
int m_collideMoves[3]; // sorted array of movements
int m_collStateIndex; // index into collide moves
CollisionState m_collisionState; // collision State

Expand All @@ -749,6 +758,8 @@ class Bot
uint8_t m_pathType; // which pathfinder to use
uint8_t m_visibility; // visibility flags

uint8_t *m_fatPVS; // SyPB Pro P.47 - check enemy improve

int m_currentWaypointIndex; // current waypoint index
int m_travelStartIndex; // travel start index to double jump action
int m_prevWptIndex[5]; // previous waypoint indices from waypoint find
Expand All @@ -773,8 +784,8 @@ class Bot
float m_timeWaypointMove; // last time bot followed waypoints
bool m_wantsToFire; // bot needs consider firing
float m_shootAtDeadTime; // time to shoot at dying players
edict_t *m_avoidGrenade; // pointer to grenade entity to avoid
char m_needAvoidGrenade; // which direction to strafe away
edict_t *m_avoidEntity; // pointer to grenade entity to avoid
char m_needAvoidEntity; // which direction to strafe away

float m_followWaitTime; // wait to follow time
edict_t *m_targetEntity; // the entity that the bot is trying to reach
Expand Down Expand Up @@ -871,7 +882,7 @@ class Bot
void AvoidEntity (void);

void ZombieModeAi (void);
void ZmCampPointAction(int action = 1);
void ZmCampPointAction(int mode = 0);

void CheckSilencer (void);
bool CheckWallOnLeft (void);
Expand Down Expand Up @@ -901,6 +912,8 @@ class Bot
int FindGoal (void);
void FindItem (void);

void CheckCloseAvoidance(const Vector &dirNormal);

void GetCampDirection (Vector *dest);
int GetMessageQueue (void);
bool GoalIsValid (void);
Expand Down Expand Up @@ -1140,6 +1153,7 @@ class Bot
int FindWaypoint ();
bool EntityIsVisible (Vector dest, bool fromBody = false);

void SetEnemy(edict_t *entity);
void SetMoveTarget (edict_t *entity);
void SetLastEnemy(edict_t *entity);

Expand Down Expand Up @@ -1226,7 +1240,7 @@ class BotControl : public Singleton <BotControl>
void Free (void);
void Free (int index);
//void CheckAutoVacate (edict_t *ent);
void CheckAutoBotNum(void);
void CheckBotNum(void);

void AddRandom (void) { AddBot ("", -1, -1, -1, -1); }
void AddBot (const String &name, int skill, int personality, int team, int member);
Expand Down Expand Up @@ -1441,6 +1455,8 @@ extern int GetTeam (edict_t *ent);
extern int GetGameMod (void);
extern bool IsZombieEntity (edict_t *ent);

extern void SetGameMod(int gamemode);

extern int GetEntityWaypoint(edict_t *ent);
extern int SetEntityWaypoint(edict_t *ent, float waitTime = engine->RandomFloat (1.0f, 2.0f), int mode = -1);

Expand Down
18 changes: 9 additions & 9 deletions sypb_src/include/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -2593,17 +2593,17 @@ extern Vector GetEntityOrigin (entvars_t * pevBModel);
#define PUSH_BLOCK_ONLY_X 1
#define PUSH_BLOCK_ONLY_Y 2

#define VEC_HULL_MIN Vector(-16, -16, -36)
#define VEC_HULL_MAX Vector( 16, 16, 36)
#define VEC_HUMAN_HULL_MIN Vector( -16, -16, 0 )
#define VEC_HUMAN_HULL_MAX Vector( 16, 16, 72 )
#define VEC_HUMAN_HULL_DUCK Vector( 16, 16, 36 )
#define VEC_HULL_MIN Vector(-16.0f, -16.0f, -36.0f)
#define VEC_HULL_MAX Vector( 16.0f, 16.0f, 36.0f)
#define VEC_HUMAN_HULL_MIN Vector( -16.0f, -16.0f, 0.0f )
#define VEC_HUMAN_HULL_MAX Vector( 16.0f, 16.0f, 72.0f )
#define VEC_HUMAN_HULL_DUCK Vector( 16.0f, 16.0f, 36.0f )

#define VEC_VIEW Vector( 0, 0, 28 )
#define VEC_VIEW Vector( 0.0f, 0.0f, 2.0f8 )

#define VEC_DUCK_HULL_MIN Vector(-16, -16, -18 )
#define VEC_DUCK_HULL_MAX Vector( 16, 16, 18)
#define VEC_DUCK_VIEW Vector( 0, 0, 12 )
#define VEC_DUCK_HULL_MIN Vector(-16.0f, -16.0f, -18.0f )
#define VEC_DUCK_HULL_MAX Vector( 16.0f, 16.0f, 18.0f )
#define VEC_DUCK_VIEW Vector( 0.0f, 0.0f, 12.0f )

#define SVC_TEMPENTITY 23
#define SVC_INTERMISSION 30
Expand Down
1 change: 0 additions & 1 deletion sypb_src/include/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ extern bool g_editNoclip;
extern bool g_isMetamod;
extern bool g_isFakeCommand;
extern bool g_sendAudioFinished;
extern bool g_isCommencing;
extern bool g_leaderChoosen[2];

extern bool g_sgdWaypoint;
Expand Down
10 changes: 5 additions & 5 deletions sypb_src/include/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
//#define PRODUCT_DEV_VERSION_FORTEST "(Preview-2)"
// Dev Version Date
#define PV_VERSION_YEAR 2016
#define PV_VERSION_MON 11
#define PV_VERSION_DAY 21
#define PV_VERSION_MON 12
#define PV_VERSION_DAY 25
#else
#define PRODUCT_DEV_VERSION_FORTEST ""
#endif
Expand All @@ -50,9 +50,9 @@
#define SUPPORT_SWNPC_VERSION_F 1.45

// SyPB Version
#define PRODUCT_VERSION_DWORD 1,46,20161020,653 // yyyy/mm/dd
#define PRODUCT_VERSION "Beta 1.46"
#define PRODUCT_VERSION_F 1.46
#define PRODUCT_VERSION_DWORD 1,47,20161221,671 // yyyy/mm/dd
#define PRODUCT_VERSION "Beta 1.47"
#define PRODUCT_VERSION_F 1.47

// general product information
#define PRODUCT_NAME "SyPB"
Expand Down
Binary file removed sypb_src/project/.vs/sypb/v14/.suo
Binary file not shown.
Binary file removed sypb_src/project/.vs/sypb/v15/.suo
Binary file not shown.
Binary file not shown.
Binary file modified sypb_src/project/sypb.VC.db
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/Experience.sbr
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/basecode.sbr
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/callbacks.sbr
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/chatlib.sbr
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/combat.sbr
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/control.sbr
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/engine.sbr
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/globals.sbr
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/interface.sbr
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/navigate.sbr
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/netmsg.sbr
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/precomp.sbr
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/support.sbr
Binary file not shown.
51 changes: 0 additions & 51 deletions sypb_src/project/sypb_debug/inf/sypb.Build.CppClean.log

This file was deleted.

Binary file removed sypb_src/project/sypb_debug/inf/sypb.exp
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/sypb.lib
Binary file not shown.
20 changes: 0 additions & 20 deletions sypb_src/project/sypb_debug/inf/sypb.log

This file was deleted.

Binary file removed sypb_src/project/sypb_debug/inf/sypb.pch
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/sypb.res
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 0 additions & 2 deletions sypb_src/project/sypb_debug/inf/sypb.tlog/sypb.lastbuildstate

This file was deleted.

Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/vc140.idb
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/vc140.pdb
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/inf/waypoint.sbr
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/obj/Experience.obj
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/obj/basecode.obj
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/obj/callbacks.obj
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/obj/chatlib.obj
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/obj/combat.obj
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/obj/control.obj
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/obj/engine.obj
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/obj/globals.obj
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/obj/interface.obj
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/obj/navigate.obj
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/obj/netmsg.obj
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/obj/precomp.obj
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/obj/support.obj
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/obj/waypoint.obj
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/sypb.bsc
Binary file not shown.
Binary file modified sypb_src/project/sypb_debug/sypb.dll
Binary file not shown.
Binary file removed sypb_src/project/sypb_debug/sypb.pdb
Binary file not shown.
Loading

0 comments on commit 4d2bf16

Please sign in to comment.