.:: 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 ::. > YappA > Half-Life and HL1 Mods
Half-Life and HL1 Mods Discuss about your favourites HL1 Mods here Half-Life

Reply
 
Thread Tools
Let's kill the bots
Old
  (#1)
The_Hard_Mission_Guy
This user broke our rules and has been BANNED
 
The_Hard_Mission_Guy's Avatar
 
Status: Offline
Posts: 181
Join Date: May 2006
Default Let's kill the bots - 04-08-2006

Yo Yo!
I was wondering what function/s should be called to make the bot drop dead?!

P.S just killing them without kickin' them out of the server.
  
Reply With Quote
Re: Let's kill the bots
Old
  (#2)
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: Let's kill the bots - 04-08-2006

pfnClientKill();
  
Reply With Quote
Re: Let's kill the bots
Old
  (#3)
The_Hard_Mission_Guy
This user broke our rules and has been BANNED
 
The_Hard_Mission_Guy's Avatar
 
Status: Offline
Posts: 181
Join Date: May 2006
Default Re: Let's kill the bots - 05-08-2006

Negative!
Neither ClientKill() nor ClientDisconnect seem to work!
any other ideas?

P.S Do you think calling pfnPlayermove after ClientKill might solve the problem?
  
Reply With Quote
Re: Let's kill the bots
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: Let's kill the bots - 05-08-2006

If you know how to use ClientKill() there will be no problem. You must point the correct edict. Show me the code with that you try to kill the bots.
  
Reply With Quote
Re: Let's kill the bots
Old
  (#5)
The_Hard_Mission_Guy
This user broke our rules and has been BANNED
 
The_Hard_Mission_Guy's Avatar
 
Status: Offline
Posts: 181
Join Date: May 2006
Default Re: Let's kill the bots - 05-08-2006

I'm afraid that I can't show you the code , but I'm sure that the code points to the right edict_t ..

btw when using ClientDisconnect() the server prints on the console that the bot has left the game , nevertheless the bot stays in the server ......also worth noting that other functions like ClientPutinServer work perfectly !

Damn , why won't this bot DIE
  
Reply With Quote
Re: Let's kill the bots
Old
  (#6)
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: Let's kill the bots - 05-08-2006

To kick bot from server you must use "kick" server command. And why you can't show me the code - is it top secret ? If you can't do it I can't help you.
  
Reply With Quote
Re: Let's kill the bots
Old
  (#7)
The_Hard_Mission_Guy
This user broke our rules and has been BANNED
 
The_Hard_Mission_Guy's Avatar
 
Status: Offline
Posts: 181
Join Date: May 2006
Default Re: Let's kill the bots - 05-08-2006

The "kick" command doesn't work also!.....as far as I tried from the console..
I think that it's my right to decide whether to show the code or not.....(it's not Top Secret....but half Top Secret , LOL)

anyways I'm just trying to ask why this is happening , since "YOU guys" are "expierenced" bot coders ..

OnTopic - When should ClientKill() be called ? in StartFrame() ?
What do I else need - other than the edict_t pointer- to call the funtion successfully?
Should other fucntions be called after it? or before it?
Any other possible reasons that would cause ClientKill() or ClientDisconnect() to fail?
  
Reply With Quote
Re: Let's kill the bots
Old
  (#8)
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: Let's kill the bots - 05-08-2006

SERVER_COMMAND("kick %s", STRING(pev->netname)) - this will fully kick the bot.
You need to call ClientKill() only at the time that you want to kill the bot, when and where you will call it you must deside. So far all is right but if I can't see the loop code that you make to get the needed edicts so I can't really tell you where you wrong. Nobody will stole you code if you put it here so don't worry, I don't understand what secret can be a loop for player edicts huh ???
  
Reply With Quote
Re: Let's kill the bots
Old
  (#9)
The_Hard_Mission_Guy
This user broke our rules and has been BANNED
 
The_Hard_Mission_Guy's Avatar
 
Status: Offline
Posts: 181
Join Date: May 2006
Default Re: Let's kill the bots - 05-08-2006

I didn't post any codes because I personally don't believe that the problem lies in the edict_t loop , but if you insist I easily can !
just Hold ON....be right back!
  
Reply With Quote
Re: Let's kill the bots
Old
  (#10)
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: Let's kill the bots - 05-08-2006

The problem is on place that maybe less expect. So little check on the code after you post it wont be a problem.
  
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 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com