Garry's Mod

Garry's Mod

2,613 ratings
Weapon Editor & Replacer
2
5
5
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
11.433 KB
26 May, 2017 @ 6:00am
3 Jan, 2018 @ 5:07am
5 Change Notes ( view )

Subscribe to download
Weapon Editor & Replacer

In 1 collection by LibertyForce
Horror- & Story-Map Enhancements (Single- and Multiplayer Tools)
6 items
Description
Edit weapon's properties and replace HL2 weapons with SWEPs!

Enjoying your custom SWEPs but you wish they had larger magazines? Annoyed that all SMGs are crammed into slot 3? Like to pickup custom SWEPs from killed Combine instead of AR2s? Want a pistol that shots down hunter choppers?
Then you are in the right place! Click subscribe to enjoy...


  • Edit weapon properties of all custom SWEPs, such as...
    • Damage
    • Ammo types
    • Magazine size
    • Fire rate (RPM)
    • Slot position
    • ... and more.
  • Block picking up of HL2 weapons, but still receive their ammo.
  • Replace any weapon pickup with a custom weapon of your choice (including it's ammo).
  • Save weapon edits to Presets that are auto-loaded.
  • Multiplayer compatible! (Of course all settings are restricted to admins)
  • Combine with Weapon: Setup, Transfer And Restore for even more control!



How to open the Weapon editor
  • Spawnmenu -> Options -> Player -> Weapon Editor -> Open Menu
  • Console command: weapon_properties_editor

Editing a weapon
  1. You will need to enter the weapon class you want to edit. To do this, either:
    • Click "Get class of active weapon" to edit the weapon you are currently holding.
    • Choose a weapon from the list of installed SWEPs by double-clicking on it.
      • Warning: The list contains all SWEPs including weapon bases. It is not recommended to edit bases or other SWEPs that can not be spawned regularly.
    • Enter the weapon class into the text field manually.
      • Hint: In the Sandbox spawnmenu, you can right-click a weapon's icon and choose "Copy to clipboard". Then paste into the text field.
  2. Once the text fields contains the right weapon class, click on "Edit Weapon".
  3. You can now edit the weapon's properties to your liking. Please note:
    • Fields that are grayed out are not available for this weapon.
    • Do not manually enter a ammo type unless you know what you are doing! You can copy default ammo types from the drop down list to be safe.
    • You shouldn't put multiple weapons in the same slot position.
    • Fire types must be entered manually, since they are different for each weapon base. Only advanced users should edit this. Look at other weapons from the same base to learn the valid types.
  4. Once you are finished click on "Apply Changes". Changes will take affect to all newly spawned weapons.
  5. If you want to save this settings permanently, click on "Save modifications as preset". To delete this later, choose "Manage Preset Files" in the main menu.
  6. To apply changes to existing weapons, click "Force update". Please note that this does not work on existing weapon pickups. In that case it is recommended to save a Preset and restart the round.

Replacing a weapon
  1. Click on "Weapon Replacements" at the bottom of the main menu.
  2. Enter the weapon class that you want to replace into the left text field.
    You can copy the class from the main menu. See Editing a weapon on how to receive it.
  3. You can now either:
    • Leave the right text field empty to block the weapon from being picked up. You will still receive it's original ammo.
    • Enter the weapon class of the replacement into the right text field. This will give players a different weapon when picking it up. The ammo type will be received from the new weapon.
  4. Click "Add weapon replacement". Changes will take affect immediately.


  • Can I edit the default HL2 weapons?
    No, that's not possible. Please don't ask for it, since Source weapons can not be manipulated by Lua at all.

  • Why are some values disabled?
    Those are not available for the current weapon. Different weapon bases have different features they are compatible with. It is currently not possible to add new values.

  • Some values seem to be weird, such as magazine size 0 on secondary ammo.
    Values of 0 indicate a placeholder and that this feature is not supported for that weapon. It is recommended to not edit it as you may cause unwanted issues.

  • Can I break stuff with this?
    Yes. Use common sense before putting in weird values. Your weapons may break. Do not save your edits as preset without testing the weapon first! Due to many different weapons and bases I can not support all weapons.

  • How do I reset a weapon to it's default values?
    You can only do this by restarting the round (with "restart", "changelevel", etc.). All changes are automatically lost unless you save them as preset. If you have them saved as preset, you'll need to delete the preset before restarting.

  • I entered invalid values and saved them as preset. Now my game crashes upon start!
    You will need to delete the preset manually. Navigate to your Garry's Mod folder and then:
    garrysmod\data\lf_weapon_properties_editor\presets
    Delete the file for the weapon class, that's causing the problems. If you don't know which one, you'll need to delete all and start over.

  • Do I still receive ammo from replaced weapons?
    Yes you will, but it will be 1 magazine of the new weapon's ammo. Example: You replaced the crowbar with a custom MP5, then you'll receive the MP5's ammo. If you blocked the weapon without a replacement, you'll receive 1 magazine of the blocked weapon's ammo.

  • Will this work in multiplayer?
    Yes, it should work on both listen and dedicated servers. Please note, that the server needs to have the addon installed, clients don't need to download it. Only Super-Admins can access the settings.

  • What do you mean it's only for admins?! How do I become admin?
    Don't worry, you are already admin in singleplayer. In multiplayer - since you needed to ask this question - you won't become an admin.





Tags: weapon weapons swep sweps scripted lua edit editor property properties damage ammo type clip magazine size fire mode firemode slot slots position order select selection replace default hl2 half life 2 menu pick up pickup preset presets save load

http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=624173012
Popular Discussions View All (26)
45
3 Sep, 2023 @ 9:02am
Various Suggestions
Neosun
40
17 Jul @ 3:40pm
PINNED: Errors and bug report
LibertyForce
5
5 Aug @ 5:20am
Replacements just reset.
Adolf kebab
335 Comments
tructordes64 2 Nov @ 5:13am 
My changes are not saved after restarting the server
nonchalant white boy 20 Oct @ 1:02am 
Beware doesnt save after server restart
Thunder032 4 Aug @ 9:23pm 
这个模组会和一些限制携带武器数量的模组冲突,导致这个模组失效
因为作者已经停止更新,所以不可能修复这个问题,我推荐大家用这个,这个就不会产生冲突: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3106219095
sonic slayer 23 Jul @ 10:12pm 
模组现在用不了
Boo 17 Jul @ 3:37pm 
Upsettingly, this mod has stopped saving its settings after closing the game.
This is a huge problem as I've been making in-depth balance changes using this tool.
foxanddolphinboy 5 Jul @ 7:18pm 
i needed this to buff the half life 2 pistol
That One Potato 5 Jul @ 12:15pm 
One day, the addon just stops working. Like, it can replace weapons, but once I start a new game or swap maps or whatever, everything is undone.
intel laptop gaming 28 Jun @ 2:36am 
it now doesn't save my settings. and looks like it's not only me who have this problem
DR NEGATIVE 20 Jun @ 3:35pm 
For some reason, the addon restarted all of my weapons I had changed settings on and when I went to go back and fix them, they remained the same with their stock damage and ammo count.
Idk if its the addon or the new update Gmod got thats causing issues with it
CatNap #SaveTF2 #FixTF2 1 Jun @ 1:21pm 
i have idea!

NPC EDİTOR!!!

Like Weappn Editor But Npc Edition!

You Can Do That?

PLSPLSPPLSPLSPLSPLSPLSPLSPLS MAKE THAT EDİTOR İ PRAY YOU PLSSSSSSSSS