Garry's Mod

Garry's Mod

Weapon: Setup, Transfer And Restore
Showing 1-10 of 12 entries
< 1  2 >
Update: 4 Jul, 2019 @ 12:21pm

Version 2.0

  • Added support for TFA INS2 attachments.
  • All ammo types are now saved and restored, even those that are not primary or secondary ammo to weapons.
  • Loadout system revamped. All loadouts are now saved to separate files for easier sharing.
    Please not that filenames may only contain letters, numbers and a limited set of ASCII symbols.
    All previous loadouts will be converted upon first start. Illegal characters may appear as underscore.
  • Slot order of weapons should now be restored as it was previously.
  • Upon restore, the player will automatically select the last used weapon.
  • Clients can now set their own delay (1 - 5 secs) for restoring ammo and attachment. Should improve chance of correct auto-restore with slow computers.
  • Loadouts can now be requested by double-clicking them.
  • You can now press enter to create a new loadout after entering its name.
  • Admins can now set a wait time for requesting restores or loadouts.
  • Improved networking
  • Fixed potential lua errors.
  • Fixed potential wrong datatype on reading loadout files.
  • New cvar "wstar_cl_delay": Client-side delay in seconds for restoring ammo and attachments. (1-5 ; default: 1)
  • New cvar "wstar_sv_support_tfa": Enable support for TFA attachments (0/1 ; default: 1)
  • New cvar "wstar_sv_wait_com": Cooldown time in seconds between client -> server requests for all but restores (Int ; default: 5)
  • New cvar "wstar_sv_wait_restore": Cooldown time in seconds between client -> server for weapon restores (Int ; default: 5)

Remarks:
  • Restoring ammo requires min. Garry's Mod update 2019.07 !
  • Loadouts from version 2 and 1 can not be used simultaneously.
  • Untested on dedicated servers. I'm currently lacking the time and setup.
  • The chance of successful auto-restore is depended on each users individual configuration, computer power and amount of weapons / attachments. It may not work properly under every circumstance. If it fails you may:
    • Increase the delay by setting "wstar_cl_delay"
    • Disable auto-restore. Restore weapons by using the button or bind the command "wstar" to a key.
  • TFA and CW2 attachments have been tested and are working under my configuration. Due to different user configurations and / or updates to those addons, functionality can not be guaranteed. No support will be given.

Update: 3 Jan, 2016 @ 11:14am

Version 1.4

  • Added delay to Auto Restore, in order to increase compatibility between CW 2 attachments and Weapon Transfer.
  • Added new cvar "wstar_sv_support_delay".

Update: 12 Nov, 2015 @ 10:43am

Version 1.3.3

  • Fixed bug, where numeric-only ammo types did not load.
    Related to same issue as 1.3.1, now hopefully fixed for all table keys.
    Thanks to D1m0n for the bug report!

Update: 1 Nov, 2015 @ 5:31am

Version 1.3.2

  • Fixed typo in previous update.

Update: 28 Oct, 2015 @ 1:00pm

Version 1.3.1

  • Fixed major bug: The menu would break, if a Loadout's name consisted of numbers only.
    Thanks to Froman for the bug report!

Update: 28 Sep, 2015 @ 11:28am

Version 1.3

  • Improved Loadouts: Ammo types are now saved using their class name rather then their IDs, because the latter can change across servers with different addons.

    This fixes the Loadouts ammo not loading correctly after adding or removing addons with custom ammo or between servers with different addons.

    You'll need to update your saved Loadouts manually! To do this:
    • Load and restore the weapons.
    • Check if the ammo for all weapons is still correct.
      If not, setup the ammo as you like.
    • Save the fixed Loadout by selecting the old one and using the Overwrite button.
    • Repeat for all your saved Loadouts. Your ammo will now save across servers.

  • The saved loadouts.txt is now more human-readable and can be edited manually using a proper editor.
  • Small bugfixes.

Update: 6 Sep, 2015 @ 7:31am

Version 1.2.1

  • Small code improvement to prevent potential bug.

Update: 1 Sep, 2015 @ 11:21am

Version 1.2

  • Added support for Customizable Weaponry 2.0 attachments.
  • Added icon to context menu for easier access.

Update: 16 Aug, 2015 @ 10:10am

Version 1.1

  • The menu no longer blocks your movement when open.
  • The menu can now be dragged around.
  • Added Console Command help page.
  • Fixed Weapon Transfer auto timers duplicating on convar change.
  • Optimized networking code.
  • ConVars no longer save with decimals

Update: 10 Aug, 2015 @ 12:08pm

Version 1.0.1

  • No more global functions, which means less conflicts
  • Added check to prevent WSTAR convar change function being abused to change other server convars.
  • Increased Restore delay to 500 ms to prevent other addons from overwritting the weapons.
  • Optimized networking code.
  • Invalid debug functions removed from code.