if SERVER then self:SetMoveType(MOVETYPE_STEP) self:SetSolid(SOLID_BBOX) self:SetHealth(100)
-- Optional: push the player a little local push = (self.CurrentTarget:GetPos() - self:GetPos()):GetNormalized() * 200 self.CurrentTarget:SetVelocity(push) end Nico-s Nextbots Script
-- Make sure the physics hull is appropriate for the model self:SetHullSizeNormal() self:SetCollisionBounds(Vector(-16, -16, 0), Vector(16, 16, 72)) Nico-s Nextbots Script
-- ----------------------------------------------------------------- -- Helper: Find the nearest viable player -- ----------------------------------------------------------------- function ENT:FindClosestPlayer() local nearest = nil local nearestDist = CONFIG.ChaseRadius Nico-s Nextbots Script
coroutine.yield() end end
-- ========================================================= -- BASIC NEXTBOT SETUP -- ========================================================= AddCSLuaFile() -- make the file sent to clients (for the model & sounds)