Garry's Mod Leaks

defense door

Submitted by AABBCCDDEE, , Thread ID: 192476

AABBCCDDEE
Active Member
Level:
6
Reputation:
5
Posts:
257
Likes:
35
Credits:
1.81K
03-01-2021, 06:37 AM
This post was last modified: 18-05-2021, 07:18 PM by AABBCCDDEE
#1
-- This is for SINGLEPLAYER, for personal use to learn something. don't put it in some swerver --


so basically, this defense door is like ewlite (elitelupus). it's almost exactly like it but with some little changes. i will showcase chu what it looks like:


https://streamable.com/41r8l3


also a blacklist for certain weapons!

blacklist code is in sv:

"--[[

    Defence Door Weapon Blacklist

    Format is ["weapon_class"] = true for any blacklisted weapons.

]]

local blacklist = {

    ["m9k_ragingbull"] = true

}


hook.Add( "EntityTakeDamage", "DefenceDoor.TakeDamage", function( ent, dmginfo )

    if !ent:GetNWBool( "DefenceDoor" ) then return end

if IsValid(dmginfo:GetAttacker():GetActiveWeapon()) and blacklist[dmginfo:GetAttacker():GetActiveWeapon():GetClass()] then return end

if IsValid(dmginfo:GetAttacker()) and dmginfo:GetAttacker():IsPlayer() then
ent:SetHealth( ent:Health() - dmginfo:GetDamage() )
end

if ent:Health() <= 0 then

if IsValid( ent:GetNWEntity( "DefenceDoor.Owner" ) ) then
ent:GetNWEntity( "DefenceDoor.Owner" ):SetNWBool( "DefenceDoor.IsOwner", false )
end

ent:Remove()
end
end )"

stuffy for the defense door:

Content locked
This content has been locked. Please login or register in order to unlock it.
This hidden content has been reported as not working 0 times this month.
1 times in total
lweo was here

RE: defense door

CornKing
Junior Member
Level:
9
Reputation:
0
Posts:
89
Likes:
3
Credits:
311
12-05-2021, 03:17 AM
#2
what kind of HUD is this because I couldn't find it anywhere

RE: defense door

mates22110
Novice
Level:
2
Reputation:
0
Posts:
45
Likes:
0
Credits:
9
12-05-2021, 01:12 PM
#3
Pretty cool addon and also working still

RE: defense door

Typk3n
Member
Level:
7
Reputation:
0
Posts:
146
Likes:
14
Credits:
229
13-05-2021, 05:10 PM
#4
12-05-2021, 01:12 PM
mates22110 Wrote:
Pretty cool addon and also working still

are u sure ? link is down XD
MR. BACKDOOR BUSTER Pepenice

RE: defense door

AABBCCDDEE
Active Member
Level:
6
Reputation:
5
Posts:
257
Likes:
35
Credits:
1.81K
OP
18-05-2021, 07:18 PM
#5
updated the link, pretty pog!
lweo was here

RE: defense door

SoosRaMIREZ
Lurker
Level:
0
Reputation:
0
Posts:
1
Likes:
0
Credits:
1
14-08-2021, 08:06 PM
#6
Dont use this in a server i will copyright strike Ur server i am the legal owner of this addon It was made for Shock Networks

Users browsing this thread: 1 Guest(s)