Advertisement
Guest User

Untitled

a guest
Feb 25th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. spawnSaw()
  2. {  
  3.     if(isSubstr(GetDvar("ui_mapname"),"overgrown")||isSubStr(GetDvar("ui_mapname"),"backlot"))
  4.     {
  5.         turret=spawnTurret("misc_turret",self.origin+(0,0,50),"saw_bipod_crouch_mp");
  6.         turret setmodel("weapon_saw_mg_setup");
  7.         turret.angles = self.angles;
  8.         turret.weaponinfo = "saw_bipod_crouch_mp";
  9.         turret setleftarc( 70 );
  10.         turret setrightarc( 70 );
  11.         turret settoparc( 45 );
  12.         turret setbottomarc( 45 );
  13.         self iPrintln("Turret Spawned");
  14.     }
  15.     else
  16.     {
  17.         self iPrintln("Turret can only be spawned on Backlot or Overgrown");
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement