Advertisement
Guest User

Untitled

a guest
Apr 24th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. AddCSLuaFile()
  2.  
  3. ENT.Base            = "base_nextbot"
  4. ENT.Spawnable       = true
  5.  
  6. function ENT:Initialize()
  7.  
  8.     self:SetModel( "models/hunter.mdl" )
  9.  
  10.     self.LoseTargetDist = 2000  -- How far the enemy has to be before we lose them
  11.     self.SearchRadius   = 1000  -- How far to search for enemies
  12.  
  13. end
  14.  
  15.  
  16. function ENT:OnInjured( injinfo )
  17.  
  18.     injinfo:GetAttacker() then
  19.         print("I've hurt a bot.")
  20.  
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement