Raised This Month: $12 Target: $400
 3% 

[CORE] is_user_bot() returns true on human players


  
 
 
Thread Tools Display Modes
Author Message
-hi-
Member
Join Date: Jul 2006
Old 07-08-2006 , 01:31   [CORE] is_user_bot() returns true on human players
#1

Sometimes the function

Code:
is_user_bot(id)

will return true on human players. This never happens when I'm running Cstrike. It happens intermittently when I run TFC. It only happens right after someone connects. If the map changes, everyone who was in the server will not be reported as a bot after the map changes.

I first noticed something was up when I wouldn't have admin powers sometimes. I have to type retry in the console and when I come back my admin works. I dug deeper on it and found that for some reason AMXX thinks some players are bots.

Last edited by -hi-; 07-10-2006 at 19:59.
-hi- is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 07-08-2006 , 02:16   Re: [CORE] is_user_bot returns true on human players
#2

What plugins are you running?
Freecode is offline
-hi-
Member
Join Date: Jul 2006
Old 07-08-2006 , 02:33   Re: [CORE] is_user_bot returns true on human players
#3

Code:
amxx list
Currently loaded plugins:
       name                    version  author            file             status   
 [  1] Admin Base              1.75     AMXX Dev Team     admin.amxx       running  
 [  2] Admin Commands          1.75     AMXX Dev Team     admincmd.amxx    running  
 [  3] Admin Help              1.75     AMXX Dev Team     adminhelp.amxx   running  
 [  4] Multi-Lingual System    1.75     AMXX Dev Team     multilingual.am  running  
 [  5] Menus Front-End         1.75     AMXX Dev Team     menufront.amxx   running  
 [  6] Commands Menu           1.75     AMXX Dev Team     cmdmenu.amxx     running  
 [  7] Players Menu            1.75     AMXX Dev Team     plmenu.amxx      running  
 [  8] Maps Menu               1.75     AMXX Dev Team     mapsmenu.amxx    running  
 [  9] Admin Chat              1.75     AMXX Dev Team     adminchat.amxx   running  
 [ 10] Anti Flood              1.75     AMXX Dev Team     antiflood.amxx   running  
 [ 11] Scrolling Message       1.75     AMXX Dev Team     scrollmsg.amxx   running  
 [ 12] Info. Messages          1.75     AMXX Dev Team     imessage.amxx    running  
 [ 13] Admin Votes             1.75     AMXX Dev Team     adminvote.amxx   running  
 [ 14] TimeLeft                1.75     AMXX Dev Team     timeleft.amxx    running  
 [ 15] Pause Plugins           1.75     AMXX Dev Team     pausecfg.amxx    running  
 [ 16] Join/Leave Message      4.0      garageadmin       join_leave.amxx  running  
 [ 17] CL Rater                1.0.2    garageadmin       cl_rater.amxx    running  
 [ 18] Kick/Ban/Quit           1.2      garageadmin       quitter.amxx     running  
 [ 19] AMX Exec                1.1      garageadmin       amx_exec.amxx    running  
 [ 20] Time announcer          2.0      BMJ/garageadmin   timeannounce.am  running  
 [ 21] Concussion blocker      1.1.0    EKS               block_con.amxx   running  
 [ 22] ConcSpeedFix            1.2      garageadmin       conc_speed_fix.  running  
 [ 23] Conc Stuff              2.5      garageadmin       conc_stuff.amxx  running  
 [ 24] DeagsMapManage          2.30b    Deags             rockthevote.amx  running  
 [ 25] plugin_teleport         1.4.1    Bahrmanou         plugin_teleport  running  
 [ 26] NoClipMe                5.0      hi                noclipme.amxx    running  
26 plugins, 26 running

Last edited by -hi-; 07-10-2006 at 19:59.
-hi- is offline
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 07-08-2006 , 23:18   Re: [CORE] is_user_bot() returns true on human players
#4

Hmm, just looked at the source code to be honest checking the FL_FAKECLIENT flag should be good enough. AMX and AMXX don't do this, they both check there internal structure based on client connect I believe, instead of runtime.

There was a bug discovered in bots that FL_FAKECLIENT flag got removed by the HL engine for some unknown reason, however some bot authors have taken action so that the bot is flagged correctly.
Orangutanz is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 07-09-2006 , 08:47   Re: [CORE] is_user_bot() returns true on human players
#5

I've noticed a similar problem on the IOS mod. Sometimes players joining right after a bot had left were flagged as bots. My quick fix was comparing the authid to "BOT" (yeah, the IOS bots all have that authid) instead of checking the fakeclient flag. I haven't tried checking the fakeclient flag in the function itself instead of saving it as AMXx does.
__________________
hello, i am pm
PM is offline
-hi-
Member
Join Date: Jul 2006
Old 07-09-2006 , 12:55   Re: [CORE] is_user_bot() returns true on human players
#6

Here are the Metamod plugins I'm running.

Code:
meta list
Currently loaded plugins:
      description      stat pend  file              vers      src   load  unlod
 [ 1] AMX Mod X        RUN   -    amxmodx_mm.dll    v1.75a    ini   ANY   ANY  
 [ 2] fakefull         RUN   -    fakefull_mm.dll   v1.3      ini   Pause Pause
 [ 3] Fun              RUN   -    fun_amxx.dll      v1.75     pl1   ANY   ANY  
 [ 4] TfcX             RUN   -    tfcx_amxx.dll     v1.75     pl1   ANY   ANY  
 [ 5] Engine           RUN   -    engine_amxx.dll   v1.75     pl1   ANY   ANY  
 [ 6] FakeMeta         RUN   -    fakemeta_amxx.dl  v1.75     pl1   ANY   ANY  
6 plugins, 6 running

Last edited by -hi-; 07-10-2006 at 14:03.
-hi- is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 07-13-2006 , 06:17   Re: [CORE] is_user_bot() returns true on human players
#7

I've been testing that flag few weeks ago with CS1.6 Steam and it sometimes also behaves strange. I wanted to know if there are some human players on the server to use the function auto kill bot after some delay if there is no alive people (but they are connected). What I saw? Sometimes in the first frame of the new round all bots were without FL_FAKECLIENT flag !!! That's probably why in CS bots the bot coders are still adding that flag to the bot if HL engine clears it for some reason. About TFC bots- if Foxbot is for TFC (I don't remember exactly) You can ask Dr.Evil at BU forum. He is visting the Coding section frequently.

About that authentication <BOT> - some bot coders remove it in code, because server admins sometimes were requesting it (to don't let the people at joining to know there are only bots playing) - so this method will fail for some bots.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.

Last edited by KWo; 07-13-2006 at 06:20.
KWo is offline
-hi-
Member
Join Date: Jul 2006
Old 07-13-2006 , 17:46   Re: [CORE] is_user_bot() returns true on human players
#8

I tried disabling FakeFull on my TFC server and it hasn't happened since. I also run another server with FoxBot and the problem still happens every now and then. It seems like this is more a problem with the bots than AMXX.
-hi- is offline
BAILOPAN
Join Date: Jan 2004
Old 07-13-2006 , 18:03   Re: [CORE] is_user_bot() returns true on human players
#9

this problem typically comes with bots not doing things correctly combined with hl1 engine bugs...

I can look into fixing it in amxx, right now its bot checks are fairly lazy
__________________
egg
BAILOPAN is offline
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 07-13-2006 , 19:21   Re: [CORE] is_user_bot() returns true on human players
#10

Quote:
Originally Posted by KWo
About that authentication <BOT> - some bot coders remove it in code, because server admins sometimes were requesting it (to don't let the people at joining to know there are only bots playing) - so this method will fail for some bots.
^ they should be shot IMHO.

I've already fooled people with AMXX Bot, yet it clearly states its a bot. More than likey some stuff I worked out with sending a radio message and using the mic
Orangutanz is offline
 



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 09:48.


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