Left 4 Dead 2

Left 4 Dead 2

Custom Weapon Lab [Base][Vscript]
kabyidon 31 Oct, 2024 @ 3:51pm
Is it possible to use the base to modify the info (e.g. ammo_clip1) for default weapons?
Hey, first of all great work, amazing addon with a lot of possibilities.
Did a cursory look at the code and it seems possible that many of these functions could be used for being able to modify the info for default weapons in vscript.

For example, if I made a cfg for all the default weapons, using SetRequiredVariables() and SetSavedClipValues() seems like it would be able to change weapon attributes for default weapons as well.

txt scripts (and some sourcemods like Info Editor[forums.alliedmods.net]) are able to do this but being able to do it in vscript would allow these changes to only apply in one mutation. Just wondering how feasible this would be