Garry's Mod

Garry's Mod

34 Bewertungen
Ballistic Shields M9K Support
   
Preis verleihen
Favorisieren
Favorisiert
Entfernen
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Roleplay, Realism
Dateigröße
Veröffentlicht
9.554 KB
10. Aug. 2019 um 13:01
1 Änderungshinweis (anzeigen)

Abonnieren zum Herunterladen
Ballistic Shields M9K Support

Beschreibung
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 ENTFERNT}
• 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 Kommentare
Slithersy  [Autor] 20. Dez. 2020 um 10:02 
It's not in a tab... It's a modification to a gmodstore addon
Kriegsman 20. Dez. 2020 um 6:04 
which tab is it in
shey 18. Aug. 2019 um 14:23 
pp
Slithersy  [Autor] 11. Aug. 2019 um 15:59 
If you like this modification don't forget to upvote! :AJPlay: