mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-28 18:11:16 +00:00
I've done some changes to the scope component so that it can be applied to items other than guns. Binoculars now use it instead of changing the player view size, and lets them move around while the zoom is on at the cost of a moderate slowdown. This is both more comfortable, cooler and less laggier than the previous method. Take in mind it still takes both hands to use binoculars, so there's no much room for exploitation anyway. This PR also makes the mothic softcap from the curator kit special: it too has the scope component, albeit of a much shorter range, because it's probably the least interesting kit of them all right now and has nothing that the curator cannot get by walking in the aux base construction room, except for a pair of pockets in the mothic coat, though that's superseeded by the Trailwarden kit's saddlepack. It's pretty fitting if you ask since the softcap has some goofy-looking googles drawn on it. Oh, items that aren't guns also have a different mouse tracker icon of two circles joined together, instead of a reticle.
7 lines
361 B
Plaintext
7 lines
361 B
Plaintext
///How the scope component is toggled. This one is done by right-clicking.
|
|
#define ZOOM_METHOD_RIGHT_CLICK 1
|
|
/// Wielding the object with both hands toggles the zoom. Requires the two-handed component to work.
|
|
#define ZOOM_METHOD_WIELD 2
|
|
/// Activated by clicking an item action button specified by the `item_action_type` var.
|
|
#define ZOOM_METHOD_ITEM_ACTION 3
|