Skip to content

Commit 46b9130

Browse files
committed
Version 1.51-beta7 released!
1 parent 6cbfcc9 commit 46b9130

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ RCbot created by Cheeseh
55
Supported Mods
66
--------------
77

8+
- Action Half-Life (WIP)
89
- Bumpercars
910
- Battlegrounds
1011
- Deathmatch Classic
11-
- Opposing Force (CTF)
12+
- Opposing Force
1213
- Natural Selection
1314
- Rocket Crowbar
14-
- Front Line Force
15-
- Science and Industry
15+
- Front Line Force (WIP)
16+
- Science and Industry (WIP)
1617
- The Specialists
17-
- Wizard Wars
18+
- Wizard Wars (WIP)
1819

1920
RCBot versions
2021
--------------
@@ -29,6 +30,7 @@ V 1.51-beta7
2930
* added: C++17 Standard library support
3031
* added: Strafing combat to evade from being easy target bots
3132
* added: Linux bot slow-motion fix by w00tguy
33+
* added: Team DeathMatch mode supported for HLDM, Op4DM, DMC and TS
3234

3335
* changed: Increased the bot's flexibility
3436
* changed: Avoid using welder in NS Combat
@@ -47,7 +49,6 @@ V 1.51-beta7
4749
* TODO: To allow the Onos to be more aggressive and devour humans
4850
* TODO: To allow bots to use first aid mounted on the wall or `func_healthcharger`
4951
* TODO: To improve on how to allow bots climb ladders more properly
50-
* TODO: To prevent bots from team shooting in Team Deathmatch mode for HLDM, Op4DM, DMC and TS
5152
* TODO: To prevent bots in TS v3.0 on firing empty rounds and lying proning on floors
5253
* TODO: To allow bots in Op4 to use Grapple by using the "Fly" waypoint
5354
* TODO: To add proper support for S&I, AHL, FLF and WizWars

dlls/bot.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2586,7 +2586,7 @@ void CBot::StartGame()
25862586

25872587
break;
25882588
case MOD_GEARBOX: // Support for OP4CTF [APG]RoboCop[CL]
2589-
2589+
25902590
if (std::strncmp("op4ctf_", STRING(gpGlobals->mapname), 7) == 0 ||
25912591
std::strncmp("op4cp_", STRING(gpGlobals->mapname), 6) == 0)
25922592
{
@@ -9492,7 +9492,12 @@ BOOL CBot::IsEnemy(edict_t* pEntity)
94929492
break;*/
94939493
case MOD_GEARBOX:
94949494
{
9495-
//gBotGlobals.m_bTeamPlay = true; //Required to prevent team shooting in Op4CTF? [APG]RoboCop[CL]
9495+
const char* szClassname = const_cast<char*>(STRING(pEntity->v.classname));
9496+
9497+
if (std::strcmp(szClassname, "func_breakable") == 0)
9498+
{
9499+
return BotFunc_BreakableIsEnemy(pEntity, m_pEdict);
9500+
}
94969501

94979502
if (!EntityIsAlive(pEntity))
94989503
return false;
@@ -9503,8 +9508,6 @@ BOOL CBot::IsEnemy(edict_t* pEntity)
95039508
std::strncmp("op4cp_", STRING(gpGlobals->mapname), 6) == 0))
95049509
{
95059510
// code from Sandbot by tschumann
9506-
const char* szClassname = const_cast<char*>(STRING(pEntity->v.classname));
9507-
95089511
//char* infobuffer = GET_INFOKEYBUFFER(pEntity);
95099512
//std::strcpy(szClassname, INFOKEY_VALUE(infobuffer, "model"));
95109513

@@ -9521,7 +9524,7 @@ BOOL CBot::IsEnemy(edict_t* pEntity)
95219524
// different teams are enemies
95229525
return pEntity->v.flags & FL_CLIENT && GetTeam() != UTIL_GetTeam(pEntity);
95239526
}
9524-
else
9527+
else if (pEntity->v.flags & FL_CLIENT) // different model for team play
95259528
{
95269529
char* infobuffer1 = (*g_engfuncs.pfnGetInfoKeyBuffer)(m_pEdict);
95279530
char* infobuffer2 = (*g_engfuncs.pfnGetInfoKeyBuffer)(pEntity);

0 commit comments

Comments
 (0)