Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Black Ops 2 - GSC Studio by iMCSx
- *
- * Name : ks_tactical_weaponry_assault
- * Description : Tactical Weaponry Assault
- * Date : 2014/12/03 - 19:04:36
- *
- */
- initTwa()
- {
- if (!level.AwaitingPreviousTwa)
- {
- Location = locationSelector();
- wait 0.3;
- Location1 = locationSelector();
- wait 0.3;
- location2 = locationSelector();
- level.AwaitingPreviousTwa = true;
- level.twaRed = loadFX("misc/fx_equip_tac_insert_light_red");
- loc = getTwaSpawn(Location, 30, twaRed);
- wait 0.3;
- loc1 = getTwaSpawn(Location1, 30, twaRed);
- wait 0.3;
- loc2 = getTwaSpawn(Location2, 30, twaRed);
- wait 0.3;
- wait 30;
- level.AwaitingPreviousTwa = false;
- }
- }
- getTwaSpawn(location, triggerRadius, twaFx)
- {
- twaFx = spawnFx(level.waypointRed, location + (0, 0, 1), (0, 0, 1), (1, 0, 0));
- triggerFx(twaFx);
- for(;;)
- {
- if(Distance(self.origin, location) <= self.triggerRadius)
- {
- forward = self getTagOrigin("j_head");
- end = self thread vector_scal(anglesToForward(self getPlayerAngles()), 1000000);
- Crosshair = bulletTrace(forward, end, 0, self)["position"];
- magicBullet("emp_grenade_mp", forward, Crosshair, self);
- self iPrintln("Spawned TWA");
- }
- wait 0.3;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment