.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > POD-Bot mm > Common Questions
Common Questions Are you seeking help ? Get it here !

Reply
 
Thread Tools
trying to get a single bot to join a specific team
Old
  (#1)
fosco
Member
 
Status: Offline
Posts: 5
Join Date: Jul 2008
Default trying to get a single bot to join a specific team - 29-07-2008

ok heres my question...

im trying to get a bot named "osama bin laden" to always join the terrorist team, which ive done by using..

pb add 100 2 1 5 "osama bin laden"

which works just fine. my problem is that i have a custom player model that i want to use for this bot. the player model is of osama bin laden [go figure]. but since i HAVE to put a value for the model in the podbot.cfg, the bot chooses one of the default 4 player models. i want him to use the custom model that ive downloaded.

i know an option is to change one of the default player models to osama, but i dont want to do that. i dont want other people to be able to play as him, i just want one bot in the game using that model, and i need him to always join the terrorist team.

it seems that podbot is overriding the player model plugin i have running, so instead of the player model plugin changing him to the osama model, podbot makes him choose a default model.

hopefully i am making sense of what im trying to do here. is this possible?

i would really appreciate it if anyone could help me out with this. thanks
  
Reply With Quote
Re: trying to get a single bot to join a specific team
Old
  (#2)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: trying to get a single bot to join a specific team - 29-07-2008

It's not podbot mm making default model. Go to AMX X forum and try to take a look at Zombie Plague or Zombie Biohazard mods (their sma code). They are changing model of players and that works very well. I think after 1 week we (ChickenMod Team) will release the new ChickenMod Orange Edition and You will be also able to see how to correctly modelling the player (new modeling of old ChickenMod)..
  
Reply With Quote
Re: trying to get a single bot to join a specific team
Old
  (#3)
fosco
Member
 
Status: Offline
Posts: 5
Join Date: Jul 2008
Default Re: trying to get a single bot to join a specific team - 29-07-2008

thanks for the fast reply.

if i use the player model plugin to change the bot named "osama bin laden" to the osama player model. everything is fine. only that model is changed. the problem is that he joins teams randomly, sometimes he joins the ct team.

thats where podbot comes in. podbot tells that specific bot named "osama bin laden" to join the terrorist team only, which works fine. the problem is that in order to get 1 specific bot to join a specific team i have to use "[pb add 100 2 1 5 "osama bin laden"] in the podbot.cfg file. according the files i MUST put a value of 1-5 for the team variable if im going to use a specific bots name.

when i put 1-5 in the team variable, that overrides the playermodel plugin and uses one of the original 4 models instead of the custom one. so it is podbot that is changing it.

i was just wondering if there is any other way this can be done, maybe with another code that im not aware of. or is this something that just cant be done right now?



im currently using a player model plugin and it works quite well. id rather not switch to a zombie mod plugin since i wouldnt use most of the features. there is a way i can do what i want, but that would involve changing the default terrorist #4 model to osama, then disabling that model so other players cant choose him. the only problem with that is there will only be 3 models to choose from, instead of 4. also if i decide to add another custom modeled bot that players cannot use, i would have to disable yet another original model.

if its not currently possible to do what i want then ill just do without it. it just seems soo close that it must be possible some way with the plugins i currently have. if it were possible to put [pb add 100 2 1 "osama bin laden"] instead of [pb add 100 2 1 5 "osama bin laden"] that seems like it would work, but since all variables must be used, when a name is entered, it wont work. i do aprreciate the fast response and any help you can give.

Last edited by fosco; 29-07-2008 at 17:35..
  
Reply With Quote
Re: trying to get a single bot to join a specific team
Old
  (#4)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: trying to get a single bot to join a specific team - 29-07-2008

Sure that all the values will be used, CS will not let the bot to spawn if he haven't chosen a class from the four models. The situation that you have is very simple, wait the bot to spawn for first time with the original Terrorist model, then find his Entity(for example by looking by name) and then set your custom model for the bot using the entvars structure.
  
Reply With Quote
Re: trying to get a single bot to join a specific team
Old
  (#5)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: trying to get a single bot to join a specific team - 29-07-2008

pb add [skill [personality [team [model [name]]]]]

You don't need to use "5' as a parameter for the class. You can puth the exact class number You need. For example if Your class (model) 1 for Terrorists it's Osama, You just need to use:
pb add 100 2 1 1 "osama bin laden"

I told You to see how modelling is done in those plugins to let You understand the method of modelling players (You don't need to use all the features the plugin has). Players model plugin You could find at AMX X may crash the server if You want to change at once more than 20 bots (for example at respawn). Those 2 mentioned plugins are free of that problem.
  
Reply With Quote
Re: trying to get a single bot to join a specific team
Old
  (#6)
fosco
Member
 
Status: Offline
Posts: 5
Join Date: Jul 2008
Default Re: trying to get a single bot to join a specific team - 29-07-2008

Quote:
Originally Posted by The Storm View Post
Sure that all the values will be used, CS will not let the bot to spawn if he haven't chosen a class from the four models. The situation that you have is very simple, wait the bot to spawn for first time with the original Terrorist model, then find his Entity(for example by looking by name) and then set your custom model for the bot using the entvars structure.
could you please explain this method a little more? im pretty new to this. i looked around with google and couldnt find the commands i need to enter into the console to do this. thanks
  
Reply With Quote
Re: trying to get a single bot to join a specific team
Old
  (#7)
fosco
Member
 
Status: Offline
Posts: 5
Join Date: Jul 2008
Default Re: trying to get a single bot to join a specific team - 29-07-2008

Quote:
Originally Posted by KWo View Post
pb add [skill [personality [team [model [name]]]]]

You don't need to use "5' as a parameter for the class. You can puth the exact class number You need. For example if Your class (model) 1 for Terrorists it's Osama, You just need to use:
pb add 100 2 1 1 "osama bin laden"
yes, but i was just using 5 as an example. if i use 1 for example. i would have to change the terrorist "1" to osama, and disable #1 so no players could choose it, because i dont want anyone to be able to use that model except one bot.

i was hoping to avoid doing that because then players would only have 3 models to choose from instead of 4. and if i decided to add another custom model to a bot that players couldnt choose, then they would only have 2 choices of player models.

"the storm's" method seems like it would be what i would want to use, as long as the change is permanent. i need the changes to stay for the next map change, since i wont be able to enter the commands into the console at every map change.

could anyone post a more detailed description of the commands i would need to use to change the entity's player model?

again i really appreciate you guys helping me out.
  
Reply With Quote
Re: trying to get a single bot to join a specific team
Old
  (#8)
fosco
Member
 
Status: Offline
Posts: 5
Join Date: Jul 2008
Default Re: trying to get a single bot to join a specific team - 29-07-2008

i did some more searching and found this page...

http://www.cstrike.ro/console_commands.php?console=1

and found out how to change MY player model by typing "model osama.mdl", but after reading all the commands on 20 pages i couldnt figure out how to change the entity's model. so basically all i need is to enter a command into the console to change that one bot's model to osama.mdl correct? can anyone please post the correct command for me. thanks
  
Reply With Quote
Re: trying to get a single bot to join a specific team
Old
  (#9)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: trying to get a single bot to join a specific team - 29-07-2008

I didn't talk about console commands, I was talking for programming a plugin that will do that job, I was talking about C++ metamod plugin but you can make it as AMXX plugin, it will be event easy if you choose AMXX, read some tutorial, it's not hard if you have some programming skills.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com