Raised This Month: $ Target: $400
 0% 

Bots - Anti block (for bots glitched in walls)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 09-09-2012 , 09:01   Bots - Anti block (for bots glitched in walls)
Reply With Quote #1

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
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]

Last edited by striker07; 09-09-2012 at 09:03.
striker07 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 09-09-2012 , 09:20   Re: Bots - Anti block (for bots glitched in walls)
Reply With Quote #2

Quote:
Originally Posted by striker07 View Post
since nobody seems to know what it might
Did you report it to the PodBot team?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 09-09-2012 , 16:44   Re: Bots - Anti block (for bots glitched in walls)
Reply With Quote #3

yes no response, but thats not what this topic is about,
its about the fix
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 is offline
Infernuz
Member
Join Date: May 2011
Old 09-09-2012 , 21:20   Re: Bots - Anti block (for bots glitched in walls)
Reply With Quote #4

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.
Infernuz is offline
Send a message via ICQ to Infernuz
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 09-10-2012 , 08:17   Re: Bots - Anti block (for bots glitched in walls)
Reply With Quote #5

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?
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 is offline
Reply



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


All times are GMT -4. The time now is 20:06.


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