Comments (6)
Its already done. If you have engineers, they will use the RPGs as soon as you are in a vehicle. But I can let the other classes throw grenades as well...
But is a vehicle affected by grenades?
from fun-bots.
I believe a frag will do a small amount of damage to armoured vehicles; 40mm GL do a bit of damage as well.
Problem currently is that e.g. bot not equipped to take on a tank or APC still attack with rifles and effectively give themselves away. It's logic to a bot to attack (any) target, but for a real player, it would considered instant suicide.
Alternative solution would be (in pseudocode):
If equipped with RPG, attack armoured vehicle,
else move opposite direction/find cover.
from fun-bots.
I tried a LAV with 20 bots all throwing grenades at the vehicle. No damage at all... :-/
But maybe I just let them Ignore the vehicles. What behaviour would you suggest if a player is in a vehicle? Run to cover is not possible yet ^^
from fun-bots.
I don't know how advanced it's possible to make the bots or how much effort it will take, so these might be unrealistic but:
If vehicle type = [tank, APC] and vehicle occupied by enemy
{
If Bot equipment includes RPGs, then attack with RPG
else
If Bot equipment does not include RPGs, then run away (reverse travel direction of path?) - OR - ignore vehicle
}
If vehicle type /= [tank, APC] and vehicle occupied by enemy
{
If Bot equipment includes RPGs, then attack with RPG
If Bot equipment does not include RPGs, then attack vehicle with primary weapon
}
If this is too much of a pain, then I expect ignore or reverse path would be an acceptable alternative.
from fun-bots.
The HUMVEE can be damaged by grenades. I would do it the way that MoxUK suggests but also add logic for throwing grenades at Humvees and similar armored cars in the game.
from fun-bots.
I made the bots choose the way they attack vehicles depending on the vehicle and their loadouts. Otherwise they just ignore the vehicle. This is in Version 1.7.0.10.
Still some testing needed, but a first look seemed quite promissing...
from fun-bots.
Related Issues (20)
- Path editor Loop and Reverse HOT 1
- Gun Master Bots infinite M-SAW HOT 1
- Some maps in Squadrush mode are invalid. HOT 1
- Auto kill bots that have unknown current objective HOT 5
- Auto Label Finder
- Bots unknowningly walk instead of following traces movement | Tank having trouble with first node HOT 1
- Force dead\awaiting to spawn bots on base path connected to one MCOM remaining HOT 1
- Bot stuck defib HOT 2
- Delay spawn of Bots in Jets HOT 1
- Add config option to randomize bots' attachments
- Failure to be compatible with new server command HOT 3
- Mod itself unknowningly corrupted my .map file HOT 3
- Refactor: Move the 'fun-bots-helper' to a repo and add as a submodule HOT 2
- seine crossing bots pool party (stuck) HOT 3
- Bots revive bots HOT 2
- Bots react to grenades HOT 1
- Bot behavior: take position/ defend objective HOT 1
- Knife and Takedown does not work with the real hitboxes
- Delay smoke / flare usage HOT 1
- Assault Bots without defibs will stand ontop of dead teammates trying to revive them HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fun-bots.