Garry's Mod

Garry's Mod

245 ratings
MW Base Melee L4D Shove [TFA] [VJ Base]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Movie, Realism
File Size
Posted
Updated
12.618 KB
20 Nov, 2022 @ 6:13pm
10 Dec, 2022 @ 11:14pm
4 Change Notes ( view )

Subscribe to download
MW Base Melee L4D Shove [TFA] [VJ Base]

In 1 collection by kabyidon
Green Flu - L4D Playground
23 items
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.
28 Comments
tom 18 Dec, 2024 @ 3:28pm 
1
dirtydemps 4 Nov, 2024 @ 5:04am 
but how do i even shove
PORTABLE FRIDGE 11 Oct, 2024 @ 10:10am 
pls make this works with ARC9 or ARCCW
heritage.1 6 Oct, 2024 @ 2:26am 
or is the shove compatible with any other entity like how bsmod does it?
heritage.1 6 Oct, 2024 @ 2:25am 
does this only work with l4d zombies?
Rizz Monkey 13 Sep, 2024 @ 6:06pm 
please update
lvl 100 crime lord 9 Sep, 2024 @ 5:49pm 
PLS update this
Bobby 5 Aug, 2024 @ 3:50am 
How do i use this???
ndhart321 11 Feb, 2024 @ 5:23pm 
please do this with arccw/arc9
apionne 18 Jan, 2024 @ 12:03am 
when is this gonna get updated it doesnt wanna do the shove when i melee