Page 14 of 16

Re: How to use bots in your title packs

Posted: 17 Jul 2013, 17:13
by Kak0
steeffeen wrote:btw: is the attack filter meant to be ignored when using forced target or will they still attack a (usually) filtered target?
The attack filter isn't ignored, which might explain the behaviour you're describing : if the forced target is a human player while the attack filter excludes human players, the bot will run towards its target, but won't attack them. Is it your case ?

Re: How to use bots in your title packs

Posted: 17 Jul 2013, 17:54
by steeffeen
Kak0 wrote:The attack filter isn't ignored, which might explain the behaviour you're describing : if the forced target is a human player while the attack filter excludes human players, the bot will run towards its target, but won't attack them. Is it your case ?
great, thanks for clearing that up :thumbsup:

i'm using

Code: Select all

CSmPlayerDriver::ESmAttackFilter::AllOpposite
btw. it's quite annoying that there isn't a global naming convention applied to all maniascript classes/types :cry:

Re: How to use bots in your title packs

Posted: 18 Jul 2013, 10:36
by Kak0
That's weird, the bot is supposed to attack opposite players as well then. Could I please have your bugging script ? My test doesn't show me any unwanted behaviour, it works fine for me.

Re: How to use bots in your title packs

Posted: 18 Jul 2013, 12:16
by steeffeen
i will send you a private message later :thumbsup:
thanks in advance

Re: How to use bots in your title packs

Posted: 24 Jul 2013, 19:42
by steeffeen
thanks for your help lately :)

another small thing:
when changing the Saunter_AnchorPoint it would be great if there would be a new target position calculated, currently the bots keep running to the last target position ^.^

//Edit: my bots for example keep running to an old target position which they can't reach even though i've already set a completely different anchor point

Re: How to use bots in your title packs

Posted: 26 Jul 2013, 14:38
by steeffeen
bots are afraid of running below metal bridges :D
http://www.pictures.esc-clan.net/upload ... Shot11.jpg

Re: How to use bots in your title packs

Posted: 26 Jul 2013, 16:50
by TitiShu
Superstition...

I was afraid too the first time i've seen this block

Re: How to use bots in your title packs

Posted: 28 Jul 2013, 10:40
by Valerik
hi all, i have a question =)
when a bot dies, there is a way to take it's last position?

Re: How to use bots in your title packs

Posted: 28 Jul 2013, 22:06
by Fadden
I have tested bots a lot this week-end, and it's so nice I had not any CTD. So gg and thx^^ :thumbsup:
The only bug I noticed (but I do more simple things than what steefeen does^^) is this :
- If a bot stops shooting and rushing the player because he is too far, he returns to his path. And sometimes (around once on 10 times), he starts to turn around and doesn't attack if the player is near...

Oh and there is some problems with bots in the replay editor, but this is another subject.


EDIT :
@Valerik :
Yes you can do this, on the events loop :

Code: Select all

case CSmModeEvent::EType::OnArmorEmpty: 
{
    if(Event.Victim.IsBot)
    {
          declare Bot <=> Event.Victim;
          log(Bot.Position); //You can access to the position (Bot.Position.X, Bot.Position.Y, Bot.Position.Z)
          DestroyBotPlayer(Bot);
    }
}

Re: How to use bots in your title packs

Posted: 29 Jul 2013, 10:20
by Valerik
Thanks a lot =)