.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Hi I'm new and have some question ! (http://forums.bots-united.com/showthread.php?t=1047)

PBlover 11-03-2004 08:28

Re: Hi I'm new and have some question !
 
(3)COLORS ??? He is simply the best cs players in the online cs server , almost many people know !

Pierre-Marie Baty 11-03-2004 09:42

Re: Hi I'm new and have some question !
 
...and also the worst bot coding/vaporware llama to have ever walked this forum (Marconi pathfinder anyone? :D). (3)COLORS is/was just a clueless kid seeking attention. Revendicating any connection to this n00b is not a smart thing to do here, if you don't want to be suspected of the same thing.

PBlover 11-03-2004 09:47

Re: Hi I'm new and have some question !
 
oh no , I don't know much about him , I just know he is a cs pro only

koraX 11-03-2004 09:48

Re: Hi I'm new and have some question !
 
Quote:

Originally Posted by PBlover
(3)COLORS ??? He is simply the best cs players in the online cs server , almost many people know !

o_O

(I think i was right pmb)

Onno Kreuzinger 11-03-2004 09:57

Re: Hi I'm new and have some question !
 
Marconi, well they where kind of "switched" off, or i'm i wrong ;-)

Terran 11-03-2004 10:23

Re: Hi I'm new and have some question !
 
Quote:

Originally Posted by Pierre-Marie Baty
This is not for metamod, right ? The code you posted can't work properly as a metamod plugin. You need to use the CALL_GAME_ENTITY() macro instead of the player() class function.

Well, joebot is actually a metamod plugin. The player function is redefined in bot.cpp:

Code:

//extern "C"
 //{
 // this is the LINK_ENTITY_TO_CLASS function that creates a player (bot)
 //void player(entvars_t *pev);
 //}
 
 void player( entvars_t *pev )
 {
                static LINK_ENTITY_FUNC otherClassName = NULL;
                if (otherClassName == NULL)
                            otherClassName = (LINK_ENTITY_FUNC)GetProcAddress(h_Library, "player");
                if (otherClassName != NULL){
                                (*otherClassName)(pev);
                }
 }

Note: this isn't my code, I've got this from the CVS at sourceforge...

Pierre-Marie Baty 11-03-2004 11:39

Re: Hi I'm new and have some question !
 
@Terran: calling the player function like this is not a smart thing to do. This is bypassing the metamod interface, it can screw it up seriously (especially is joebot is loaded in the middle of other heaps of plugins).

I advise anybody who has commit access to the JoeBot CVS to get rid of this player() redefinition and use the CALL_GAME_ENTITY() metamod macro instead.


@PBLover: your IP is logged. Someday when we'll be curious enough we'll compare your IP with the one of that former (3)COLORS lamer. If it shows up they're the same, you'll be kicked/banned from here without warning. Be advised.

Pierre-Marie Baty 11-03-2004 11:51

Re: Hi I'm new and have some question !
 
actually FYI I did the search myself:
Quote:

The Second (3)COLORS:
210.187.192.121 (email sxyozh04@hotmail.com)

PBlover:
210.187.192.135 (email sang049@hotmail.com)
Same ISP, same geographic region.
*edit* and same crappy email account @ hotmail, too.
*edit* it appears he's behind a modem. He just disconnected and reconnected and his IP changed from 192.41 to 192.135. It won't fool many people...

Gentlemen, what to do ? 9_9

Terran 11-03-2004 13:45

Re: Hi I'm new and have some question !
 
Quote:

Originally Posted by Pierre-Marie Baty
@Terran: calling the player function like this is not a smart thing to do. This is bypassing the metamod interface, it can screw it up seriously (especially is joebot is loaded in the middle of other heaps of plugins).

I suppose this code is there because joebot has a compile time option whether it's a plugin or not.
Anyway I've changed this im my copy of the code (it was already there but commented out).

I've done some testing as I suspected other metamod plugins causing this odd behaviour. But even with yapb or joebot as the only loaded and running metamod plugin the playerstats don't get cleared.

Pierre-Marie Baty 11-03-2004 14:04

Re: Hi I'm new and have some question !
 
I think if the guy who did the JoeBot port for metamod missed this out then there must be plenty of things missing as well. If there's indeed a compile-time option for metamod then the correct code will look like this:

Code:

#ifdef METAMOD
CALL_GAME_ENTITY (PLID, "player", &pBotEdict->v);
#else
player (&pBotEdict->v);
#endif

I'm sure there are other problems like this one.


All times are GMT +2. The time now is 17:50.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.