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:
This hidden content has been reported as not working 0 times this month.
1 times in total
The link in this hidden content has been reported as down 0 times this month.
3 times in total