MattJeanes / PewPew

Divran's old GCombat remake now up to date for Garry's Mod 13.
7 stars 9 forks source link

Allow e2 "AllowE2Create" convar to restrict to admin use only #43

Closed brandonsturgeon closed 6 years ago

brandonsturgeon commented 6 years ago

Allow the pewpew e2 "AllowE2Create" convar to restrict to admin use only when assigned a value of 2

This also minorly refactors the pewCreate function.

The only other functional change is the defaulting of the direction argument in the case that it's invalid. I've opted to default it to "up" (1), but any value here is acceptable (perhaps forward?)

Brief testing shows this to be functional, but you'll of course do your own testing.

Thanks!

MattJeanes commented 6 years ago

Hello, thanks for contributing - I'll give this a quick test myself when I get some time, hopefully tonight, and if it's all good I'll merge and deploy to Steam Workshop. :smile: