Author Topic: Advanced bot events to teach the bot what weapon its using (Firing Sequences)  (Read 2023 times)

One problem with bots is that they have one set of rules when it comes to weapons. They fire in intervals. I was thinking of a way that you could teach a bot in what intervals to fire

basically its an output event that has 3 text boxes

1. a large one to set firing type   2. a second small box telling how far the player must be to do it 3. another small box that tells what percentage chance it will be doing this type of attack
[                   1                      ] [ 2 ] [ 3 ]

firing types would be in letter and number format, for an example

h - hold

f### - rapid fire (numbers for how many clicks per millisecond)

and what comes after is

l - left click

r - right click

j - jump

then you put a set time for how long they do it, like 4000 for 4 seconds and such


for an example


[   hl3000            ] [ 64 ] [50]

tells the bot to hold left click for 3 seconds, the player must be 64 studs away and there is a 50 percent chance they will do it

[  f300r4000        ]  [ 5 ] [ 100 ]

tells the bot to rapid fire (f for fast or something) the right click button every 300 milliseconds, for 4 seconds, the player must be at most 5 studs away, and there is 100 chance they will do it

and if you want 1 firing sequence to have multiple you could like


[ f200r5000 500 hl3000        ] [ 30 ] [ 25 ]

tells the bot to rapid rightclick for 5 seconds, wait half a second, then hold left click for 3 seconds. the player must be 30 studs away, and there is a 25 percent chance they will do it

i was thinking calling it setFiringSequence

someone could probably come up with an easier concept but something like this would be really useful
« Last Edit: August 22, 2015, 01:12:34 PM by Trogtor »

There should also be a light function [l?] for reloadable weapons

There should also be a light function [l?] for reloadable weapons
yes thank you thats a great idea

i noticed how confusing this sounds, so i kinda color coded it so people would understand

Well, if this was to be done, maybe the Bot_Hole mod should be redone to support this kind of stuff, it's a good idea.

I made a topic of this a while ago. No one responded much. This is a lot more fleshed out than my topic though. Could there also be a simpler command for a single click like c(button)? So cl would be click left mouse once.

i actually just found out that bots do in fact learn the states for weapons and how to activate them correctly on their own.

except maybe reloading

interesting

they still can't use pirate cannons though so this is still useful

They can't seem to fire things like kaje's(?) minigun. They just sit there spinning it up then waiting.