helix icon indicating copy to clipboard operation
helix copied to clipboard

Add ShouldDisableThirdperson hook

Open OffLegAz opened this issue 3 years ago • 2 comments

OffLegAz avatar Aug 26 '21 16:08 OffLegAz

Usually, alex is very picky about hooks, while I don't see a harm in this one, he shares valid concerns that they are really slow, this disposition is multiplied by the fact that this hook would be called every frame.

I can see potential uses for this, but numbering very low -- do you have a couple things you can list that would help push the importance of a frame-level hook?

ZeMysticalTaco avatar Sep 02 '21 19:09 ZeMysticalTaco

Usually, alex is very picky about hooks, while I don't see a harm in this one, he shares valid concerns that they are really slow, this disposition is multiplied by the fact that this hook would be called every frame.

I can see potential uses for this, but numbering very low -- do you have a couple things you can list that would help push the importance of a frame-level hook?

This hook can be used to disable thirdperson while player:

  • is using raised weapon;
  • is sighting with weapon;
  • interacts with addon or plugin entity which overrides view and etc.

While first and second list items are not so important, the last can be very useful if you have, for example, custom combine binoculars entity.

OffLegAz avatar Sep 02 '21 21:09 OffLegAz