Skip to content

Commit de52a03

Browse files
committed
Some changes from @ruler501's manual team control
1 parent b8a200a commit de52a03

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

source/src/bot/ac_bot_ai.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ bool CACBot::ChoosePreferredWeapon()
6868
if(WeaponInfoTable[m_pMyEnt->primary].eWeaponType == TYPE_SNIPER) sWeaponScore += 10; // At a close range, knife & pistol are strong with a sniper like primary weapon
6969
if(WeaponInfoTable[m_pMyEnt->primary].eWeaponType == TYPE_SHOTGUN) sWeaponScore -= 2; // Penalize a bit knife and pistol on close range with shotgun
7070
}
71+
72+
if(flDist < 50 && WeaponInfoTable[i].eWeaponType == TYPE_SNIPER) sWeaponScore -= 5;
7173
}
7274
else if (((flDist < WeaponInfoTable[i].flMinFireDistance) ||
7375
(flDist > WeaponInfoTable[i].flMaxFireDistance)) && i != GUN_GRENADE && i != GUN_RPG)

source/src/server.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,7 @@ void serverdied(client &target, client &actor_, int damage, int gun, int style,
18861886
ts.lastspawn = -1;
18871887
// don't issue respawn yet until DEATHMILLIS has elapsed
18881888
// ts.respawn();
1889-
1889+
18901890
// log message
18911891
const int logtype = actor->type == ST_AI && target.type == ST_AI ? ACLOG_VERBOSE : ACLOG_INFO;
18921892
if (suic)
@@ -4192,7 +4192,7 @@ void process(ENetPacket *packet, int sender, int chan)
41924192
{
41934193
unsigned char hash[20];
41944194
loopi(20) hash[i] = p.get();
4195-
logline(ACLOG_INFO, "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
4195+
logline(ACLOG_INFO, "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
41964196
hash[0], hash[1], hash[2], hash[3],
41974197
hash[4], hash[5], hash[6], hash[7],
41984198
hash[8], hash[9], hash[10], hash[11],

0 commit comments

Comments
 (0)