![]() |
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.. |
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.
|
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.
|
Re: coder wanted!
Code:
bot_t *UTIL_GetBotPointer(edict_t *pEdict); Code:
void BotCreate( edict_t *pPlayer, const char *arg1, const char *arg2, const char *arg3, const char *arg4) //from bot.cpp Can I remove all instances of bot_t then? EDIT: What are c_skin and c_name used for? client skin and name? |
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) |
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:
|
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. |
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 |
Re: coder wanted!
what args are u talking about?
|
Re: coder wanted!
from:
Code:
void BotCreate( edict_t *pPlayer, const char *arg1, const char *arg2, |
All times are GMT +2. The time now is 03:03. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.