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

[NPCs] Allow NPCs to aim and attack properly when parented #254

Open
Blixibon opened this issue Nov 20, 2023 · 0 comments
Open

[NPCs] Allow NPCs to aim and attack properly when parented #254

Blixibon opened this issue Nov 20, 2023 · 0 comments
Labels
Enhancement New feature or request

Comments

@Blixibon
Copy link
Member

Is your feature request related to a problem? Please describe.

When NPCs are parented to another object, they are unable to properly attack when the object's angles are not 0 0 0, presumably due to the usage of local origin/angles. This happens because NPCs were not designed to be parented, but allowing them to attack properly would make them much easier to use in more complex environments, such as being parented to helicopters or trains.

Describe the solution you'd like

Every instance of GetLocalAngles/Origin in the base NPC code could be replaced with the absolute counterparts.

Describe alternatives you've considered

Using logic_measure_movement instead, which may not always apply or function well.

@Blixibon Blixibon added the Enhancement New feature or request label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant