You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: