.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Programming (http://forums.bots-united.com/forumdisplay.php?f=25)
-   -   coder wanted! (http://forums.bots-united.com/showthread.php?t=1445)

sPlOrYgOn 23-04-2004 15:08

Re: coder wanted!
 
yea but he's not doing it to bots...
the only way i can think of for him is just change the model of the client...
but he wants it to change to a certain model each map..

Pierre-Marie Baty 23-04-2004 16:59

Re: coder wanted!
 
I believe it's pretty much the same thing for real clients than for bots... just fill the client's infobuffer at the right time (possibly in ClientPutInServer, or after the skin selection menu has been answered) instead of doing it for a bot, just use the client's edict_t pointer.

dead bwoy 23-04-2004 21:56

Re: coder wanted!
 
Well, I'm using this for czero single player and the player won't ever see themselves or other players (human), so it's mostly for the selection of your team-mates and for the enemys (bots). So I guess it'll just be player models for the bots.

dead bwoy 24-04-2004 05:06

Re: coder wanted!
 
Code:

bot_t *UTIL_GetBotPointer(edict_t *pEdict);
} bot_t; //at the end of "typedef struct" from bot.h
bot_t bots[32]; // max of 32 bots in a game
bot_t *pBot; //from VVV

Code:

void BotCreate( edict_t *pPlayer, const char *arg1, const char *arg2, const char *arg3, const char *arg4) //from bot.cpp
Is bot_t the bot pointer? Or is it (edict_t *pEdict);?
Can I remove all instances of bot_t then?
EDIT:
What are c_skin and c_name used for?
client skin and name?

sPlOrYgOn 24-04-2004 05:23

Re: coder wanted!
 
right now i think you're trying to edit zbot correct? since you are playing on czero..
zbot doesn't have the same source as most other third party bots..
if not then...
bot_t is not a pointer it is the actual structure.
pBot is the pointer to an instance of bot_t which is called bots
pEdict is the entity structure in HL.. (or at least thats what i think)

dead bwoy 24-04-2004 05:32

Re: coder wanted!
 
I'm trying to clean up your code getting rid of the necessary bot files and using only the code used for my features, and I'm changing all the valve skin stuff to czero skin stuff ie:VALVE_MAX_SKINS ===> CZERO_MAX_SKINS
I saw how you added the czero support and it worked well.
There's an update coming out next week that could spoil my project, depending on how much you can tweak the Custom Campaign Kit being released with CZ v1.1 update.

Quote:

right now i think you're trying to edit zbot correct? since you are playing on czero..
zbot is the illegal stand-alone bot for czero/cstrike. I have paid for csbot "The Official Counter-Strike Bot" that comes with CS:CZ. csbot is built in to the mp.dll that you get with czero, so you can't substitute bot dlls.

sPlOrYgOn 24-04-2004 05:42

Re: coder wanted!
 
i thought zbot was just it's nick name o_O
well okay then the Official Cs/Cz bot
and there is no bot_t structure compiled into the plugin i made for you...
i told you there are lots of useless files in that zip..
and so far i now all the files that have the word bot in their name are not compiled or included at all.

dead bwoy 24-04-2004 06:05

Re: coder wanted!
 
true, but im trying to figure out this model thing. Basing it on the hpb template bot.cpp
here, I want to force a skin on a certain custom map, changing skins on mapchange. Can this skin be listed in the map's cfg file? Or do I have to define all the skins to be used in the code and force them to load on the defined maps?

My brain hurtz, I'm going out, only to return...

PS (I forgot):
Code:

// pick a random skin
                if (mod_id == CZERO_DLL)
                {
                        index = RANDOM_LONG(0, CZERO_MAX_SKINS-1);
                        pSkinUsed = &czero_skin_used[0];
                }

arg1 is skin, arg2 is name (skin/player?), what are arg3 and arg4 used for, are they both for skill?

sPlOrYgOn 24-04-2004 07:00

Re: coder wanted!
 
what args are u talking about?

dead bwoy 24-04-2004 07:08

Re: coder wanted!
 
from:
Code:

void BotCreate( edict_t *pPlayer, const char *arg1, const char *arg2,
                                const char *arg3, const char *arg4)
{

bot.cpp


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

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