STEAM GROUP
Potato's Custom MvM Servers potatomvm
STEAM GROUP
Potato's Custom MvM Servers potatomvm
973
IN-GAME
5,787
ONLINE
Founded
March 31, 2017
Language
English
Location
United States 
Using multiple templates
Is there anyway to get bots to use multiple templates? I made a template to make bots ignore the bomb and only go after players and it would be nice to just add the one 'Template' line to do this instead of grafting in the several lines from the template. I know I could just actually paste the values in where needed but it is easier to read with two templates.

My goal would be to do something like this:
TFBot
{
Template T_TFBot_Somename
Template T_TFBot_Ignore_Bomb
}
< >
Showing 1-7 of 7 comments
Orinuse Dec 14, 2018 @ 9:00pm 
no

it ignores the second template line
Slimeakku Jan 7, 2019 @ 10:21am 
As gamer said, you can't do that but the closest thing you can do to that is using RandomChoice which would look like this.

RandomChoice
{
TFBot
{
Template T_TFBot_Somename
}
TFBot
{
Template T_TFBot_Ignore_Bomb
}
}
theAgamer11 Jan 7, 2019 @ 11:23am 
Originally posted by HeRp-A-dErP-a-NErp.eXe:
As gamer said, you can't do that but the closest thing you can do to that is using RandomChoice which would look like this.

RandomChoice
{
TFBot
{
Template T_TFBot_Somename
}
TFBot
{
Template T_TFBot_Ignore_Bomb
}
}
I'm pretty sure he meant having something like

Template
{
T_TFBot_Ignore_Bomb
{
Attributes IgnoreFlag
CharacterAttributes
{
"cannot pick up intelligence" 1
}
}
}

which he could attach to any old bot to make them ignore the bomb. eg.

TFBot
{
Template T_TFBot_Giant_Scout_Jumping_Sandman
Template T_TFBot_Ignore_Bomb
}
Slimeakku Jan 7, 2019 @ 11:42am 
I know, but you can't so the closest thing you can do is just have two bots that are in Randomchoice with one of them ignoring the bomb.
theAgamer11 Jan 7, 2019 @ 12:37pm 
Originally posted by HeRp-A-dErP-a-NErp.eXe:
I know, but you can't so the closest thing you can do is just have two bots that are in Randomchoice with one of them ignoring the bomb.
Not really, since that doesn't accomplish what he wants at all. The closest thing you can do is just copy and paste the ignore bomb stuff onto each new bot; that's what he wanted the shortcut for. Your method would require that anyway since T_TFBot_Ignore_Bomb won't even spawn anything as is. If you modify it to spawn the bot, then that's already what he was doing; there's no reason to spawn the bots without the stuff to ignore the bomb.
Slimeakku Jan 7, 2019 @ 1:17pm 
If he wants to make some bots in a wave spawn to ignore the bomb, he would use random choice to make some of them go for the bomb and some to spawn with the behavior to ignore the bomb. I was under the assumption that "T_TFBot_Somename" "T_TFBot_Ignore_Bomb" were both bots of the same class but one just has the tags to ignore the bomb and so he wanted to do something with randomchoice. Just give them "BehaviorModifiers Mobber" and Attributes "IgnoreFlag". This will however make them stay at the hatch so you're better off with just giving them "cannot pick up intelligence" 1 and BehaviorModifiers Mobber so they don't immediately go for the bomb.
Originally posted by theAgamer11:
Originally posted by HeRp-A-dErP-a-NErp.eXe:
I know, but you can't so the closest thing you can do is just have two bots that are in Randomchoice with one of them ignoring the bomb.
Not really, since that doesn't accomplish what he wants at all. The closest thing you can do is just copy and paste the ignore bomb stuff onto each new bot; that's what he wanted the shortcut for. Your method would require that anyway since T_TFBot_Ignore_Bomb won't even spawn anything as is. If you modify it to spawn the bot, then that's already what he was doing; there's no reason to spawn the bots without the stuff to ignore the bomb.

That is what I ended up doing. I was hoping to be able to roll common lines together to save space similar to how 'Attributes MiniBoss' is several different lines in one. My goal was to have something easy to paste into an existing mission so that I could fight the bots without worrying about the bomb to practice my robot dm a bit. I wound up just having the bomb kill robots on contact since I only wanted it for single player anyway.


Originally posted by HeRp-A-dErP-a-NErp.eXe:
Just give them "BehaviorModifiers Mobber" and Attributes "IgnoreFlag". This will however make them stay at the hatch so you're better off with just giving them "cannot pick up intelligence" 1 and BehaviorModifiers Mobber so they don't immediately go for the bomb.

I encountered that problem while testing. Having them just kinda orbit the bomb rather than just stand stationary at the hatch seems way better. Thanks!
< >
Showing 1-7 of 7 comments
Per page: 1530 50