MW Base Melee L4D Shove [TFA] [VJ Base]

If you liked this item, please rate it up on Steam Workshop page.

Author: kabyidon

Last revision: 11 Dec, 2022 at 07:14 UTC

File size: 12.29 KB

On Steam Workshop

Description:

If you like this release, check out my Youtube channel:

This mod does two things:

  1. Add the functionality for meleeing with a MW weapon to shove/stagger L4D infected from the VJ Base.
  2. Add a way to bind another key to melee with MW weapons: bind any key you want to "+alt1" in your autoexec.cfg

This will be incompatible with similar mods like (currently hidden) Modern Warfare Base Plus because it will cause a race condition on who can overwrite the method first. Hooks would probably be the best way of fixing it.

Credits:
MW Base Team – MW Base and its default melee behavior system
DrVrej – VJ Base, especially the example M16 weapon
me – banging my head on a keyboard

If any of the persons listed above has concerns or wants Workshop credit, please message me.

For people that know GMod Lua:

This mod works by overriding MW Base’s SWEP:MeleeBehaviourModule function with my own modified version with the same name. The original MW Base used FireBullets, so I rewrote the module to use TakeDamageInfo instead using VJ Base’s L4D M16 as a reference.

Download
Required items:

Click the title to search on this site.


Modern Warfare BaseSteam Workshop
Left 4 Dead Common Infected SNPCsSteam Workshop