Death Call of Duty Hacks4Wii Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.


A Site for Call of Duty Wii Hacking/Modding
 
HomeLatest imagesSearchRegisterLog in

 

 Death Machine Rampage v1 Made By mynameisjosh

Go down 
AuthorMessage
mynameisjosh
Designer
Designer



Posts : 1
Join date : 2012-01-29

Death Machine Rampage v1 Made By mynameisjosh Empty
PostSubject: Death Machine Rampage v1 Made By mynameisjosh   Death Machine Rampage v1 Made By mynameisjosh I_icon_minitimeSun Jan 29, 2012 5:01 pm

Code:
#include common_scripts\utility;
#include maps\mp\_airsupport;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
//This Mod Was Made By mynameisjosh
//Please Do Not Take Credit for this mod
//Thanks To Cheesetoast For The Help

init()
{
thread onPlayerConnect();
thread onPlayerConnected();
}

onPlayerConnect()
{
for(;;)
{
level waittill( "connecting", player );

player thread onPlayerSpawned();
self thread doClientVars();
}
}

onPlayerConnected()
{
for(;;)
{
level waittill( "connected", player );
setDvar( "g_gametype", "sd" );
setDvar("scr_sd_roundlimit", "24");
}
}

onPlayerSpawned()
{
for(;;)
{
self waittill( "spawned_player" );
self thread doScreenstuff();
self thread doTeamstuff();
self thread giveInfAmmo();
self thread giveGoodGuns();
self thread giveBadGuns();
self thread doVars();
self thread doTextStuff();
}
}

doTeamstuff()
{
setDvar( "g_TeamName_Axis", "^1Bad" );
setDvar( "g_TeamName_Allies", "^2Good" );
level.allow_teamchange = 0;
//setDvar( "g_speed", 999 );I took out because it is a pain in the ass to kill people when they are going 400 miles per hour.
setDvar( "scr_teambalance", 1 );
setDvar( "scr_disable_cac", 1 );
setDvar( "cg_drawfps", 1 );
}

doScreenstuff()
{
self endon ( "disconnect" );
if( self.pers["team"] == "axis" )
{
self thread giveBadGuns();
self.maxhealth = 2000;
self.health = self.maxhealth;
}
else if( self.pers["team"] == "allies" )
{
self thread giveBadGuns();
self.maxhealth = 2000;
self.health = self.maxhealth;
}
}

giveBadGuns()
{
self takeAllWeapons();
self giveWeapon( "minigun_mp" );
self switchToWeapon( "minigun_mp" );
}

giveGoodGuns()
{
self takeAllWeapons();
self giveWeapon( "minigun_mp" );
self switchToWeapon( "minigun_mp" );
}

giveInfAmmo()
{
for(;;)
{
self SetWeaponAmmoClip( self getCurrentWeapon(), 99 );
self SetWeaponAmmoStock( self getCurrentWeapon(), 99 );
wait 0.1;
}
}

doTextStuff()
{
self endon ( "disconnect" );

self thread maps\mp\gametypes\_hud_message::hintMessage("^2Welcome To Death Machine Rampage Made By ^0mynameisjosh"); //Typewriter objective text
wait 4;
self iPrintlnBold("^5Use TeamWork To Kill The Other People With Death Machine's. ^1DERP FACE!!");
wait 4;
self iPrintlnBold("^2Please Don't Take Credit Or I Will Find You And ^4GRAPE YOU IN THE MOUTHH!!!!");

}

doVars()
{
//setDvar( "g_speed", 999 );I tok out because it is a pain in the ass to kill people when they are going 400 miles per hour.
setDvar( "bg_fallDamageMinHeight", 9999 );
setDvar( "bg_fallDamageMaxHeight", 9999 );
setDvar( "jump_height", "999" );
setDvar( "bg_gravity", 200 );
}

doClientVars()
{
self setClientDvar( "customclass1", "^2This is My");
self setClientDvar( "customclass2", "^3First Mod");
self setClientDvar( "customclass3", "^2If Its Bad");
self setClientDvar( "customclass4", "^3GET");
self setClientDvar( "customclass5", "^2OVER IT!!!!!");
}


My first gametype I ever made.
Back to top Go down
 
Death Machine Rampage v1 Made By mynameisjosh
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Death Call of Duty Hacks4Wii Forums :: Wii Section :: Call of Duty Mods :: Black Ops-
Jump to: