helix icon indicating copy to clipboard operation
helix copied to clipboard

Allow us to edit lowered angles.

Open riggs9162 opened this issue 3 years ago • 3 comments

Allow us to edit the lowered angles by making the local into a global thing so people can change it without editing the framework. Example: [ ixhl2rp/schema/sh_schema.lua

Put this somewhere in your sh_schema.lua ix.loweredangles = Angle(6, -10, -7) ]

Also first pull request :3

riggs9162 avatar Sep 01 '21 17:09 riggs9162

Use weapon.LowerAngles, that's why it's there.

alexgrist avatar Sep 01 '21 17:09 alexgrist

It's odd to have it done this way [it's not the only time this happens in the framework; BAR_HEIGHT for ix.bar is another one]

But you can just put SWEP.LowerAngles or SWEP.LowerAngles2 in your weapon base, it's probably preferred to do this specifically because default framework things or plugin/addon integrations that use their own weapon mdls or something may have been counting on the default lowered angles to have been set, potentially causing issues down the line. [Angles2 will be used when altLower or Hide hands when lowered is ticked and the field is present.]

ZeMysticalTaco avatar Sep 01 '21 17:09 ZeMysticalTaco

If we do this, we should probably do #356 too.

ZeMysticalTaco avatar Sep 02 '21 23:09 ZeMysticalTaco