daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Dec 12th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local me=Entity(27) local trace=me:GetEyeTrace() local this,there=trace.Entity,trace.HitPos function firespawn(owner)
  2.     if owner:Team() == TEAM_scp106 then
  3.         local fire = ents.Create("env_fire")
  4.         if not IsValid(fire) then return end
  5.         fire:SetParent(owner)
  6.         fire:SetOwner(owner)
  7.         fire:SetPos(owner:GetPos())
  8.         fire:SetKeyValue("spawnflags", tostring(128 + 32 + 4 + 2 + 1))
  9.         fire:SetKeyValue("firesize", 555)
  10.         fire:SetKeyValue("fireattack", 0)
  11.         fire:SetKeyValue("health", 0)
  12.         fire:SetKeyValue("damagescale", "0")
  13.         fire:Spawn()
  14.         fire:Activate()
  15.     end
  16. end
  17.  
  18. hook.Add("PlayerSpawn", "fireplayer", firespawn)
  19. local a = firespawn(me)
  20.  
  21. function fireremove(owner)
  22.     if IsValid(a) then
  23.         a:Remove()
  24.     end
  25. end
  26.  
  27. hook.Add("PlayerDeath", "removefire", fireremove)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top