AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bots - Anti block (for bots glitched in walls) (https://forums.alliedmods.net/showthread.php?t=195596)

striker07 09-09-2012 09:01

Bots - Anti block (for bots glitched in walls)
 
I have the problem that my podbots glitch inside a wall when the bot is beeing hit many times,
since nobody seems to know what it might cause i descided to write this fix but it's not working:

PHP Code:

//plugin init
 
set_task(2.0"Check_BotStuck",_,_,_,"b");
 
 
public 
Check_BotStuck()
{
 static 
iNumiPlayers[32], iPlayeri;
 
get_players(iPlayersiNum"ade""TERRORIST");  
 for( 
0iNumi++ )
 {
  new 
g_TempOrigin[3];
  
get_user_origin(iPlayerg_TempOrigin );
 
  if( 
g_TempOrigin[iPlayer] == g_AlienOrigin[iPlayer] )
  {
   
g_iSameOriginCount[iPlayer]++;
   if( 
g_iSameOriginCount[iPlayer] == )
   {
    
ExecuteHamB(Ham_CS_RoundRespawniPlayer);
    
g_iSameOriginCount[iPlayer] = 0;
   }
  }
  else {
   
g_AlienOrigin[iPlayer] = g_TempOrigin[iPlayer];
   
g_iSameOriginCount[iPlayer] = 0;
  }
 }


ingame nothing happens they just stay stuck inside the wall till next round begins

bibu 09-09-2012 09:20

Re: Bots - Anti block (for bots glitched in walls)
 
Quote:

Originally Posted by striker07 (Post 1795115)
since nobody seems to know what it might

Did you report it to the PodBot team?

striker07 09-09-2012 16:44

Re: Bots - Anti block (for bots glitched in walls)
 
yes no response, but thats not what this topic is about,
its about the fix

Infernuz 09-09-2012 21:20

Re: Bots - Anti block (for bots glitched in walls)
 
It's neither your zombie bot plugin that glitch, or there'r badly written waypoints for the maps. Podbots are working just fine on default maps.

striker07 09-10-2012 08:17

Re: Bots - Anti block (for bots glitched in walls)
 
i'm pretty sure its the waypoints, what could detect if bots are not in the map anymore?
i tryed with get_user_origin but its not working, does anyone know why or how to do it properly?


All times are GMT -4. The time now is 08:10.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.