Fixed some wrong attachments being listed. For example pistol would list "silencer_shotgun" when the expected name is "silencer". Now all listed attachments only contain the content before the first underscore, which works.
Added print of the attachments to the console if the debug mode is on
Fixed weapon not given to the proper player in some scenarios
Fixed player not switching to the weapon automatically in some scenarios
Fixed multiple attachments not working
Only create variables for the port currently in-use
For example: there's no need to create level.chat_commands["4977"] if the currently used port is 4976. This simply adds a bunch of variables and child variables for no reason, this was a flawed implementation that create an array per port on every server. Now it will only create an array for its own port as expected
Removed 3074 from the default ports
This port is not actively used by net_port, this was just a misunderstanding on my part
This is a port of my MW3 chat_commands script (version 1.3.2)
ba1322b933
The array declarations such as array = ["value"] were changed to use the array function
The tell function (player chat) was changed IPrintLnBold. More explanation in the README
Support for clantags was added. Clantags were changing the player's name which would then make the script fail to find the player when typing his name. This has been tested and fixed. More explanation in the README
Errors and util functions related to camo were removed. The way camo works seems to be really different than MW3 so work is required to implement these again