Player bot on maps
- EvilGrins
- Godlike
- Posts: 9751
- Joined: Thu Jun 30, 2011 8:12 pm
- Personal rank: God of Fudge
- Location: Palo Alto, CA
- Contact:
Player bot on maps
On MH-B99_MinasTirith I found that in addition to the monsters there was also a player bot on the map. With help of someone else there's now a skin on that bot, so you're not fighting a blobby green looking person, so the map has 3-way combat. You, the player bot, and the monsters.
Nobody likes each other, everybody's trying to kill each other.
I recently edited a map with only nali-cows as the monster. For the Hell of it, why not? I figured I'd add a player bot. Kind of a cattle rustler stopping the poaching of the herd (even though a player bot would kill the cows too) and I slapped a Judge Dredd skin on the player bot.
Thing is when I played the map the player bot wasn't visible.
First try doing this, not sure where I went wrong.
Thoughts? Suggestions? Cheap jokes at my expense?
Nobody likes each other, everybody's trying to kill each other.
I recently edited a map with only nali-cows as the monster. For the Hell of it, why not? I figured I'd add a player bot. Kind of a cattle rustler stopping the poaching of the herd (even though a player bot would kill the cows too) and I slapped a Judge Dredd skin on the player bot.
Thing is when I played the map the player bot wasn't visible.
First try doing this, not sure where I went wrong.
Thoughts? Suggestions? Cheap jokes at my expense?
http://unreal-games.livejournal.com/
Smilies · viewtopic.php?f=8&t=13758medor wrote:Replace Skaarj with EvilGrins
- papercoffee
- Godlike
- Posts: 10451
- Joined: Wed Jul 15, 2009 11:36 am
- Personal rank: coffee addicted !!!
- Location: Cologne, the city with the big cathedral.
- Contact:
Re: Player bot on maps
Cheap jokes... Cheap jokes ...hmm ...nope nothing comes to mind. sorry can't help you!
But the other thing ...is this JD skin actually usable for Bots?
And "wasn't visible" means what? The bot was there but you couldn't see him?
But the other thing ...is this JD skin actually usable for Bots?
And "wasn't visible" means what? The bot was there but you couldn't see him?
-
- Godlike
- Posts: 3774
- Joined: Fri Jan 14, 2011 1:53 pm
- Personal rank: -Retired-
Re: Player bot on maps
It's a mapper who screwed up. I fixed it once for someone (wasn't that you?).
So long, and thanks for all the fish
- EvilGrins
- Godlike
- Posts: 9751
- Joined: Thu Jun 30, 2011 8:12 pm
- Personal rank: God of Fudge
- Location: Palo Alto, CA
- Contact:
Re: Player bot on maps
A strong stretch of insomnia and I stumbled over the problem. I picked the wrong bot class to put in the game. It works now.papercoffee wrote:Cheap jokes... Cheap jokes ...hmm ...nope nothing comes to mind. sorry can't help you!
But the other thing ...is this JD skin actually usable for Bots?
And "wasn't visible" means what? The bot was there but you couldn't see him?
Think it was.JackGriffin wrote:It's a mapper who screwed up. I fixed it once for someone (wasn't that you?).
This works out great. Now there's the cows you need to kill to get to the exit, butterflies you can try to kill, and a rogue Judge running around attacking the cows and the players but not the butterflies.
I guess he just likes butterflies.
Separate question, rather than start a new thread: Killing cows takes off 5 points which after this map gives most player -thousands of points. How do I switch the cows so you don't lose points killing them?
http://unreal-games.livejournal.com/
Smilies · viewtopic.php?f=8&t=13758medor wrote:Replace Skaarj with EvilGrins
- EvilGrins
- Godlike
- Posts: 9751
- Joined: Thu Jun 30, 2011 8:12 pm
- Personal rank: God of Fudge
- Location: Palo Alto, CA
- Contact:
Re: Player bot on maps
Here's another lil' thing: is there a way to make it so the player bot doesn't respawn in the same place as the normal players do?
When I used the Mr. Titan, mixed results but still, everytime it respawned it came back to the same spot it first spawned from.
The player bot tends to respawn where the other players do, which is all well and good excepting that it's geared to kill the monsters as much as it is the other players in the game. Might be handy if it didn't spawn where the other players do, seeing as it's gonna go all chainsaw and start trying to hack them up immediately.
When I used the Mr. Titan, mixed results but still, everytime it respawned it came back to the same spot it first spawned from.
The player bot tends to respawn where the other players do, which is all well and good excepting that it's geared to kill the monsters as much as it is the other players in the game. Might be handy if it didn't spawn where the other players do, seeing as it's gonna go all chainsaw and start trying to hack them up immediately.
http://unreal-games.livejournal.com/
Smilies · viewtopic.php?f=8&t=13758medor wrote:Replace Skaarj with EvilGrins
- VatcilliZeitchef
- Adept
- Posts: 317
- Joined: Tue May 01, 2012 12:29 pm
- Personal rank: It's a trap!
Re: Player bot on maps
That might need a different script in the bot that forces it on team 1 (blue) and the mapper to set a different playerstart with it's team set to 1.. I'm pretty sure many mods force every player or bot into team 0 though.. And I know valhalla Avatar seems to do so.
- EvilGrins
- Godlike
- Posts: 9751
- Joined: Thu Jun 30, 2011 8:12 pm
- Personal rank: God of Fudge
- Location: Palo Alto, CA
- Contact:
Re: Player bot on maps
Maybe, although tyhe HUD for the player bot is blue they register in the game as being on team gold.VatcilliZeitchef wrote:That might need a different script in the bot that forces it on team 1 (blue) and the mapper to set a different playerstart with it's team set to 1.. I'm pretty sure many mods force every player or bot into team 0 though.. And I know valhalla Avatar seems to do so.
http://unreal-games.livejournal.com/
Smilies · viewtopic.php?f=8&t=13758medor wrote:Replace Skaarj with EvilGrins
- VatcilliZeitchef
- Adept
- Posts: 317
- Joined: Tue May 01, 2012 12:29 pm
- Personal rank: It's a trap!
Re: Player bot on maps
Just a question, is this bot a custom class or just a Maleone/femaleone/tournamentmale/Tournamentfemale bot?
- EvilGrins
- Godlike
- Posts: 9751
- Joined: Thu Jun 30, 2011 8:12 pm
- Personal rank: God of Fudge
- Location: Palo Alto, CA
- Contact:
Re: Player bot on maps
TMale2Bot actually, standard Male Soldier for ut99.VatcilliZeitchef wrote:Just a question, is this bot a custom class or just a Maleone/femaleone/tournamentmale/Tournamentfemale bot?
http://unreal-games.livejournal.com/
Smilies · viewtopic.php?f=8&t=13758medor wrote:Replace Skaarj with EvilGrins
- VatcilliZeitchef
- Adept
- Posts: 317
- Joined: Tue May 01, 2012 12:29 pm
- Personal rank: It's a trap!
Re: Player bot on maps
That is the problem then, Both the team and the name are not editable properties in this one. I think they are saved in the PlayerReplicationInfo?
It might be good if you can get someone to make you a version (subclass) that is forced on team blue and where you can edit the name.
It might be good if you can get someone to make you a version (subclass) that is forced on team blue and where you can edit the name.
- EvilGrins
- Godlike
- Posts: 9751
- Joined: Thu Jun 30, 2011 8:12 pm
- Personal rank: God of Fudge
- Location: Palo Alto, CA
- Contact:
Re: Player bot on maps
That does seem ideal... any idea who?VatcilliZeitchef wrote:That is the problem then, Both the team and the name are not editable properties in this one. I think they are saved in the PlayerReplicationInfo?
It might be good if you can get someone to make you a version (subclass) that is forced on team blue and where you can edit the name.
http://unreal-games.livejournal.com/
Smilies · viewtopic.php?f=8&t=13758medor wrote:Replace Skaarj with EvilGrins
- VatcilliZeitchef
- Adept
- Posts: 317
- Joined: Tue May 01, 2012 12:29 pm
- Personal rank: It's a trap!
Re: Player bot on maps
It's a relatively simple thing I gather.. I have seen a couple of coders here, perhaps posting a request on a "Simple Bot to be placed in maps, where the mapper can define their team, and name" On the coding,scripting forum can yield results?
Re: Player bot on maps
PlayerReplicationInfo only holds one team related variable: byte Team
It's the game info that holds pointers to teaminfos as other stat holding actors hold some more info (in the case of plugins as SmartCTF)
How did I approach this on BotZ?
Using safe functions:
Becoming a valid player? - PlayerReplicationInfo.PlayerID = Level.Game.CurrentID++;
Setting name? - Level.Game.ChangeName( self, NewName, false);
Setting team? - TeamGamePlus(Level.Game).AddToTeam( NewTeam, self);
These functions properly check that no duplicate names are in use, all players have the proper team skin, all team members are properly registered on the teaminfos with a valid unique ID.
I suggest doing this after a 0.2 second timer, so the game is properly initialized, remember the Bot is among the map actors so it won't be spawned and it will Tick() BEFORE the GameInfo.
It's the game info that holds pointers to teaminfos as other stat holding actors hold some more info (in the case of plugins as SmartCTF)
How did I approach this on BotZ?
Using safe functions:
Becoming a valid player? - PlayerReplicationInfo.PlayerID = Level.Game.CurrentID++;
Setting name? - Level.Game.ChangeName( self, NewName, false);
Setting team? - TeamGamePlus(Level.Game).AddToTeam( NewTeam, self);
These functions properly check that no duplicate names are in use, all players have the proper team skin, all team members are properly registered on the teaminfos with a valid unique ID.
I suggest doing this after a 0.2 second timer, so the game is properly initialized, remember the Bot is among the map actors so it won't be spawned and it will Tick() BEFORE the GameInfo.
- EvilGrins
- Godlike
- Posts: 9751
- Joined: Thu Jun 30, 2011 8:12 pm
- Personal rank: God of Fudge
- Location: Palo Alto, CA
- Contact:
Re: Player bot on maps
Is there any simple, non-scripting, way to give the player bot a name?
So that on the scoring list it doesn't just show up as 'player'.
So that on the scoring list it doesn't just show up as 'player'.
http://unreal-games.livejournal.com/
Smilies · viewtopic.php?f=8&t=13758medor wrote:Replace Skaarj with EvilGrins