Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Black Ops 2 - GSC Studio by iMCSx
- *
- * Name : ks_ebola_bomb
- * Description : Ebola Bomb!
- * Date : 2014/12/02 - 21:09:18
- *
- */
- callEbolaBomb()
- {
- if(!level.awaitingEbolaBomb)
- {
- self drawText("Ebola Bomb incomming!", "objective", 1.0, 0, -50, (1, 1, 1), 0, (0, 0, 0), 0, 8, false);
- level.awaitingEbolaBomb = true;
- wait 10;
- thread ebolaThink();
- }else
- {
- self drawText("Ebola Bomb already called in!", "objective", 1.0, 0, -50, (1, 1, 1), 0, (0, 0, 0), 0, 8, false);
- }
- }
- ebolaThink()
- {
- level endon("game_ended");
- if(!isDefined(owner))
- return;
- EbolaBomb = spawnEbolaBomb(owner, self.origin + (5, 10, 5));
- EbolaBomb thread ebolaKill();
- EbolaBomb MoveTo(ebolaBomb.origin - (0, 9, 0), 1);
- setDvar(timescale, 0.5);
- wait 0.3;
- self notify("EbolaInjected");
- EbolaBomb delete();
- }
- ebolaKill()
- {
- self endon("EbolaInjected");
- for(i = 0; i < level.players.size; i++)
- {
- level.players[i] thread [[level.callbackPlayerDamage]]( self, self, 2147483600, 8, "MOD_SUICIDE", self getCurrentWeapon(), (0,0,0), (0,0,0), "pelvis", 0, 0 );
- }
- }
- spawnEbolaBomb(owner, origin)
- {
- Team = owner.pers["team"];
- self.ebolaBomb = spawnEntity("t6_wpn_motion_sensor_world_detect", self.origin + (5, 10, 5));
- ebolaBomb.team = Team;
- ebolaBomb.pers["team"] = Team;
- ebolaBomb.owner = owner;
- ebolaBomb.killCamEnt = ebolaBomb;
- return ebolaBomb;
- }
Advertisement
Add Comment
Please, Sign In to add comment