if SERVER then self:SetMoveType(MOVETYPE_STEP) self:SetSolid(SOLID_BBOX) self:SetHealth(100)
-- ----------------------------------------------------------------- -- Called once when the entity is spawned (server side) -- ----------------------------------------------------------------- function ENT:Initialize() -- Model & physics self:SetModel(CONFIG.Model) self:SetHealth(100) self:SetCollisionGroup(COLLISION_GROUP_NPC) Nico-s Nextbots Script
| Variable | What it does | Typical values | |----------|--------------|----------------| | Model | The visual model the bot uses. | "models/props_junk/watermelon01.mdl" (placeholder) – replace with any model ( models/player/combine_soldier.mdl , etc.). | | Speed | Walk speed in units / second. | 150‑250 for a “normal” speed; 300+ for a sprinty creature. | | Acceleration | How fast the bot reaches Speed . | 400‑800 works well. | | TurnRate | How quickly the bot can change direction. | 6‑12 (higher = snappier turning). | | ChaseRadius / LoseRadius | Distances that trigger/start or stop a chase. | 2000‑4000 (adjust for map size). | | AttackDistance | How close the bot must be to “catch” a player. | 40‑80 units (roughly arm’s reach). | | AttackCooldown | Seconds between consecutive attacks. | 1‑3 seconds. | | ScreamSound / FootstepSound | Path to .wav/.mp3 files inside sound/ . | Use any sound you own or have permission for. | | 150‑250 for a “normal” speed; 300+ for
-- Optional: push the player a little local push = (self.CurrentTarget:GetPos() - self:GetPos()):GetNormalized() * 200 self.CurrentTarget:SetVelocity(push) end | | TurnRate | How quickly the bot can change direction