Skip to content

Instantly share code, notes, and snippets.

@Ethorbit
Last active November 22, 2025 08:55
Show Gist options
  • Select an option

  • Save Ethorbit/88af75daa44eeeea60f28d31939c94f3 to your computer and use it in GitHub Desktop.

Select an option

Save Ethorbit/88af75daa44eeeea60f28d31939c94f3 to your computer and use it in GitHub Desktop.
Code nZombies Rezzurrection copied from nZombies Chronicles without the attribution
================================================================================
⚠️ FOUND 23 INSTANCES OF MISSING ATTRIBUTION
================================================================================
================================================================================
INSTANCE #1
================================================================================
Function: ENT:CreateTrigger
Their version: ENT:CreateTrigger
Similarity: 76.5%
πŸ“ MISSING ATTRIBUTION:
function ENT:CreateTrigger() -- By Ethorbit, Zombies now have triggers that cover their collision bounds so we can do really cool things like force projectiles to collide!
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 356-408
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase_moo.lua
Lines 459-493
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:CreateTrigger() -- By Ethorbit, Zombies now have triggers that cover their collision bounds so we can do really cool things like force projectiles to collide!
if CLIENT then return end
self:RemoveTrigger()
self.CollisionTrigger = ents.Create("nz_trigger")
self.CollisionTrigger:SetPos(self:GetPos())
self.CollisionTrigger:SetParent(self, 0)
-- No idea if this positioning will work for all entities, I know it works with Zombie, Nova Crawler, Panzer and Dogs.
local max = self:OBBMaxs() + (self.ExtraTriggerBounds or Vector(0,0,0))
self.CollisionTrigger:SetLocalPos(Vector(-max[1] / 2, -max[2] / 2, 0))
self.CollisionTrigger:SetMaxBound(max)
self.CollisionTrigger:Spawn()
self.ForcedCollisions = {}
self.CollisionTrigger:ListenToTriggerEvent(function(event, ent)
if event != "Touch" then return end
if ent:IsPlayer() then return end
if ent:IsValidZombie() then return end -- Since zombies can overlap, this causes insane amounts of collision. If you want this, optimize this better first.
-- if self:GetDebugging() then
-- print(CurTime(), event, ent)
-- end
if !self.ForcedCollisions[ent] or CurTime() > self.ForcedCollisions[ent] then
local phys_obj = ent:GetPhysicsObject()
-- Simulate PhysicsCollide if it's defined (So projectiles actually hit us)
if ent.PhysicsCollide then
self.ForcedCollisions[ent] = CurTime() - 0.1
if !IsValid(phys_obj) then
phys_obj = ent
end
local ent_speed = ent:GetVelocity():Length2D()
local ents_dir = (ent:GetPos() - self:GetPos()):GetNormalized()
ent:PhysicsCollide({ -- Simulate PhysicsCollide (This is what most projectiles rely on)
["HitPos"] = ent:GetPos(),
["HitEntity"] = self,
["OurOldVelocity"] = ent:GetVelocity(),
["TheirOldVelocity"] = self:GetVelocity(),
["Speed"] = ent_speed, -- Is this right?
["HitSpeed"] = ent_speed, -- Is this right?
["DeltaTime"] = CurTime(), -- Is this right??
["HitNormal"] = ents_dir
}, phys_obj)
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:CreateTrigger()
if CLIENT then return end
self:RemoveTrigger()
self.CollisionTrigger = ents.Create("nz_trigger")
self.CollisionTrigger:SetPos(self:GetPos())
self.CollisionTrigger:SetAngles(self:GetAngles())
self.CollisionTrigger:SetParent(self, 0)
-- No idea if this positioning will work for all entities, I know it works with Zombie, Nova Crawler, Panzer and Dogs.
--local mini, maxi = self:GetSurroundingBounds()
--local wtl = self:WorldToLocal(maxi) -- Have to make it local to the nextbot, other wise it returns a vector in the world space.
local max = self:OBBMaxs() + (self.ExtraTriggerBounds or Vector(0,0,0))
self.CollisionTrigger:SetLocalPos(Vector(-max[1] / 2, -max[2] / 2, 0))
self.CollisionTrigger:SetMaxBound(max)
self.CollisionTrigger:Spawn()
self.ForcedCollisions = {}
self.CollisionTrigger:ListenToTriggerEvent(function(event, ent)
if event != "Touch" then return end
if ent:IsPlayer() then return end
if !self.ForcedCollisions[ent] or CurTime() > self.ForcedCollisions[ent] then
local phys_obj = ent:GetPhysicsObject()
-- Simulate PhysicsCollide if it's defined (So projectiles actually hit us)
if ent.PhysicsCollide then
self.ForcedCollisions[ent] = CurTime() - 0.1
if !IsValid(phys_obj) then
phys_obj = ent
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #2
================================================================================
Function: ENT:GetTrigger
Their version: ENT:GetTrigger (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
-- Created by Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 422-425
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase_moo.lua
Lines 522-525
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:GetTrigger() -- Created by Ethorbit
if CLIENT then return end
return self.CollisionTrigger
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:GetTrigger()
if CLIENT then return end
return self.CollisionTrigger
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #3
================================================================================
Function: ENT:FleeTarget
Their version: ENT:FleeTarget (SAME BASE NAME)
Similarity: 73.1%
πŸ“ MISSING ATTRIBUTION:
function ENT:FleeTarget(time) -- Added by Ethorbit, instead of pathing TO a player, it paths AWAY from them
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 1389-1407
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase_moo.lua
Lines 4386-4404
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:FleeTarget(time) -- Added by Ethorbit, instead of pathing TO a player, it paths AWAY from them
local target = self:GetTarget()
if !IsValid(target) then return end
local tr = util.TraceLine({
start = self:GetPos() + Vector(0,0,50),
endpos = self:GetFleeDestination(target) + Vector(0,0,50),
filter = self,
collisiongroup = COLLISION_GROUP_DEBRIS
})
if tr.Hit then return end
self:SetFleeing(true)
timer.Create(self:GetClass() .. "FleeingTarget" .. self:EntIndex(), time, 1, function()
if IsValid(self) and self:GetFleeing() then
self:SetFleeing(false)
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:FleeTarget(time) -- instead of pathing TO a player, it paths AWAY from them
local target = self:GetTarget()
if !IsValid(target) then return end
--[[local tr = util_traceline({
start = self:GetPos() + Vector(0,0,50),
endpos = self:GetFleeDestination(target) + Vector(0,0,50),
filter = self,
collisiongroup = COLLISION_GROUP_DEBRIS
})
if tr.Hit then return end]]
self:SetFleeing(true)
timer.Create(self:GetClass() .. "FleeingTarget" .. self:EntIndex(), time, 1, function()
if IsValid(self) and self:GetFleeing() then
self:SetFleeing(false)
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #4
================================================================================
Function: ENT:StopFleeing
Their version: ENT:StopFleeing (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
function ENT:StopFleeing() -- Cancel the fleeing, created by: Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 1411-1414
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase_moo.lua
Lines 4408-4411
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:StopFleeing() -- Cancel the fleeing, created by: Ethorbit
--self:SetLastFlee(CurTime())
self:SetFleeing(false)
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:StopFleeing() -- Cancel the fleeing
--self:SetLastFlee(CurTime())
self:SetFleeing(false)
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #5
================================================================================
Function: ENT:IsAllowedToMove
Their version: ENT:IsAllowedToMove (SAME BASE NAME)
Similarity: 85.1%
πŸ“ MISSING ATTRIBUTION:
function ENT:IsAllowedToMove() -- Added by Ethorbit to help with my new stutter and speed fixes
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 2335-2338
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase_moo.lua
Lines 4957-4960
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:IsAllowedToMove() -- Added by Ethorbit to help with my new stutter and speed fixes
if self:GetTargetUnreachable() then
return false
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:IsAllowedToMove()
if self:GetIsBusy() then
return false
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #6
================================================================================
Function: ENT:IsAllowedToMove
Their version: ENT:IsAllowedToMove (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
function ENT:IsAllowedToMove() -- Added by Ethorbit to help with my new stutter and speed fixes
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 2335-2338
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 946-949
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:IsAllowedToMove() -- Added by Ethorbit to help with my new stutter and speed fixes
if self:GetTargetUnreachable() then
return false
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:IsAllowedToMove()
if self:GetTargetUnreachable() then
return false
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #7
================================================================================
Function: ENT:GetCenterBounds
Their version: ENT:GetCenterBounds (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
function ENT:GetCenterBounds() -- Used for supporting trace functions. Created by: Ethorbit.
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 2448-2455
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase_moo.lua
Lines 5618-5625
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:GetCenterBounds() -- Used for supporting trace functions. Created by: Ethorbit.
local mins = self:OBBMins()
local maxs = self:OBBMaxs()
mins[3] = mins[3] / 2
maxs[3] = maxs[3] / 2
return {["mins"] = mins, ["maxs"] = maxs}
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:GetCenterBounds()
local mins = self:OBBMins()
local maxs = self:OBBMaxs()
mins[3] = mins[3] / 2
maxs[3] = maxs[3] / 2
return {["mins"] = mins, ["maxs"] = maxs}
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #8
================================================================================
Function: ENT:GetCenterBounds
Their version: ENT:GetCenterBounds (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
function ENT:GetCenterBounds() -- Used for supporting trace functions. Created by: Ethorbit.
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 2448-2455
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 1697-1704
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:GetCenterBounds() -- Used for supporting trace functions. Created by: Ethorbit.
local mins = self:OBBMins()
local maxs = self:OBBMaxs()
mins[3] = mins[3] / 2
maxs[3] = maxs[3] / 2
return {["mins"] = mins, ["maxs"] = maxs}
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:GetCenterBounds()
local mins = self:OBBMins()
local maxs = self:OBBMaxs()
mins[3] = mins[3] / 2
maxs[3] = maxs[3] / 2
return {["mins"] = mins, ["maxs"] = maxs}
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #9
================================================================================
Function: ENT:TraceSelf
Their version: ENT:TraceSelf (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
function ENT:TraceSelf(start, endpos, dont_adjust, line_trace) -- Creates a hull trace the size of ourself, handy if you'd want to know if we'd get stuck from a position offset. Created by: Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 2457-2462
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase_moo.lua
Lines 5627-5632
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:TraceSelf(start, endpos, dont_adjust, line_trace) -- Creates a hull trace the size of ourself, handy if you'd want to know if we'd get stuck from a position offset. Created by: Ethorbit
local bounds = self:GetCenterBounds()
if !dont_adjust then
start = start and start + self:OBBCenter() / 1.01 or self:GetPos() + self:OBBCenter() / 2
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:TraceSelf(start, endpos, dont_adjust, line_trace) -- Creates a hull trace the size of ourself, handy if you'd want to know if we'd get stuck from a position offset
local bounds = self:GetCenterBounds()
if !dont_adjust then
start = start and start + self:OBBCenter() / 1.01 or self:GetPos() + self:OBBCenter() / 2
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #10
================================================================================
Function: ENT:TraceSelf
Their version: ENT:TraceSelf (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
function ENT:TraceSelf(start, endpos, dont_adjust, line_trace) -- Creates a hull trace the size of ourself, handy if you'd want to know if we'd get stuck from a position offset. Created by: Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 2457-2462
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 1706-1711
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:TraceSelf(start, endpos, dont_adjust, line_trace) -- Creates a hull trace the size of ourself, handy if you'd want to know if we'd get stuck from a position offset. Created by: Ethorbit
local bounds = self:GetCenterBounds()
if !dont_adjust then
start = start and start + self:OBBCenter() / 1.01 or self:GetPos() + self:OBBCenter() / 2
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:TraceSelf(start, endpos, dont_adjust, line_trace) -- Creates a hull trace the size of ourself, handy if you'd want to know if we'd get stuck from a position offset
local bounds = self:GetCenterBounds()
if !dont_adjust then
start = start and start + self:OBBCenter() / 1.01 or self:GetPos() + self:OBBCenter() / 2
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #11
================================================================================
Function: ENT:Push
Their version: ENT:Push (SAME BASE NAME)
Similarity: 97.6%
πŸ“ MISSING ATTRIBUTION:
function ENT:Push(vec, time) -- Push us towards a vector, created by: Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 2735-2746
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase_moo.lua
Lines 5593-5604
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:Push(vec, time) -- Push us towards a vector, created by: Ethorbit
if CurTime() < self:GetLastPush() + 0.2 or !self:IsOnGround() then return end
self.GettingPushed = true
self.loco:SetVelocity( vec )
self:TimedEvent(time or 0.5, function()
self.GettingPushed = false
end)
self:SetLastPush( CurTime() )
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:Push(vec)
if CurTime() < self:GetLastPush() + 0.2 or !self:IsOnGround() then return end
self.GettingPushed = true
self.loco:SetVelocity( vec )
self:TimedEvent(0.5, function()
self.GettingPushed = false
end)
self:SetLastPush( CurTime() )
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #12
================================================================================
Function: ENT:Push
Their version: ENT:Push (SAME BASE NAME)
Similarity: 97.6%
πŸ“ MISSING ATTRIBUTION:
function ENT:Push(vec, time) -- Push us towards a vector, created by: Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 2735-2746
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 1672-1683
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:Push(vec, time) -- Push us towards a vector, created by: Ethorbit
if CurTime() < self:GetLastPush() + 0.2 or !self:IsOnGround() then return end
self.GettingPushed = true
self.loco:SetVelocity( vec )
self:TimedEvent(time or 0.5, function()
self.GettingPushed = false
end)
self:SetLastPush( CurTime() )
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:Push(vec)
if CurTime() < self:GetLastPush() + 0.2 or !self:IsOnGround() then return end
self.GettingPushed = true
self.loco:SetVelocity( vec )
self:TimedEvent(0.5, function()
self.GettingPushed = false
end)
self:SetLastPush( CurTime() )
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #13
================================================================================
Function: ENT:ApplyRandomPush
Their version: ENT:ApplyRandomPush (SAME BASE NAME)
Similarity: 94.9%
πŸ“ MISSING ATTRIBUTION:
function ENT:ApplyRandomPush( power ) -- Push us in a random direction with the provided amount of force, created by: Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 2748-2755
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase_moo.lua
Lines 5606-5612
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:ApplyRandomPush( power ) -- Push us in a random direction with the provided amount of force, created by: Ethorbit
power = power or 100
if self.loco then
local vec = self.loco:GetVelocity() + VectorRand() * power
vec.z = math.random( 100 )
self:Push(vec)
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:ApplyRandomPush( power )
power = power or 100
local vec = self.loco:GetVelocity() + VectorRand() * power
vec.z = math.random( 100 )
self:Push(vec)
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #14
================================================================================
Function: ENT:ApplyRandomPush
Their version: ENT:ApplyRandomPush (SAME BASE NAME)
Similarity: 94.9%
πŸ“ MISSING ATTRIBUTION:
function ENT:ApplyRandomPush( power ) -- Push us in a random direction with the provided amount of force, created by: Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 2748-2755
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 1685-1691
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:ApplyRandomPush( power ) -- Push us in a random direction with the provided amount of force, created by: Ethorbit
power = power or 100
if self.loco then
local vec = self.loco:GetVelocity() + VectorRand() * power
vec.z = math.random( 100 )
self:Push(vec)
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:ApplyRandomPush( power )
power = power or 100
local vec = self.loco:GetVelocity() + VectorRand() * power
vec.z = math.random( 100 )
self:Push(vec)
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #15
================================================================================
Function: ENT:IsGettingPushed
Their version: ENT:IsGettingPushed (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
function ENT:IsGettingPushed() -- Check if we're :Push'd, created by: Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 2758-2760
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase_moo.lua
Lines 5614-5616
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:IsGettingPushed() -- Check if we're :Push'd, created by: Ethorbit
return self.GettingPushed
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:IsGettingPushed() -- this is a new method
return self.GettingPushed
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #16
================================================================================
Function: ENT:IsGettingPushed
Their version: ENT:IsGettingPushed (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
function ENT:IsGettingPushed() -- Check if we're :Push'd, created by: Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 2758-2760
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/entities/entities/nz_zombiebase.lua
Lines 1693-1695
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function ENT:IsGettingPushed() -- Check if we're :Push'd, created by: Ethorbit
return self.GettingPushed
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function ENT:IsGettingPushed() -- this is a new method
return self.GettingPushed
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #17
================================================================================
Function: nzWeps:GetReplacement
Their version: nzWeps:GetReplacement (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
function nzWeps:GetReplacement(class) -- The weapon that the one provided turns into when PaP'd, created by Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/gamemode/weapons/sh_weps.lua
Lines 67-72
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/gamemode/weapons/sh_weps.lua
Lines 3-8
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function nzWeps:GetReplacement(class) -- The weapon that the one provided turns into when PaP'd, created by Ethorbit
local selectedWep = weapons.Get(class)
local replacement = ""
if istable(selectedWep) then
replacement = selectedWep.NZPaPReplacement
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function nzWeps:GetReplacement(class) -- The weapon that the one provided turns into when PaP'd
local selectedWep = weapons.Get(class)
local replacement = ""
if istable(selectedWep) then
replacement = selectedWep.NZPaPReplacement
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #19
================================================================================
Function: wepMeta:GetReplacement
Their version: wepMeta:GetReplacement (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
function wepMeta:GetReplacement() -- The weapon that the one provided turns into when PaP'd, created by Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/gamemode/weapons/sh_weps.lua
Lines 77-79
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/gamemode/weapons/sh_weps.lua
Lines 13-15
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function wepMeta:GetReplacement() -- The weapon that the one provided turns into when PaP'd, created by Ethorbit
return nzWeps:GetReplacement(self:GetClass())
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function wepMeta:GetReplacement() -- The weapon that the one provided turns into when PaP'd
return nzWeps:GetReplacement(self:GetClass())
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #20
================================================================================
Function: nzWeps:GetAllReplacements
Their version: nzWeps:GetAllReplacements (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
function nzWeps:GetAllReplacements(class) -- All weapons that this one can turn into when PaPing, created by Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/gamemode/weapons/sh_weps.lua
Lines 101-112
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/gamemode/weapons/sh_weps.lua
Lines 17-28
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function nzWeps:GetAllReplacements(class) -- All weapons that this one can turn into when PaPing, created by Ethorbit
local replacements = {}
local newClass = nzWeps:GetReplacement(class)
for i = 1, 100 do -- While loop not needed, but feel free to turn this into one
if !istable(newClass) then break end
local shouldStop = false
for _,v in pairs(replacements) do
if (v.ClassName == newClass.ClassName) then
shouldStop = true
break
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function nzWeps:GetAllReplacements(class) -- All weapons that this one can turn into when PaPing
local replacements = {}
local newClass = nzWeps:GetReplacement(class)
for i = 1, 100 do -- While loop not needed, but feel free to turn this into one
if !istable(newClass) then break end
local shouldStop = false
for _,v in pairs(replacements) do
if (v.ClassName == newClass.ClassName) then
shouldStop = true
break
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #21
================================================================================
Function: wepMeta:GetAllReplacements
Their version: wepMeta:GetAllReplacements (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
function wepMeta:GetAllReplacements() -- All weapons that this one can turn into when PaPing, created by Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/gamemode/weapons/sh_weps.lua
Lines 123-125
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/gamemode/weapons/sh_weps.lua
Lines 39-41
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function wepMeta:GetAllReplacements() -- All weapons that this one can turn into when PaPing, created by Ethorbit
return nzWeps:GetAllReplacements(self:GetClass())
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function wepMeta:GetAllReplacements() -- All weapons that this one can turn into when PaPing
return nzWeps:GetAllReplacements(self:GetClass())
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #22
================================================================================
Function: nzWeps:GetReplaceChild
Their version: nzWeps:GetReplaceChild (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
function nzWeps:GetReplaceChild(class) -- What this weapon was before it was turned into another weapon via PaPing, created by Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/gamemode/weapons/sh_weps.lua
Lines 127-133
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/gamemode/weapons/sh_weps.lua
Lines 43-49
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function nzWeps:GetReplaceChild(class) -- What this weapon was before it was turned into another weapon via PaPing, created by Ethorbit
local replacedBy = nil
for _,v in pairs(weapons.GetList()) do
if (isstring(v.NZPaPReplacement)) then
if (v.NZPaPReplacement == class) then
replacedBy = v
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function nzWeps:GetReplaceChild(class) -- What this weapon was before it was turned into another weapon via PaPing
local replacedBy = nil
for _,v in pairs(weapons.GetList()) do
if (isstring(v.NZPaPReplacement)) then
if (v.NZPaPReplacement == class) then
replacedBy = v
end
----------------------------------------------------------------------------
================================================================================
INSTANCE #23
================================================================================
Function: wepMeta:GetReplaceChild
Their version: wepMeta:GetReplaceChild (SAME BASE NAME)
Similarity: 100.0%
πŸ“ MISSING ATTRIBUTION:
function wepMeta:GetReplaceChild() -- What this weapon was before it was turned into another weapon via PaPing, created by Ethorbit
πŸ“‚ ETHORBIT'S ORIGINAL FILE:
gamemodes/nzombies/gamemode/weapons/sh_weps.lua
Lines 140-142
πŸ“„ nZR's FILE (missing attribution):
gamemodes/nzombies/gamemode/weapons/sh_weps.lua
Lines 56-58
πŸ’» ETHORBIT'S CODE:
----------------------------------------------------------------------------
function wepMeta:GetReplaceChild() -- What this weapon was before it was turned into another weapon via PaPing, created by Ethorbit
return nzWeps:ReplacedBy(self:GetClass())
end
----------------------------------------------------------------------------
πŸ’» nZR CODE (no attribution):
----------------------------------------------------------------------------
function wepMeta:GetReplaceChild() -- What this weapon was before it was turned into another weapon via PaPing
return nzWeps:ReplacedBy(self:GetClass())
end
----------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment