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

detour beam function and return closest #29

Open
ampreeT opened this issue Aug 13, 2020 · 1 comment
Open

detour beam function and return closest #29

ampreeT opened this issue Aug 13, 2020 · 1 comment
Labels
entity-issues engine entity-related bugs/crashes/issues

Comments

@ampreeT
Copy link
Owner

ampreeT commented Aug 13, 2020

need more information on this (why hook this)
original description: detour CBeam::RandomTargetname -> compare for !player -> return closest

@ampreeT ampreeT added question Further information is requested entity-issues engine entity-related bugs/crashes/issues labels Aug 13, 2020
@Alienmario
Copy link
Collaborator

This should be done because !player will target the first player, resulting in beams potentially going through walls or even whole map, though not that common in the campaign.
To improve on this further, build a list of players with line of sight and choose at random.

@Alienmario Alienmario removed the question Further information is requested label Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
entity-issues engine entity-related bugs/crashes/issues
Projects
None yet
Development

No branches or pull requests

2 participants