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

[Bug] HasSiren detection detects Mule has a siren #486

Closed
WithLithum opened this issue Jan 19, 2023 · 4 comments
Closed

[Bug] HasSiren detection detects Mule has a siren #486

WithLithum opened this issue Jan 19, 2023 · 4 comments

Comments

@WithLithum
Copy link

WithLithum commented Jan 19, 2023

Screenshot

Description

HasSiren method that was used to resolve the issue #436 works incorrectly and presumably detected an incorrect bone which caused most vehicles do not have Siren features even if they were supported before the commit dfdf278.

Excepted behaviour

Only vehicles that has siren1 will have Siren options support.

Actual behaviour

A weird set vehicles (some do have siren, some do not) have siren options support regardless of whether or not they actually have siren.

Workarounds

  • Enable siren manually by getting into the vehicle, then press Horn (default E) to enable/disable siren, before putting any peds into it.
  • Soul-steal the driver (the driver has to be in the Object Spooner Database) and manually enable/disable siren before soul-stealing back to the player.

Notes

  • It is possible that something is wrong with VBone::siren1 (for example, pointing to a completely different bone) that caused the detection to go wrong.
  • siren1 do show up in the bone list of the attachment menu (of vehicles that do have such bone).
@metoxys
Copy link
Contributor

metoxys commented Jan 19, 2023

It also detects the BR8 has a siren (maybe other open wheelers as well)

@itsjustcurtis
Copy link
Contributor

itsjustcurtis commented Jan 19, 2023

Looking into this, it looks like the vehicle bone list is out-dated. That said, using the latest bone list appears to remove the option for all vehicles. Looking into it, menyoo does dynamically look up bone indexes based on the name, so I'm not sure where its failing here

@MAFINS
Copy link
Owner

MAFINS commented Jan 20, 2023

Well for some reason the enum VBone::VBone and the string array VBone::vNames are completely different in order. One or the other needs re-ordering.

@itsjustcurtis
Copy link
Contributor

itsjustcurtis commented Jan 20, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants