(adsbygoogle = window.adsbygoogle || []).push({});
This is the mini game I made. Mr Trotter said he liked it so give it a go
Its really just TheUnkn0wns AvP with some of my own stuff put in, so major credit to him really..
The Ninjas are quick but not very strong.
They have unlimited throwing knives and hand knives.
If you press R3 the ninjas can disappear for 3 secs in a puff of smoke to evade the terminators.
The terminators are very strong and armed with ac130 _25mm and 40mm guns, unlimited grenades and they have nightvision but they are slow...
It takes about 4 or 5 hits to kill a terminator but only 1 to kill a ninja ...
And anyone that camps will self suicide !
Sorry if theres a lot of code but it was all built into my patch, I'm sure it could be shortened if you could be bothered..
Heres a link to my patch with it in if you can't be arsed to do it yourself
You must login or register to view this content.
Instructions:
Start a game of Search and Destroy and then select the game from the menu, it will then start the game.
Init
self.PickedNight = 0;
if (getDvar("NvT") == "1") {
level.NvT = 1;
} else {
level.NvT = 0;
} if (self.PickedNight == 0) {
self _SetActionSlot(3, "");
} else if (self.PickedNight == 1) {
self _SetActionSlot(3, "nightvision");
}
onPlayerSpawned
if (level.NvT) self thread NvT();
Call this from your menu to start. (Select it again to turn the game off)
NIN() {
if (getDvar("NvT") == "1") {
setDvar("NvT", "0");
self iPrintln("^4NvT : Disabled");
setDvar("cg_gun_z", 0);
} else {
setDvar("NvT", "1");
self iPrintlnBold("^4NvT : Enabled - Reloading Map");
wait 4;
map_restart();
}
}
Needed Functions
NvT() {
self endon("disconnect");
self endon("death");
self thread maps\mp\gametypes\_class::setKillstreaks("none", "none", "none");
for (i = 0; i < level.bombZones.size; i++) level.bombZones maps\mp\gametypes\_gameobjects::disableObject();
level.sdBomb maps\mp\gametypes\_gameobjects::disableObject();
setObjectiveHintText(game["attackers"], "");
setObjectiveHintText(game["defenders"], "");
doDvar("cg_gun_z", 100);
self.doOnce = 0;
for (;; ) {
if (self.pers["team"] == game["attackers"]) {
if (!self.doOnce) {
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Ninjas Kill The Terminators ");
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Press [{+breath_sprint}] To Go Invisible For 3 Seconds");
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Camping Ninjas Will Be Killed!");
self maps\mp\perks\_perks::givePerk("specialty_marathon");
CAp(0, 1);
self freezeControlsWrapper(false);
self maps\mp\perks\_perks::givePerk("specialty_quieter");
self maps\mp\perks\_perks::givePerk("specialty_extendedmelee");
self maps\mp\perks\_perks::givePerk("specialty_falldamage");
self takeAllWeapons();
self _clearPerks();
self allowADS(0);
NWep = "usp_tactical_mp";
self.moveSpeedScaler = 2;
self allowSprint(false);
self setMoveSpeedScale(self.moveSpeedScaler);
wait 0.2;
self _giveWeapon(NWep);
self switchToWeapon(NWep);
}
self maps\mp\perks\_perks::givePerk("throwingknife_mp");
self VisionSetNakedForPlayer("cobra_sunset3", 0);
self thread SD();
self thread KTC();
self thread GM();
} else if (self.pers["team"] == game["defenders"]) {
if (!self.doOnce) {
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Terminator- Kill The Ninjas");
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Press [{+actionslot 3}] To Toggle NightVision");
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Keep Moving Or You Will Die");
self.PickedNight = 1;
self maps\mp\perks\_perks::givePerk("specialty_explosivebullets");
CAp(6, 1);
self freezeControlsWrapper(false);
self maps\mp\perks\_perks::givePerk("specialty_bulletdamage");
self maps\mp\perks\_perks::givePerk("specialty_falldamage");
self.maxhealth = 500;
self.health = self.maxhealth;
self player_recoilScaleOn(0);
self allowSprint(false);
self takeAllWeapons();
self _clearPerks();
TWep = "ac130_40mm_mp";
TWep2 = "ac130_25mm_mp";
self.moveSpeedScaler = 0.5;
self setMoveSpeedScale(self.moveSpeedScaler);
wait 0.2;
self _giveWeapon(TWep);
self _giveWeapon(TWep2);
self switchToWeapon(TWep);
}
self maps\mp\perks\_perks::givePerk("frag_grenade_mp");
self VisionSetNakedForPlayer("cheat_bw_invert_contrast", 0);
self thread KTC();
}
wait 0.2;
if (!self.doOnce) {
self.doOnce = 1;
}
}
}
KTC() {
self endon("disconnect");
self endon("death");
for (;; ) {
P = self createFontString("hudbig", 1);
P setPoint("CENTER", "CENTER", 0, -20);
pos1 = self getorigin();
wait 20;
pos2 = self getorigin();
if ((distance(pos1, pos2) < 5)) {
P setText("^1Sorry, No Camping!");
PlayRumbleOnPosition("grenade_rumble", self.Origin);
self playSound("mp_bomb_plant");
wait 5;
P destroy();
wait 0.5;
self suicide();
}
}
}
SD() {
self endon("disconnect");
self notifyOnPlayerCommand("U", "+breath_sprint");
for (;; ) {
self waittill("U");
level.fx[0] = loadfx("explosions/artilleryExp_dirt_brown");
foreach(fx in level.fx) playfx(fx, self gettagorigin("j_spine4"));
wait 0.2;
self Hide();
wait 2;
self Show();
wait 10;
}
}
GM() {
self endon("disconnect");
self endon("death");
self.maxhealth = 500;
self.health = 500;
while (1) {
if (self.health < 450) self.health = self.maxhealth;
wait.4;
}
}
doDvar(var, val) {
self setClientDvar(var, val);
}
CAp(Type, MyTeam) {
ModelType = [];
ModelType[0] = "GHILLIE";
ModelType[1] = "SNIPER";
ModelType[2] = "LMG";
ModelType[3] = "ASSAULT";
ModelType[4] = "SHOTGUN";
ModelType[5] = "SMG";
ModelType[6] = "RIOT";
if (Type == 7) {
MyTeam = randomint(2);
Type = randomint(7);
}
team = get_enemy_team(self.team);
if (MyTeam) team = self.team;
self detachAll();
[
[game[team + "_model"][ModelType[Type]]]
]();
}