garrysmod icon indicating copy to clipboard operation
garrysmod copied to clipboard

Team Module Update

Open LeQuackers opened this issue 4 years ago • 3 comments

This adds basic object oriented support to the team module. You can call team.Register to register a team object with custom logic/extensions. If you want the old behavior, you can use team.SetUp.

LeQuackers avatar Sep 18 '20 04:09 LeQuackers

The module should close this Facepunch/garrysmod-requests#101

LeQuackers avatar Sep 18 '20 05:09 LeQuackers

You can use ipairs (or for i = 1, #length) instead of pairs in some loop (lines 266, 278, 290).

FlorianLeChat avatar Sep 18 '20 07:09 FlorianLeChat

Not sure why do you need have a pl local outside the loop. Won't matter much, just a note

GitSparTV avatar Sep 18 '20 12:09 GitSparTV