pac3 icon indicating copy to clipboard operation
pac3 copied to clipboard

Being in First Person makes Events unable to fire

Open FinalbossTom opened this issue 2 years ago • 5 comments

Events seem to only trigger while the Player is not in Firstperson (or more specifically, when they can't see their Viewmodel). This seems to include the normal Firstperson and the Pac3 Camera with "Show Viewmodel" enabled.

Tested in a completely isolated scenario and a freshly installed Pac3, with no custom Model as well as no other Addons installed. (Maybe somehow connected to #1148 ?)

FinalbossTom avatar Mar 06 '22 23:03 FinalbossTom

I should probably also mention, that the only Events i tested, where Speed, Timerx/sys, and Owner_isalive. Other events could maybe still work?

FinalbossTom avatar Mar 06 '22 23:03 FinalbossTom

This is sort of expected. There might be a solution for this but generally when an entity is not visible it should not render the pac outfit.

The intended workaround is using the camera part (without checking viewmodel), or use some third person mod.

When you check "show videmodel" it seems to hide the player model, and thus the outfit won't render.

CapsAdmin avatar Mar 06 '22 23:03 CapsAdmin

Okay, so after checking around the Code a little bit, i think i found the part you were referencing to. As i'm unsure about the rest of the codebase, i've come to wonder if there would be a easy way to force Pac to render the Outfit, even if the target Entity isn't drawn. The only problem i could spot there, would probably be referencing errors, as i'm not sure if you are able to get the Location of bones or similiar if the model isn't visible.

FinalbossTom avatar Mar 08 '22 18:03 FinalbossTom

Okay, so after checking around the Code a little bit, i think i found the part you were referencing to. As i'm unsure about the rest of the codebase, i've come to wonder if there would be a easy way to force Pac to render the Outfit, even if the target Entity isn't drawn. The only problem i could spot there, would probably be referencing errors, as i'm not sure if you are able to get the Location of bones or similiar if the model isn't visible.

I think draw_distance -1 allowed the outfit to render in first person. Kind of a wacky place to put the setting, but who wants have their parts in their face while in first person?

It should be a group part setting maybe.

thegrb93 avatar Mar 08 '22 19:03 thegrb93

Could you provide an example of something you'd like to work?

thegrb93 avatar Mar 19 '22 01:03 thegrb93