.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   YaPB (http://forums.bots-united.com/forumdisplay.php?f=55)
-   -   YaPB2 Updates (http://forums.bots-united.com/showthread.php?t=9960)

ViBE@ 15-01-2016 22:09

Re: YaPB2 Updates
 
today the bots just left again on a map. so here we are again :( and now i see in the client console that the server automatically change the yb_quota when human players leave/come but nothing happen.

trololoshka 15-01-2016 22:32

Re: YaPB2 Updates
 
AMXX Simple Plugin

1. Bots do not leave or join during a round
Боты не будут выходить/заходить по среди раунда.
2. Spectators do not affect the number of players.
Наблюдатели не влияют на кол-во играющих.

Code:

#include <amxmodx>

#define BOTS 10

public plugin_init() {
        register_plugin("Bot Control", "1.0", "victory.km.ua")
        register_event("SendAudio","round_end","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw") // Round End
}

public round_end()
{
        new Players[32], CT_sum, TR_sum
        get_players(Players,CT_sum,"ce", "CT")
        get_players(Players,TR_sum,"ce", "TERRORIST")
        server_cmd("yb_quota %d", BOTS - (CT_sum + TR_sum) )
}


jeefo 16-01-2016 13:40

Re: YaPB2 Updates
 
Quote:

Originally Posted by trololoshka (Post 66457)
AMXX Simple Plugin

1. Bots do not leave or join during a round
Боты не будут выходить/заходить по среди раунда.
2. Spectators do not affect the number of players.
Наблюдатели не влияют на кол-во играющих.

Code:

#include <amxmodx>

#define BOTS 10

public plugin_init() {
        register_plugin("Bot Control", "1.0", "victory.km.ua")
        register_event("SendAudio","round_end","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw") // Round End
}

public round_end()
{
        new Players[32], CT_sum, TR_sum
        get_players(Players,CT_sum,"ce", "CT")
        get_players(Players,TR_sum,"ce", "TERRORIST")
        server_cmd("yb_quota %d", BOTS - (CT_sum + TR_sum) )
}


Some stuff for 35hp should be fixed with latest build.

As well some changes to autovacate.

https://yapb.jeefo.net/drop/releases..._latest.tar.xz

jeefo 16-01-2016 13:44

Re: YaPB2 Updates
 
Quote:

Originally Posted by jeefo (Post 66458)
Some stuff for 35hp should be fixed with latest build.

As well some changes to autovacate.

https://yapb.jeefo.net/drop/releases..._latest.tar.xz

If someone could describe "ideal" autovacate. I will implement it directly in the bot code.

ViBE@ 16-01-2016 16:18

Re: YaPB2 Updates
 
Quote:

Originally Posted by jeefo (Post 66459)
If someone could describe "ideal" autovacate. I will implement it directly in the bot code.

what i can say it would be good if bot leave only when the human player join to a team. and i guess it's much effective cause use less resources (if i'm thinking in the right way). for example on my server tons of player just hop in to spec what happens and then just leave. this habit force the YaPB to create and drop bots frequently. and it's very annoying sometimes when the opponent team is full of bots and they should leave cause arriving human players. and on a simple DM server there is no rounds so the server will not balance the teams and need to wait for spectators to decide what they want. it's really kills the gameplay. that's why recommend this as the default behaviour.

trololoshka 16-01-2016 16:37

Re: YaPB2 Updates
 
Jeefo, http://victory.km.ua:8080/Downloads/...-12-01-930.mp4
И пожалуйста, сделайте мне под винду дллку ботов.


Quote:

Originally Posted by ViBE@ (Post 66460)
what i can say it would be good if bot leave only when the human player join to a team. and i guess it's much effective cause use less resources (if i'm thinking in the right way). for example on my server tons of player just hop in to spec what happens and then just leave. this habit force the YaPB to create and drop bots frequently. and it's very annoying sometimes when the opponent team is full of bots and they should leave cause arriving human players. and on a simple DM server there is no rounds so the server will not balance the teams and need to wait for spectators to decide what they want. it's really kills the gameplay. that's why recommend this as the default behaviour.

For DM server need that kick only dead bots .

Every n sec check ... if need kick bot - write to buffer id bots
when marked bot are dead = kick!

I'l write amxx plugin for this.

ViBE@ 16-01-2016 16:45

Re: YaPB2 Updates
 
Quote:

Originally Posted by trololoshka (Post 66461)
Jeefo, http://victory.km.ua:8080/Downloads/...-12-01-930.mp4
И пожалуйста, сделайте мне под винду дллку ботов.




For DM server need that kick only dead bots .

Every n sec check ... if need kick bot - write to buffer id bots
when marked bot are dead = kick!

I'l write amxx plugin for this.

sorry but i don't understand you. and using another bot related plugin just for kicking them is not too effective :/

ViBE@ 16-01-2016 17:32

Re: YaPB2 Updates
 
somehow the players stats is always zero and i guess it's also related with YaPB cause that's the only thing what i changed on my server in the last 3-4 weeks :/

https://i.imgur.com/Au6BEzs.png

lol, after a few days now everyone have ping an score again after a restart. some codes are really broken or outdated?

jeefo 16-01-2016 20:10

Re: YaPB2 Updates
 
Quote:

Originally Posted by ViBE@ (Post 66463)
somehow the players stats is always zero and i guess it's also related with YaPB cause that's the only thing what i changed on my server in the last 3-4 weeks :/

https://i.imgur.com/Au6BEzs.png

lol, after a few days now everyone have ping an score again after a restart. some codes are really broken or outdated?

Latest build:
Code:

autovacate kicks now dead or lowest frag bot if possible.
reworked autovacate to kick bot, only if connected player joined the team (controlled via yb_autovacate_smart_kick).
possibly fixed latency bug after server running for some time.

https://yapb.jeefo.net/drop/releases/

Please, for any problems attach "yb version" output!

RoboCop 16-01-2016 20:42

Re: YaPB2 Updates
 
I've just downloaded and tested this latest Linux build and it appears the autovacate works fine, thanks for the fix.


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

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