-
Notifications
You must be signed in to change notification settings - Fork 737
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
MCLOS - Add support for AI #10701
base: missile_guidance_mclos
Are you sure you want to change the base?
MCLOS - Add support for AI #10701
Conversation
private _distance = _launchPos vectorDistance _projectilePos; | ||
private _projectedPath = _launchPos vectorAdd (_launchVec vectorMultiply _distance); | ||
|
||
private _source = _projectile getVariable [QGVAR(source), _projectile]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this unused?
private _source = _projectile getVariable [QGVAR(source), _projectile]; | ||
private _hOffset = (_projectilePos # 2) - (_projectedPath # 2); | ||
private _vv = (velocity _projectile) # 2; | ||
_mclosInput = switch (true) do { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't support side-to-side travel
if (!(alive _shooter && {alive _gunner} && {(vehicle _gunner) == _shooter} && {_gunner call EFUNC(common,isAwake)})) exitWith {}; | ||
|
||
private _distance = _launchPos vectorDistance _projectilePos; | ||
private _projectedPath = _launchPos vectorAdd (_launchVec vectorMultiply _distance); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this only aims for the point the ai was aiming when they fired. if the target moves, this inherently misses. i think we could do something similar to SACLOS where we figure out the position the gunner is looking but as SACLOS shows that isn't easy. this is good for now, just wanted to note this
For PR #10027
Adds basic support for AI shooting MCLOS weapons
It's not very accurate and there is a lot of oscillation in the path, but that's probably pretty accurate for these types of missiles.
Also adds a mock vic so this can be tested in vanilla arma
Disabled by config macro, but could leave in as scope=1 if that's ok? (makes testing not require restart)