Alien's Smart Gun LUA coding gmod Help

I haven’t seen anyone implement the smart gun from Aliens into the workshop. Only thing I want to know is how I can add its night vision mode and it’s aim bot if possible if the player were to right click .

What’s a smart gun from aliens, this is not “Code me” forum