Im_YouViolateMe

Spawn Dog Actor

Jun 11th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.19 KB | None | 0 0
  1. #include maps/mp/killstreaks/_dogs;
  2.  
  3. //to spawn a dog you would do:
  4. //dog = spawndog(owner, team, position, angles, 1, model);
  5.  
  6. spawndog( owner, team, position, angles, requireddeathcount, model )
  7. {
  8.     dog_spawner = getent( "dog_spawner", "targetname" );
  9.     dog = dog_spawner spawnactor();
  10.     dog forceteleport( position, angles );
  11.     dog initdog();
  12.     dog dog_set_owner( owner, team, requireddeathcount );
  13.     dog setModel(model);
  14.     //dog dog_create_spawn_influencer();
  15.     //dog thread dog_owner_kills();
  16.     //dog thread dog_notify_level_on_death();
  17.     //dog thread dog_patrol();
  18.     //dog thread maps\mp\gametypes\_weapons::monitor_dog_special_grenades();
  19.     return dog;
  20. }
  21.  
  22. initdog()
  23. {
  24.     self.targetname = "attack_dog";
  25.     self.animtree = "dog.atr";
  26.     self.type = "dog";
  27.     self.accuracy = 0.2;
  28.     self.health = 100;
  29.     self.maxhealth = 100;
  30.     self.aiweapon = "dog_bite_mp";
  31.     self.secondaryweapon = "";
  32.     self.sidearm = "";
  33.     self.grenadeammo = 0;
  34.     self.goalradius = 128;
  35.     self.nododgemove = 1;
  36.     self.ignoresuppression = 1;
  37.     self.suppressionthreshold = 1;
  38.     self.disablearrivals = 0;
  39.     self.pathenemyfightdist = 512;
  40.     self.soundmod = "dog";
  41.     self thread dog_health_regen();
  42.     //self thread selfdefensechallenge();
  43. }
Advertisement
Add Comment
Please, Sign In to add comment