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

Friendlies should call for help at X,Y ... not a constant known enemy location #15

Open
derekgates opened this issue May 4, 2012 · 1 comment

Comments

@derekgates
Copy link
Collaborator

Currently all units know where everyone else is.

This should be 'sandboxed' a little bit so that when a unit is needing assistance, it calls friendlies to a last known location of an enemy. The friendlies would then travel to that X,Y coordinate (that can be updated as long as someone has a SIGHT on the enemy) and then search for an enemy.

Friendlies currently get called in to help on an enemy and will constantly adjust for where the enemy is, regardless of if someone has LOS on it or not. This is cheating.

@derekgates
Copy link
Collaborator Author

We can start using DestX and DestY for this; calling friendlies could set this as a destination point (last known enemy location) and if a unit doesn't have a target, move towards DestX and DestY in moveForward.

When findTargets() finds something as it travels towards that friendly call, the unit then used LOS to find units instead of cheating.

derekgates added a commit that referenced this issue May 4, 2012
Randomize heal x,y is part of #16. Should use DestX and DestY when we
do #15

- Random point in a healing circle picked for an evasive location to
move to.

evade switch cool down fixes #17
- Cooldown of 5 seconds before a tank can switch in / out of EVADE.
- stopEvading() is created to help with this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant