helix
helix copied to clipboard
Allow us to edit lowered angles.
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
Use weapon.LowerAngles
, that's why it's there.
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.]
If we do this, we should probably do #356 too.