Garry's Mod
34 ψήφοι
Ballistic Shields M9K Support
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Roleplay, Realism
Μέγεθος αρχείου
Αναρτήθηκε
9.554 KB
10 Αυγ 2019, 13:01
1 σημείωση αλλαγών ( προβολή )

Συνδρομή για λήψη
Ballistic Shields M9K Support

ΠΕΡΙΓΡΑΦΗ
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 {Ο ΣΥΝΔΕΣΜΟΣ ΑΦΑΙΡΕΘΗΚΕ}
• 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 σχόλια
Slithersy  [Δημιουργός] 20 Δεκ 2020, 10:02 
It's not in a tab... It's a modification to a gmodstore addon
Kriegsman 20 Δεκ 2020, 6:04 
which tab is it in
shey 18 Αυγ 2019, 14:23 
pp
Slithersy  [Δημιουργός] 11 Αυγ 2019, 15:59 
If you like this modification don't forget to upvote! :AJPlay: