Page 1 of 1
Zandronum bots
Posted: Mon Oct 22, 2012 10:04 pm
by Krispy
Do bots behave like real players in terms of scripts and tags? In single-player mode, if a script makes them do one thing, will it make real players on a server do the same stuff? Or do they inherit the traits of the player during single player sessions?
In other words, is it wise to playtest with them as if it's in a testing server with real players?
RE: Zandronum bots
Posted: Mon Oct 22, 2012 10:25 pm
by Qent
As far as scripts and stuff go, yes, they are affected just the same as real players.
RE: Zandronum bots
Posted: Tue Oct 23, 2012 12:33 am
by Krispy
But not with stuff like playernumber?
RE: Zandronum bots
Posted: Tue Oct 23, 2012 12:35 am
by Ænima
Playernumber should still apply the same way too.
RE: Zandronum bots
Posted: Tue Oct 23, 2012 12:44 am
by Krispy
Thank you.
One more question not worth making a new thread about, is it possible to check a player's TID through acs?
RE: Zandronum bots
Posted: Tue Oct 23, 2012 2:17 am
by Ænima
RE: Zandronum bots
Posted: Tue Oct 23, 2012 1:35 pm
by Watermelon
Krispy wrote:
Thank you.
One more question not worth making a new thread about, is it possible to check a player's TID through acs?
Make sure when using Ænima's post that you've actually set them to have a TID if you haven't already. Here's the way I do it:
Code: Select all
script 123 ENTER
{
Thing_ChangeTID(0, 1000 + PlayerNumber());
}
Therefore the first player in the server (player 1) will have a tid of 1000, then player 2 will have a tid of 1001... etc [starts at zero for player 1]
RE: Zandronum bots
Posted: Wed Oct 24, 2012 12:20 am
by Krispy
Watermelon wrote:
[starts at zero for player 1]
This was interesting.
RE: Zandronum bots
Posted: Wed Oct 24, 2012 12:26 am
by Ænima
Yes. This is how all indexes work. For example, in the array myarray[48,32,11], asking for entry 0 will return "48" because indexes start at 0. Remember this for later, it will save you much frustration. ;p
RE: Zandronum bots
Posted: Thu Oct 25, 2012 6:41 am
by TheBladeRoden
They don't seem to work with GetPlayerInput scripts though
RE: Zandronum bots
Posted: Tue Nov 27, 2012 4:03 am
by ZzZombo
Better playtest using a local server. I noticed that custom SBARINFO is drawn incorrectly when used with bots offline. It draws totally wrong stuff.