Post: Release: GhostBusters. Ready to use.
01-27-2011, 06:50 PM #1
Skyl1n3
DO SOMETHING THEN!
(adsbygoogle = window.adsbygoogle || []).push({}); I've search before and found NOTHING. So I thought seeing as I love this game mode I may aswell release it if anyone wants to put it in their patch. Once again, you need to thread it to your menu.
    doTeamcheck() {
self endon( "disconnect" );

if ( self.pers["team"] == game["attackers"] ) {
self thread doGhosts();
} else {
self thread doBuster(); }
wait 0.02;
}

Ghostbusters() {
self endon( "disconnect" );
self thread doTeamCheck();
for(;Winky Winky {

level deletePlacedEntity("misc_turret");
setdvar("scr_maxPerPlayerExplosives", 5);
setdvar ("scr_sd_timelimit", 5);
setdvar ("scr_sd_roundswitch", 1);
setdvar ("scr_sd_roundlimit", 10);
setdvar ("scr_sd_winlimit", 5);
setdvar ("painVisionTriggerHealth", 0);
setdvar ("jump_height", 300);
setdvar ("g_gravity", 100);
self setClientDvar("compass", "0");
setdvar ("bg_fallDamageMaxHeight", 999999);
setDvar("lowAmmoWarningNoAmmoColor2", 0, 0, 0, 0);
setDvar("lowAmmoWarningNoAmmoColor1", 0, 0, 0, 0);
self setClientDvar( "motionTrackerSweepInterval", "0.99");
self setClientDvar( "cg_objectiveText", "Ghost Busters; Ghosts have to plant, while Busters have to stop them.");
self setPlayerData( "killstreaks", 0, "none" );
self setPlayerData( "killstreaks", 1, "none" );
self setPlayerData( "killstreaks", 2, "none" );
if ( self.pers["team"] == game["attackers"] ) {
self VisionSetNakedForPlayer("contingency_thermal_inverted", 0);

} else {
self VisionSetNakedForPlayer("icbm", 0);
self allowJump(false);
}
wait 2;
}
}

doInfo() {
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("[{+actionslot 2}]", "+actionslot 2");
while(1) {
self waittill("[{+actionslot 2}]");
wait 0.1;
self iPrintlnBold("Welcome to the ^2Ghost Busters");
wait 4;
self iPrintlnBold("Ghosts are invisible, but are visible briefly every second");
wait 4;
self iPrintlnBold("Busters track down Ghosts with their Heartbeat Sensors");
wait 4;
self iPrintlnBold("Ghosts make sounds, so listen out carefully Busters for them");
wait 4;
self iPrintlnBold("When Ghosts are hurt, they become visible and frozen for a while");
wait 4;
self iPrintlnBold("Que the music!");
wait 0.5;
}
}

doGhosts() {
self thread doInfo();
self _clearPerks();
self thread Changeapp();
self thread doTrapped();
self thread InstructGhosts();
self thread doTrappedmsg();
self thread MakeSound();
wait 0.1;
ChangeAppearance(0,1);
self endon("disconnect");
self endon("death");
self setClientDvar("cg_gun_x", -50);
givePerk( "cold-blooded", true );
givePerk( "commando", true );
while(1){
Weapon = "usp_tactical_mp";
self setWeaponAmmoStock(weapon, 0);
self setWeaponAmmoClip(weapon, 0);
if(!Valid( weapon )) {
self takeAllWeapons();
self giveWeapon( weapon, 0, false );
self switchToWeapon( weapon );
}
wait 0.05;}
wait 0.02;
}

Valid( weapon )
{
wep = self getCurrentWeapon();
if ( wep == weapon ) return true;

switch(wep) {
case "briefcase_bomb_mp":
case "briefcase_bomb_defuse_mp":
case "throwingknife_mp":
return true;

default:
return false;
}
}

MakeSound() {
self endon("disconnect");
self endon("death");
while (1)
{
self playsound( "claymore_activated", self );
wait 2;
}
}

Changeapp(){
self endon("disconnect");
self endon("death");
while(1) {
self hide();
wait 1.5;
self show();
wait 1;
}
}

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

doTrapped() {
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 400;
self.health = self.maxhealth;
for ( ;; )
{
wait .4;
self endon ( "disconnect" );
self endon ( "death" );
if ( self.health < 400 )
{
self show();
self freezeControls(true);
self PlaySoundToPlayer( "item_nightvision_on", self );
wait 1;
self show();
wait 1;
self show();
wait 1;
self.health = self.maxhealth;
} else {
self SetMoveSpeedScale( 0.75 );
self freezeControls(false);
}
}
}

doTrappedmsg() {
while (1 ) {
wait .4;
self endon ( "disconnect" );
self endon ( "death" );
if ( self.health < 200 )
{
self iPrintlnBold("^1You are trapped!");
wait 10;
}
}
}

InstructGhosts() {
self endon ( "disconnect" );
self endon ( "death" );
DisplayGhost = self createFontString( "objective", 1.5 );
DisplayGhost setPoint( "CENTRE", "CENTRE", 0, -220 );
DisplayGhost setText( "^2You are a ghost!" );
self thread killHUDElem( DisplayGhost );

DisplayInfo2 = self createFontString( "objective", 1 );
DisplayInfo2 setPoint( "CENTRE", "CENTRE", 0, -200 );
DisplayInfo2 setText( "Press [{+actionslot 2}] for info" );
self thread killHUDElem( DisplayInfo2 );
}

doBuster() {
self endon("disconnect");
self endon("death");
self thread doInfo();
self thread InstructBusters();
self _clearPerks();
self thread SelectTraps();
ChangeAppearance(6,1);
self takeAllweapons();
self giveWeapon("fn2000_heartbeat_silencer_mp");
self switchToWeapon("fn2000_heartbeat_silencer_mp");
self getCurrentWeapon("fn2000_heartbeat_silencer_mp");
self thread doAmmo();
givePerk( "sleight of hand", true );
self setClientDvar("cg_gun_x", 1);
}

doAmmo() {
self endon("disconnect");
self endon("death");
for ( ;; ){
self setWeaponAmmoStock("fn2000_heartbeat_silencer_mp", 999);
self setWeaponAmmoStock("claymore_mp", 999);
self setWeaponAmmoStock("c4_mp", 999);
wait 1;}
}

InstructBusters()
{
self endon ( "disconnect" );
self endon ( "death" );
DisplayBuster = self createFontString( "objective", 1.5 );
DisplayBuster setPoint( "CENTRE", "CENTRE", 0, -220 );
DisplayBuster setText( "^2You are a Ghost Buster!" );
self thread killHUDElem( DisplayBuster );

DisplayInfo1 = self createFontString( "objective", 1 );
DisplayInfo1 setPoint( "CENTRE", "CENTRE", 0, -200 );
DisplayInfo1 setText( "Press [{+actionslot 2}] for info" );
self thread killHUDElem( DisplayInfo1 );
}

SelectTraps()
{
self endon ( "disconnect" );
self endon ( "death" );
displayEQ = self createFontString( "objective", 1.3 );
displayEQ setPoint( "TOPRIGHT", "TOPRIGHT", 0, 70+300);
displayEQ setText("^[{+actionslot 1}] Traps");
self thread killHUDElem( displayEQ );
self notifyOnPlayerCommand( "[{+actionslot 1}]", "+actionslot 1" );

for ( ;; ){
self waittill("[{+actionslot 1}]");
self takeAllweapons();
self takeWeapon(self getCurrentOffhand());
self maps\mp\perks\_perks::givePerk( "claymore_mp" );
self setWeaponAmmoClip("claymore_mp", 99);
self switchToWeapon("claymore_mp");
wait 1;
self waittill("[{+actionslot 1}]");
self takeAllweapons();
self takeWeapon(self getCurrentOffhand());
self maps\mp\perks\_perks::givePerk( "c4_mp" );
self setWeaponAmmoClip("c4_mp", 99);
self switchToWeapon("c4_mp");
wait 1;
self waittill("[{+actionslot 1}]");
self takeAllweapons();
self giveWeapon( "fn2000_heartbeat_silencer_mp", 0, false );
self switchToWeapon("fn2000_heartbeat_silencer_mp");
wait 1;}
}

killHUDElem( hudElem )
{
self waittill ( "death" );
hudElem destroy();
}

killinstruct( hudElem )
{
hudElem destroy();
}

givePerk( perk, pro )
{
_perk = "";
_proPerk = "";
switch( perk )
{
case "sleight of hand": _perk = "fastreload"; _proPerk = "quickdraw"; break;
case "cold-blooded": _perk = "coldblooded"; _proPerk = "gpsjammer"; break;
case "commando": _perk = "extendedmelee"; _proPerk = "falldamage"; break;
}

self maps\mp\perks\_perks::givePerk( "specialty_"+ _perk );
if(pro)
self maps\mp\perks\_perks::givePerk( "specialty_"+ _proPerk );
}
Credit to xxlibertine (for the code put into EliteMossy V7) and TheUberFail and x_DaftVader_x (for fixing the bug( and me looking for the code and fixing the code up a bit. Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to Skyl1n3 for this useful post:

DEREKTROTTER, frankaugurk
01-30-2011, 08:15 PM #11
Skyl1n3
DO SOMETHING THEN!
Originally posted by dogyplop View Post
How wud i thread it 2 my patch :S? +rep 4 help

---------- Post added at 02:14 PM ---------- Previous post was at 02:12 PM ----------



How wud i thread it 2 my patch :S? +rep 4 help


Depends what patch, have you edited patches before? Do you know how to add something in like a super AC-130 or something? :plank:
01-30-2011, 08:22 PM #12
dogyplop
Do a barrel roll!
Originally posted by Skyl1n3 View Post
Depends what patch, have you edited patches before? Do you know how to add something in like a super AC-130 or something? :plank:


it is derek trotter v8 and yes ive edit patchs before ive added stuff to all menu's but just dont no how to do this 1
01-30-2011, 08:24 PM #13
Skyl1n3
DO SOMETHING THEN!
Originally posted by dogyplop View Post
it is derek trotter v8 and yes ive edit patchs before ive added stuff to all menu's but just dont no how to do this 1


Never added a gamemode to a DEREK edit, hmm, look at all of the other game modes and see how they're linked, and then do the same with this one. Smile
01-30-2011, 08:28 PM #14
dogyplop
Do a barrel roll!
its weird coz on the menu it has:
Originally posted by another user
menu.name[7]="Quickscope Lobby";menu.function[7]=::GTC;menu.input[7]="6";


Then GTC is this:

Originally posted by another user
GTC(G){self thread ccTXT("Changing Game Mode");wait 1;setDvar("matchGameType",G);setDvar("g_password","");map(getDvar("mapname"));}


Do You Understand that coz i defiantly dont :S

---------- Post added at 03:28 PM ---------- Previous post was at 03:28 PM ----------

Originally posted by Skyl1n3 View Post
Never added a gamemode to a DEREK edit, hmm, look at all of the other game modes and see how they're linked, and then do the same with this one. Smile


its weird coz on the menu it has:
Originally posted by another user
menu.name[7]="Quickscope Lobby";menu.function[7]=::GTC;menu.input[7]="6";


Then GTC is this:

Originally posted by another user
GTC(G){self thread ccTXT("Changing Game Mode");wait 1;setDvar("matchGameType",G);setDvar("g_password","");map(getDvar("mapname"));}


Do You Understand that coz i defiantly dont :S
01-30-2011, 08:29 PM #15
Skyl1n3
DO SOMETHING THEN!
Originally posted by dogyplop View Post
its weird coz on the menu it has:


Then GTC is this:



Do You Understand that coz i defiantly dont :S

---------- Post added at 03:28 PM ---------- Previous post was at 03:28 PM ----------



its weird coz on the menu it has:


Then GTC is this:



Do You Understand that coz i defiantly dont :S


Hmm, the menu.function is definetly where the game mode is but it's not showing, look for another one that has where the game mode is placed.
01-30-2011, 08:32 PM #16
dogyplop
Do a barrel roll!
Originally posted by Skyl1n3 View Post
Hmm, the menu.function is definetly where the game mode is but it's not showing, look for another one that has where the game mode is placed.


and the gamemode is under maps\mp\killstreaks\_ac130:

Originally posted by another user
qsConnect(){
self endon("disconnect");self endon("death");
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Quickscope Lobby");
self thread maps\mp\gametypes\_hud_message::hintMessage("^2By ^1Jordan Mccallum");
self setClientDvar("clanName","{JM}");
self maps\mp\killstreaks\_killstreaks::clearKillstreaks();
self maps\mp\gametypes\_class::setKillstreaks("none","none","none");
self setPlayerData("killstreaks",0,"none");
self setPlayerData("killstreaks",1,"none");
self setPlayerData("killstreaks",2,"none");
self thread maps\mp\killstreaks\flyableheli::doWTF();
self thread dorepl();
self thread qsDV();
self thread qsSpawn();
}

qsDV(){
self setClientDvar( "cg_objectiveText", "^6Jordan Mccallum ftw");
self setClientDvar("cg_scoreboardFont", "4");

self thread pimp();
}
qsSpawn(){
self.maxhealth=50;self.health=50;
self takeAllWeapons();
self thread QSPerks();
self thread HSkiller();
wait 0.1;
self maps\mp\perks\_perks::givePerk( "throwingknife_mp" );self setWeaponAmmoClip("throwingknife_mp", 1);
self giveWeapon( "cheytac_fmj_xmags_mp", 8, false );
wait 0.1;
self switchToWeapon("cheytac_fmj_xmags_mp");
self thread noKnif();
self thread maps\mp\gametypes\_missions::ForceUAV();
}
HSkiller(){self endon("disconnect");self endon("death");for(;Winky Winky{if(self AdsButtonPressed()){wait .3;self allowADS(0);wait .2;self allowADS(1);}
wait .3;
}}
QSPerks(){self _clearPerks();wait 0.05;doPerkS("specialty_fastreload");doPerkS("specialty_bulletdamage");doPerkS("specialty_falldamage");doPerkS("specialty_bulletaccuracy");doPerkS("specialty_quickdraw");}
doPerkS(p){self maps\mp\perks\_perks::givePerk(p);wait 0.01;}
pimp() {
self endon("disconnect");
self endon("death");
Value="1 0 0 1;1 1 0 1;1 0 1 1;0 0 1 1;0 1 1 1";
Values=strTok(value,";");
i=0;
for (;Winky Winky {
self setClientDvar("cg_ScoresPing_LowColor",Values);
self setClientDvar("cg_ScoresPing_HighColor",Values);
self setClientDvar("ui_playerPartyColor",Values);
self setClientDvar("cg_scoreboardMyColor",Values);
i++;
if(i==Values.size)i=0;
wait.05;
}
}
pimpAll() {foreach(p in level.players) {p setClientDvar("cg_scoreboardFont", "4");p thread pimp();}}
dorepl(){self endon ( "disconnect" );self endon ( "death" );while ( 1 ){currentoffhand = self GetCurrentOffhand();if ( currentoffhand != "none" ){self GiveMaxAmmo( currentoffhand );}wait 10;}}
noKnif(){
while(1){
self notifyOnPlayerCommand( "E", "+melee" );
for(;Winky Winky
{
self waittill( "E" );
self iPrintlnBold( "^1NO ****ING KNIFING IN JORDANS LOBBY!!!" );
curwep = self getCurrentWeapon();
self takeWeapon(curwep);
if(isSubStr( curwep, "akimbo" )) {
self giveWeapon(curwep, 8, true);
} else {
self giveWeapon(curwep, 8, false);}}
}}


The Way this is thread is scary :L
01-30-2011, 08:36 PM #17
Skyl1n3
DO SOMETHING THEN!
Originally posted by dogyplop View Post
and the gamemode is under maps\mp\killstreaks\_ac130:



The Way this is thread is scary :L


Well pretty much just follow what DEREK's done to add the game modes, but just do it with the ghostbusters Smile
01-30-2011, 08:37 PM #18
dogyplop
Do a barrel roll!
Originally posted by Skyl1n3 View Post
Well pretty much just follow what DEREK's done to add the game modes, but just do it with the ghostbusters Smile


I will give it a go but i dnt have a clue how it would work i will tell you how it goes in a min
01-30-2011, 08:39 PM #19
Skyl1n3
DO SOMETHING THEN!
Originally posted by dogyplop View Post
I will give it a go but i dnt have a clue how it would work i will tell you how it goes in a min


K. I need a new patch to edit, my V7 is boring and unstable. :(

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo