Garry's Mod

Garry's Mod

2,712 betyg
Weapon Editor & Replacer
2
5
5
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
Filstorlek
Lades upp
Uppdaterades
11.433 KB
26 maj, 2017 @ 6:00
3 jan, 2018 @ 5:07
5 ändringsnotiser ( visa )

Abonnera för att ladda ner
Weapon Editor & Replacer

I 1 samling av LibertyForce
Horror- & Story-Map Enhancements (Single- and Multiplayer Tools)
6 artiklar
Beskrivning
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://test-steamproxy.haloskins.io/sharedfiles/filedetails/?id=624173012
Populära diskussioner Visa alla (27)
45
3 sep, 2023 @ 9:02
Various Suggestions
Neosun
40
17 jul, 2024 @ 15:40
KLISTRAD: Errors and bug report
LibertyForce
5
5 aug, 2024 @ 5:20
Replacements just reset.
Adolf kebab
348 kommentarer
JayHog1992 4 jun @ 13:48 
Any good weapon packs to recommend for this? Wanted something that wouldn't be too unbalanced for HL2 adventure maps.
Ateş Bozkurt 7 maj @ 11:25 
to make it fit best with Half-Life 2 Beta/Leak,replace all weapons with their Half-Life 2 Beta/Leak versions
наГибатор3000 6 maj @ 4:33 
I don't understand at all how to use this mod.:steamsad:
Ryuzaki 15 apr @ 23:12 
you seem unpleasant at birthday parties.
Liam (Tremor-Watt) 12 apr @ 18:16 
It seems like weapon edits just reset on level transition even when saved as a preset.
Motloop 10 apr @ 1:14 
This addon can not change damage for MWB sweps. So I hope you can fix it.
Fluktat 21 mar @ 16:08 
It works but if I'm using arc9 sweps, it can only change the 1-6 slot and nothing else
hulk gosta de rabo! 17 mar @ 14:33 
no hl2 weapons editor :(
Scientist Vovik 26 feb @ 8:57 
Addon is don't work blyat
Neru 7 feb @ 10:02 
Yeah we save the weapon as preset but once you reload, your presets don't apply