Garry's Mod

Garry's Mod

34 rating
Ballistic Shields M9K Support
   
Penghargaan
Favorit
Difavoritkan
Batalkan favorit
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Roleplay, Realism
Ukuran File
Diposting
9.554 KB
10 Agu 2019 @ 1:01pm
1 Catatan Perubahan ( lihat )

Berlangganan untuk mengunduh
Ballistic Shields M9K Support

Deskripsi
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 Komentar
Slithersy  [pembuat] 20 Des 2020 @ 10:02am 
It's not in a tab... It's a modification to a gmodstore addon
Kriegsman 20 Des 2020 @ 6:04am 
which tab is it in
shey 18 Agu 2019 @ 2:23pm 
pp
Slithersy  [pembuat] 11 Agu 2019 @ 3:59pm 
If you like this modification don't forget to upvote! :AJPlay: