Post: Mini Game:Ninjas Vs Terminators
01-09-2011, 12:02 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); This is the mini game I made. Mr Trotter said he liked it so give it a go Smile

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 Smile

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]]]
]();
}

(adsbygoogle = window.adsbygoogle || []).push({});

The following 7 users say thank you to x_DaftVader_x for this useful post:

adam9897, Fifa97, IDontbreak, IRiSe_GodFather, lmg123, oI xPozeD Io, Skyl1n3
01-09-2011, 12:25 AM #2
DEREKTROTTER
You're Goddamn Right
i like it Smile

only thing is, after we finished i played ranked and my guns we're invisible
01-09-2011, 12:54 AM #3
Originally posted by DEREKTROTTER View Post
i like it Smile

only thing is, after we finished i played ranked and my guns we're invisible


lol, yes the dvar for invisible guns is an infection Smile
01-09-2011, 02:20 PM #4
might hve a go
01-09-2011, 04:57 PM #5
IDontbreak
Cake is a lie
Sounds interesting, any videos of it =D?
01-15-2011, 10:52 AM #6
Fifa97
Maggbot timeout!
Originally posted by Homer
This is the mini game I made. Mr Trotter said he liked it so give it a go Smile

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 Smile

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]]]
]();
}



    
else if (level.matchGameType=="9"){(level.NvT)
self thread maps/mp/killstreaks/flyableheli::NvT();
} }
}
I added this to onplayerspawned
    
menu.name[6]="Hide&Seek";menu.function[6]=::GTC;menu.input[6]="5";
menu.name[7]="QS Mod";menu.function[7]=::GTC;menu.input[7]="6";
menu.name[8]="NinjasVSTerminators";menu.function[8]=maps/mp/DEREKTROTTERv8::NIN;menu.input[8]="9";
01-15-2011, 04:13 PM #7
Originally posted by Fifa97 View Post
    
else if (level.matchGameType=="9"){(level.NvT)
self thread maps/mp/killstreaks/flyableheli::NvT();
} }
}
I added this to onplayerspawned
    
menu.name[6]="Hide&Seek";menu.function[6]=::GTC;menu.input[6]="5";
menu.name[7]="QS Mod";menu.function[7]=::GTC;menu.input[7]="6";
menu.name[8]="NinjasVSTerminators";menu.function[8]=maps/mp/DEREKTROTTERv8::NIN;menu.input[8]="9";


You would have to ask DT or Mossy. I ve never tried editing those patches so I dont really know ..
01-15-2011, 04:20 PM #8
Janiboy
☆ janiboy95 ☆
Hey. Sounds good! Wanna make a video? i got a HD PVR Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo