My help will always be here for those who will accept it.
Quote: "how do you detect the mouse buttons without the mod and with the mod?"
Without Mod: You don't.
With Mod: Depends on the Mod. I have practically NO knowledge of Mod commands other than my own, so all of this is for Ply's Mod/Project Blue.
Detect Mouse Button Click:
mouseclick=X
Left Mouse button = 1, Right Mouse button = 2, Middle Mouse button = 4... add up the ones you're looking to detect at the same time.
Example: For both left and right buttons being pressed 'mouseclick=3' (1+2=3). For both left and middle buttons being pressed 'mouseclick=5' (1+4=5). For just the right button being pressed 'mouseclick=2'.
Detect Mouse Wheel Scrolling:
This is actually a combination of a few Ply's Mod features. It mainly relies upon the internal variable system and the variable recognition system which allows you to use variables in any command.
Checking for upward scroll:
vargreater=$MMZ 0.001
Checking for downward scroll:
varless=$MMZ -0.001
Hope that shed some more light on the subject.
[EDIT]
Just wanted to pop back in real quick and mention that
detecting a weapon swap will never be as accurate as detecting the weapon being held.
You can determine what weapon the player is holding with the following command:
haveweap=X
X can be 1 (to detect if the player is holding
any weapon), 0 (to detect if the player is
not holding any weapons), or (and this gets a tad confusing for the first time) you may give it the name of a weapon to detect if the player is holding that specific weapon. Here is an example:
haveweap=scifi/tavor
Notice that I included the weapon's parent directory in the name as well as the weapon's folder name. You can find these folder names directly inside of the "Files/gamecore/guns" folder.
I think you will find it much easier to detect the weapon being used directly as opposed to attempting to track when weapon changes are made.
Also, the "haveweap" command is for Ply's Mod/Project Blue only, just like the other commands I've listed here.
[/EDIT]
The one and only,