-
Notifications
You must be signed in to change notification settings - Fork 288
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
Turrets target moving cars #2165
Turrets target moving cars #2165
Conversation
Good catch! |
if( !veh ) { | ||
return false; | ||
} | ||
for( const vpart_reference &vp : veh->get_avail_parts( "CONTROLS" ) ) { |
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.
I think it will make sense if they also can target wheels.
I think I found a bug, but I'm not sure whether it's caused by this PR or just by wacky monster targeting in general.
|
Yeah, this is a common thing for all monsters. If they can see the player they ignore everything else. I imagine it's the same if you throw zombies at it as well. Also lol at the turret struggling to stand. |
Few notes:
|
Summary
SUMMARY: Features "Turrets, defense bots and mi-go now target moving cars"
Purpose of change
Make the tactic of avoiding enemies by crouching in your car less effective. More intelligent enemies (i.e. turrets, defense bots and mi-go scouts) will now target moving vehicles, favoring shooting at the controls if they can.
Describe the solution
There's a new json property in the gun special attack that controls the behavior. It causes the closest moving vehicle to be targeted if there's nothing better and it will favor shooting the controls of the vehicle if it can see them. Vehicles do not require any targeting time from the turret.
Describe alternatives you've considered
Giving it to more monsters maybe?
Testing
The old seems to work.
Additional context
Crouching in your car is still a fairly effective strategy. It gives pretty good protection but it's a lot more risky. Note that this does work across z-levels so they will shoot at helis as they pass.