Garry's Mod

Garry's Mod

34 ratings
Ballistic Shields M9K Support
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Roleplay, Realism
File Size
Posted
9.554 KB
10 Aug, 2019 @ 1:01pm
1 Change Note ( view )

Subscribe to download
Ballistic Shields M9K Support

Description
This is M9K support for the following addon:
https://www.gmodstore.com/market/view/ballistic-shields


How to Install:

Way 1:
• Download & Extract the addon using {LINK REMOVED}
• Put it in your server's addons folder

Way 2 (UnTested):
• WorkShop DL the addon


HELP IT DOESN'T WORK1!!!:
• If your server is not running on Windows that could be one of the issues, yet this could be only one of the reasons.
• Try the other way of what you did above in "How to install"
• Rename your M9K files to something in the alphabetic order greater than this addon's name, for example:
If you after extraction you've named this addon "A", M9K addons would have to start with "B" or "C" and on and on..


For Developers:
The way this works is by overriding M9K addons in the classic alphabetic order that Windows uses, as in Garry's Mod, if addon A and addon B have the same name in lua files, addon A would be the one which is used.


I simply add a check for the class of the entity (Change it to :GetModel() if you're looking for models) and if it is NOT the entity then it'll do damage, this is basically what it does. (I know tables could've been better but don't bully me please)
bullet.Callback = function(attacker, tracedata, dmginfo) local entm = tracedata.Entity:GetClass() if entm != "bs_shield" and entm != "bs_hshield" and entm != "bs_rshield" and entm != "bs_dshield" then return self:RicochetCallback(0, attacker, tracedata, dmginfo) end end

If you want to change the entities to support other addons simply adjust the stuff in quotation marks, if you want it to be a model change local entm = tracedata.Entity:GetClass() to local entm = tracedata.Entity:GetModel() and do as I said above.
4 Comments
Slithersy  [author] 20 Dec, 2020 @ 10:02am 
It's not in a tab... It's a modification to a gmodstore addon
Kriegsman 20 Dec, 2020 @ 6:04am 
which tab is it in
shey 18 Aug, 2019 @ 2:23pm 
pp
Slithersy  [author] 11 Aug, 2019 @ 3:59pm 
If you like this modification don't forget to upvote! :AJPlay: