.:: Bots United ::.  
filebase forums irc server wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps waypoints yapb

Go Back   .:: Bots United ::. > Cyborg Factory > POD-Bot mm > Common Questions
Common Questions Are you seeking help ? Get it here !

Reply
 
Thread Tools
Re: Turn off Bots shooting back after Teamattack
Old
  (#21)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 167
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: Turn off Bots shooting back after Teamattack - 24-05-2018

Also you can try YaPB which are compatible with PODBot waypoints. I've been using the beta builds for CS 1.6 and CZero but don't appear stable on my Linux server. I'm currently using YAPB v2.73.4549.0

https://yapb.jeefo.net/files/





vBulletin Webmaster since 2001
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#22)
Mordekay
Member
 
Status: Offline
Posts: 18
Join Date: Sep 2006
Default Re: Turn off Bots shooting back after Teamattack - 25-05-2018

As i'm also on linux they are not an option.
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#23)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,424
Join Date: Apr 2004
Default Re: Turn off Bots shooting back after Teamattack - 27-05-2018

Quote:
Originally Posted by The Storm View Post
They are available in the filebase along with the latest build:
http://filebase.bots-united.com/inde...category&id=44

The latest sources of podbot mm I was working on are here:
http://filebase.bots-united.com/inde...ct=view&id=380
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#24)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 167
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: Turn off Bots shooting back after Teamattack - 27-05-2018

I'll see if I can recompile that latest src code on my side. However I suggest we remove the AMD64 support and use GCC 4.8.





vBulletin Webmaster since 2001
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#25)
Mordekay
Member
 
Status: Offline
Posts: 18
Join Date: Sep 2006
Default Re: Turn off Bots shooting back after Teamattack - 28-05-2018

I'd be happy if you would share your compiled version with me.
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#26)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 167
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: Turn off Bots shooting back after Teamattack - 28-05-2018

I've recompiled POD-Bot build as V3B23-APG but didn't alter the headers nor cpp files except for "PBMM_VERSION_STRING" from bot.h. I did some adjustments to the Makefile as well removed AMD64 support as well removed the _i386 suffix and named it as "podbot_mm.so" to make the name short and simple.

I used Hullu's MetaMod-P37 src header files and HLSDK 2.3p4 and they seem to recompile well together. As for the the optimisation and base flags I've added SSE2 support and for i686 Arch with G++ 4.8 and had to add "-m32" to ensure it compiles as a 32-bit binary only.

Here is PB V3B23-APG Linux build!

Also I tried to attach it as a Tarball Gzip file, but it appears vBulletin Attachment needs to allow file extension for the tar.gz or even tar.xz to be uploaded so I had to compress it as a regular .zip file.

--------

Update: it appears this Linux build needs some fixes as my GDB spotted a crash error:-

PHP Code:
Thread 1 "hlds_linux" received signal SIGSEGVSegmentation fault.
0xf2ba81fc in WaypointFindNearestToMove(edict_s*, Vector) () from /home/desktop/steamcmd/hlds/cstrike/addons/podbot/podbot_mm.so
(gdbbt
#0  0xf2ba81fc in WaypointFindNearestToMove(edict_s*, Vector) ()
   
from /home/desktop/steamcmd/hlds/cstrike/addons/podbot/podbot_mm.so
#1  0xf2b8b8d7 in BotClient_CS_BombDrop(void*, int) () from /home/desktop/steamcmd/hlds/cstrike/addons/podbot/podbot_mm.so
#2  0xf2ba0ff0 in pfnWriteCoord(float) () from /home/desktop/steamcmd/hlds/cstrike/addons/podbot/podbot_mm.so
#3  0xf3a1d7aa in api_caller_void_args_f(void const*, void const*) ()
   
from /home/desktop/steamcmd/hlds/./cstrike/addons/metamod/metamod.so
#4  0xf3a1c78f in main_hook_function_void(unsigned int, enum_api_t, unsigned int, void const*) ()
   
from /home/desktop/steamcmd/hlds/./cstrike/addons/metamod/metamod.so
#5  0xf3a22163 in mm_WriteCoord(float) () from /home/desktop/steamcmd/hlds/./cstrike/addons/metamod/metamod.so
#6  0xf3846687 in CBasePlayer::DropPlayerItem (this=0x80cbf40, pszItemName=<optimized out>) at ../cstrike/dlls/player.cpp:9042
#7  0xf38472c1 in CBasePlayer::Killed (this=0x80cbf40, pevAttacker=0xf4332acc, iGib=1) at ../cstrike/dlls/player.cpp:2566
#8  0xf364b8c2 in ?? () from /home/desktop/steamcmd/hlds/cstrike/addons/AGuard/dlls/AGuard_mm_i386.so
Backtrace stoppedprevious frame inner to this frame (corrupt stack?) 
Attached Files
File Type: zip podbot_mm.zip (223.3 KB, 12 views)





vBulletin Webmaster since 2001

Last edited by RoboCop; 28-05-2018 at 16:18..
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#27)
Mordekay
Member
 
Status: Offline
Posts: 18
Join Date: Sep 2006
Default Re: Turn off Bots shooting back after Teamattack - 04-06-2018

What about if you simply compile the source-code untouched exept removed the part of the revenge shootings of the bots?
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#28)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,424
Join Date: Apr 2004
Default Re: Turn off Bots shooting back after Teamattack - 06-06-2018

About team revenge - find in the file botcombat.cpp the function called FireHurtsFriend and find there following lines:
PHP Code:
   if (!FNullEnt (tr.pHit))
   {
      
ENTINDEX (tr.pHit) - 1;
      if ((
>= 0) && (gpGlobals->maxClients))  // KWo - 13.03.2006
      
{
         if ((
clients[i].iTeam == pBot->bot_team) && (pEdict->v.dmg_inflictor != clients[i].pEdict)
            && ((
clients[i].iFlags CLIENT_ALIVE) || (clients[i].fDeathTime >= gpGlobals->time)))  // KWo - 18.01.2011
         
{
            if (
g_b_DebugCombat)
               
ALERT (at_logged,"[DEBUG] FireHurtsFriend - Bot %s cannot fire because it may hurt its friend %s (1).\n"pBot->nameSTRING (clients[i].pEdict->v.netname));

            return (
TRUE);
         }
      }
   } 
and change the part:
PHP Code:
(pEdict->v.dmg_inflictor != clients[i].pEdict
this way:
PHP Code:
((pEdict->v.dmg_inflictor != clients[i].pEdict) || 
  (
pEdict->v.dmgtime 1.5 <= gpGlobals->time)) 
That should at least reduce the time for team revenges to maximum 1.5 sec from the time the bot got hurt by its friend. If that will not be enough satisfying - reduce the time to 1s. I would not reccommend to remove at all the team revenge function. Adding the cvar to on/off the team revenge function is more complicated and I don't have time to elaborate it.</div>

About that segmentation fault - compile the *.so file with debug flag enabled (in my makefile there was a way how to make the debuged version). Then it should write more details in gdb to let You narrow down the problem with the crash.
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#29)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 167
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: Turn off Bots shooting back after Teamattack - 06-06-2018

It will take a while for me to change that .cpp line as I've just got my new PC delivered and need to use apt-get install for GCC and more on my new Linux machine. I'll try to switch to Debug compile mode and use -g or maybe -ggdb flags.





vBulletin Webmaster since 2001
  
Reply With Quote
Re: Turn off Bots shooting back after Teamattack
Old
  (#30)
Mordekay
Member
 
Status: Offline
Posts: 18
Join Date: Sep 2006
Default Re: Turn off Bots shooting back after Teamattack - 07-06-2018

If someone could gave me a link to a tutorial on how to compile this or, if it is not to much work the needed commands i would do this on my own
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com