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

Fix #1279: driveby for peds #1290

Merged
merged 3 commits into from Mar 14, 2020
Merged

Conversation

Zangomangu
Copy link
Contributor

@Zangomangu Zangomangu commented Mar 13, 2020

Fixes #1279

  • Driveby shooting didn't work for peds because ped target vectors are not updated (Ped::Interpolate) when he's in a vehicle. This is fixed by using Ped::SetAimingData instead of Ped::SetTargetTarget.

  • All 4 driveby aim animations now work.

  • Ped target origin is currently ped position instead of gun muzzle, so bullets appear to shoot from center of ped. I've changed it to gun muzzle, I don't think this should break any scripts?

@qaisjp qaisjp self-requested a review March 13, 2020 22:31
Copy link
Contributor

@qaisjp qaisjp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few minor comments, but it works and the code looks good.

@qaisjp qaisjp added feedback Further information is requested bug Something isn't working labels Mar 14, 2020
@qaisjp qaisjp added this to the 1.6 milestone Mar 14, 2020
@qaisjp qaisjp self-assigned this Mar 14, 2020
Co-Authored-By: Qais Patankar <qaisjp@gmail.com>
@qaisjp qaisjp removed the feedback Further information is requested label Mar 14, 2020
@qaisjp qaisjp changed the title Fix #1279 driveby for peds Fix #1279: driveby for peds Mar 14, 2020
@qaisjp qaisjp merged commit 4b7432e into multitheftauto:master Mar 14, 2020
@Zangomangu Zangomangu deleted the driveby-fix branch March 15, 2020 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix driveby for peds
2 participants