This is the bot script I designed, it may not be the best, but I like it very much. It’s a pure version I separated from BATTLE OF PARIS PVE, and you can use it to practice shooting. It is also a simplified version of a post I wrote very early on, leaving only the simplest obstacle avoidance system, SHARE MY AI DESIGN.
Code: HE4RR
Instructions for use:
- Players should use team one.
- Press the interactive button to transfer to the Spawn room.
- Press Greetings to turn off/on the AI of the robot.
- Press Thanks to change the robot.
- If you want to take DIY, then you must at least keep the following rules.
- Remember to refer to the variables I have given and don’t change them.
- The two HUDs in the upper left corner show the target heroes, whether the target is included in the line of sight, and the included targets.
- It is best not to add 6 robots at the same time, which will cause the server to be overloaded.
List of heroes available
| Name |
Name |
| Tracer |
McCree |
| Ganji |
Moira |
| Roadhog |
Lucio |
| Mercy |
Reinhardt |
| Bastion |
Brigitte |
| Ashe |
Doomfist |
| Widowmaker |
Pharah |
List of core systems
| Num |
Name |
| 1 |
Global [Initialization] |
| 2 |
Player [Lock Bots] |
| 3 |
Bot [Initialization] |
| 4 |
Bot [Type of heroes] |
| 5 |
Bot [Spawn bots] |
| 6 |
Bot [Get the target or not] |
| 7 |
Bot [Get the target or not] Support Heroes] |
| 8 |
Bot [Face the target] |
| 9 |
Bot [Get hurts] |
| 10 |
Bot [Move] |
| 11 |
Bot [Jump & crouch] |
| 12 |
All rules beginning with “Bot attack” |
List of variables used ( Dummy bot's PLAYER VARIABLE)
| Letter |
Num |
Name |
| A |
0 |
Whether the target is included in the line of sight. (T/F) |
| A |
1 |
Is it hurt? (T/F) |
| A |
2 |
Is it targeted? (T/F) |
| A |
3 |
Hero type. (0 far damage, 1 near damage, 2 snipers, 3 support, 4 tanks) |
| B |
0 |
Target player |
| B |
1 |
Target position |
| B |
2 |
Array, (2.0 left), (2.1 right) |
| B |
3 |
Randomly choose left or right |
| C |
/ |
Lost target countdown, upper limit 5 seconds, requires CHASE |
List of variables used ( GLOBAL VARIABLE)
| Letter |
Num |
Name |
| A |
0 |
AI switch (T/F) |
| B |
0 |
Player Spawn point |
| B |
1 |
Spawn room |
| E |
/ |
List of heroes available |
2 Likes