Advertisement
Guest User

Untitled

a guest
Apr 24th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 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.  
  17.  
  18.  
  19.  
  20. function ENT:RunBehaviour(bothurt, ply)
  21.  
  22.     if ply == bothurt then
  23.    
  24.         ply:Kill()
  25.  
  26.  
  27.     end
  28. end
  29. hook.Add("OnInjured","test123", RunBehaviour)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement