Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BOTs attacking when behind objects / buildings #10

Closed
SmartShots opened this issue Jan 27, 2021 · 7 comments
Closed

BOTs attacking when behind objects / buildings #10

SmartShots opened this issue Jan 27, 2021 · 7 comments
Labels
enhancement Suggestion for a change to an existing feature

Comments

@SmartShots
Copy link
Contributor

Don't know if there is anything that can be done but the bots are currently attacking anyone they can see within their viewing angle and distance, even if the player is behind objects/buildings.

For example, on Noshahr Canals they will fire at you from the opposite side of the containers even though there is no way they can hit you.

@Joe91
Copy link
Owner

Joe91 commented Jan 27, 2021

Yes, this can happen some times. Thats because a bot cannot see at all and gets triggered very easy by a player. After that he just shoots for 5 seconds. In some wierd cases even longer even if he can't see you anymore. We are working on it, but its not the highest priority.
If you find out what exactly causes this, please let me know...

@Joe91 Joe91 added bug Something isn't working enhancement Suggestion for a change to an existing feature labels Jan 27, 2021
@SmartShots
Copy link
Contributor Author

Yes, this can happen some times. Thats because a bot cannot see at all and gets triggered very easy by a player. After that he just shoots for 5 seconds. In some wierd cases even longer even if he can't see you anymore. We are working on it, but its not the highest priority.
If you find out what exactly causes this, please let me know...

I take it they are already not supposed to be trying to shoot at you through objects/buildings then? I presumed it was just like that because there wasn't any code to tell them that the object or building was there.

@Joe91
Copy link
Owner

Joe91 commented Jan 28, 2021

They should only be triggered if there is a clear view or if you are very Close. But after the trigger they cannot detect if they can see you or Not. But they should stop after a short time if not.
Could you try if this is still the same with the new master?

@SmartShots
Copy link
Contributor Author

They should only ne triggered if there is a clear view or if you are very Close. But after the trigger they cannot detect if they can see you or Not. But they should stop after a short time if not.
Could you try if this is still the same with the new master?

I'm currently using the latest release - V1.2.0.0 - and have tested it some more. They do seem to be getting triggered sometimes when there is clearly no view of me.

See this example video

@Joe91
Copy link
Owner

Joe91 commented Jan 28, 2021

The trigger in the video is the parameter "distanceForDirectAttack". If you are close to the bot (by default 3 m) he will attack. You can set this to 0

@SmartShots
Copy link
Contributor Author

The trigger in the video is the parameter "distanceForDirectAttack". If you are close to the bot (by default 3 m) he will attack. You can set this to 0

I have it set to 1 in this case. I will change it to 0 and re-test.

@Joe91 Joe91 removed the bug Something isn't working label Jan 28, 2021
@Joe91
Copy link
Owner

Joe91 commented Feb 1, 2021

Should be improved now. Still raycasts aren't that reliable...

@Joe91 Joe91 closed this as completed Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Suggestion for a change to an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants