Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MPASM 1.27 KB | None | 0 0
  1. function SpawnGangBoss()
  2.     local gangbosspos
  3.     local gangbossang
  4.     if game.GetMap() == "gm_flatgrass" then
  5.         gangbosspos = Vector(800,-483,30)
  6.         gangbossang = Angle(0,90,0)
  7.     elseif game.GetMap() == "rp_evocity_v2d" then
  8.         gangbosspos = Vector(-5201,-9450,71.9891)
  9.         gangbossang = Angle(0,90,0)
  10.     elseif game.GetMap() == "rp_evocity2_v2p" then
  11.         gangbosspos = Vector(1275.187500,993.562500,100)
  12.         gangbossang = Angle(0,180,0)
  13.     elseif game.GetMap() == "rp_townsend_v1p" then
  14.         gangbosspos = Vector(-14022.656250,2435,30)
  15.         gangbossang = Angle(0,90,0)
  16.     elseif game.GetMap() == "rp_cosmoscity_v1b" then
  17.         gangbosspos = Vector(-7181.723633,-5728.483887,64.031250)
  18.         gangbossang = Angle(0,-90,0)
  19.     elseif game.GetMap() == "rp_downtown_v2" then
  20.         gangbosspos = Vector(-1519.039917,-49.045139,-131.968750)
  21.         gangbossang = Angle(0,-90,0)
  22.     end    
  23.     if gangbosspos == nil then return end      
  24.     gangbossman = ents.Create("npc_generic")
  25.     gangbossman:SetNPCName("Gang Boss")
  26.     gangbossman:SetNWString("NPCName","Gang Boss")
  27.     gangbossman:SetModel("models/Humans/Group01/male_09.mdl")
  28.     gangbossman:SetPos(gangbosspos)
  29.     gangbossman:SetAngles(gangbossang)
  30.     gangbossman:Spawn()
  31.     gangbossman:DropToFloor()
  32.     gangbossman:EnableChat()
  33. end
  34. hook.Add("InitPostEntity","Spawngangbossman",Spawngangbossman)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement