AR2AltFire for LUAs?

Hi, a noob question here.

I am interested on making LUAs and have created few kinds of 4 - 5 Stars SWEPs on Steam.

I wanted to know if there was a way to add “AR2AltFire” command on a SWEP?

I have tried finding a way to see the original one in my garrysmod folder but seem to have no luck.

Any help is appreciated, thanks!

EDIT: I just realized, I’m trying to find a way to shoot the AR2 Projectile (The one that ricochets around and disintegrates enemies on kill)

The energy ball class is prop_combine_ball (see https://developer.valvesoftware.com/wiki/Prop_combine_ball). use the ents.Create function to create it, then set its angle and position (and maybe velocity), then spawn it. All of that in the SecondaryAttack hook of your swep.

Some more research on the Garry’s Mod wiki and you should be able to do it: http://wiki.garrysmod.com
Also check the list of the HL2 enitites: https://developer.valvesoftware.com/wiki/List_of_HL2_entities

Never thought someone would still respond to this, but thank you! :slight_smile:

No problem, I hope it helped you!