STEAM GROUP
Left 4 Dead 2 Workshop Beta L4D2WSB
STEAM GROUP
Left 4 Dead 2 Workshop Beta L4D2WSB
3
IN-GAME
35
ONLINE
Founded
15 October, 2012
shotgunefx 14 Feb, 2013 @ 8:18pm
New Find - CommandABot(AttackTable);
Christmas must be early this year because I got just about everything I've asked for. Thanks Kerry!

I may have a pet tank yet :)

BOT_CMD_ATTACK <- 0 // needs target to attack BOT_CMD_MOVE <- 1 // can move to pos or ent BOT_CMD_RETREAT <- 2 // needs target to retreat from AttackTable <- { bot = bot target = target cmd = BOT_CMD_ATTACK } Director.ClearCachedBotQueries() // kruft? CommandABot(AttackTable);

OR

AttackTable <- { bot = bot pos = target.GetOrigin() cmd = BOT_CMD_MOVE } Director.ClearCachedBotQueries() // kruft? CommandABot(AttackTable);


Now a few observations. The bot's will often SUSPEND what you tell it to do, not sure if there is a way to bump priorty, I tried several guesses but none worked. Also, even if you make Nick attack Rochelle, he'll just elbow her, not attack
< >
Showing 1-4 of 4 comments
Fish 16 Feb, 2013 @ 4:40am 
Is there any easy way for this to call a function when the bot reaches it's target, or kills it's target ect.
shotgunefx 16 Feb, 2013 @ 4:49am 
Don't think so, but careful use of flags and game events you could do it. For instance, hook OnGameEvent_player_death or OnGameEvent_player_hurt and see if your bot met his goal or use update to check FindWithinSphere on you're target to see if it's within a given range
Fish 16 Feb, 2013 @ 5:12am 
Yeah, but that's a little tedious. :/ Would be nice to have a callback function once the bot has reached it's goal.
shotgunefx 16 Feb, 2013 @ 12:40pm 
It would be handy indeed
< >
Showing 1-4 of 4 comments
Per page: 1530 50