
Making bots shoot through walls
Re: Making bots shoot through walls
It seems to work ish. Now when the try to escape they die 

Walk quietly and carry a sniper rifle
- Apache Thunder
- Posts: 1213
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: Making bots shoot through walls
Not sure if this will help you now or not. But I've found how to get bots to "see" through walls using aiTemplates:
I was making some auto turret defense towers for my Dystopia Map and noticed they stopped shooting at me after I entered the gate. I had invisible walls set up to prevent folks from jumping over the visible walls since the aim of the map is to make people capture the control point at the gates to gain easy access to the city. The bots couldn't shoot once inside, which I didn't want. I found with this aiTemplate used on the invisible walls the bots can see through them now:
Note the "transparency" setting on the Cover plugin. It seems to allow them to "see" through it. I noticed the barbwire aiTemplate using this, so I've rigged it with a value of 1 which means 100% transparency. Thus this can be used to make bots see through any invisible (or visible, it wouldn't matter really) wall you want. 
Just add this aiTemplate via the ObjectTemplate.aiTemplate command to your invisible wall objects you want the bots to see through.
I was making some auto turret defense towers for my Dystopia Map and noticed they stopped shooting at me after I entered the gate. I had invisible walls set up to prevent folks from jumping over the visible walls since the aim of the map is to make people capture the control point at the gates to gain easy access to the city. The bots couldn't shoot once inside, which I didn't want. I found with this aiTemplate used on the invisible walls the bots can see through them now:
Code: Select all
aiTemplatePlugIn.create Cover InvisibleWallCover
aiTemplatePlugIn.coverValue 1
aiTemplatePlugin.transparency 1
aiTemplatePlugIn.create Physical InvisibleWallPhysical
aiTemplate.create InvisibleWall
aiTemplate.addType ITCover
aiTemplate.addType ITNoTemperature
aiTemplate.degeneration 1
aiTemplate.allowedTimeDiff -1
aiTemplate.basicTemp 1
aiTemplate.commonKnowledge 1
aiTemplate.addPlugIn InvisibleWallCover
aiTemplate.addPlugIn InvisibleWallPhysical

Just add this aiTemplate via the ObjectTemplate.aiTemplate command to your invisible wall objects you want the bots to see through.



I have cameras in your head!