Change background image
  1. What's up? I see you're viewing as a Guest. How about registering, it only takes like 2 minutes. This will enable you to do more on our forum and stay updated.

Humans Vs Zombies

Discussion in 'Wii Game Mods' started by mrownership, Aug 31, 2011.

Thread Status:
This thread is more than 180 days old.
  1. mrownership

    mrownership New Member Member

    This is the first mod that I have made.
    It is supposed to be played on search and destroy.

    Humans
    -only get 2 pistols and no knife at all
    -can only be killed by getting knifed by zombie

    Zombies
    -can only be killed by headshots
    -only get a knife
    -on fire and make screaming noises
    -move faster than humans

    Bugs
    -sometimes zombies can be killed by being shot anywhere but it gets fixed after the first round. I think
    -uhh...let me know if you find any, there are probably others

    Let me know what you think about it. It's my first mod so don't make me cry... just kidding. I am also working on a kill the juggernaut mod and RC-xD racing mod(got 90% of the track done). I will upload them when im finished with them

    Code:
    #include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    
    // Humans Vs Zombies
    
    // Made BY MrOwnership
    
    main()
    {
        thread init();
    }
    
    init()
    {
        thread onPlayerConnect();
        thread onPlayerConnected();
    }
    
    onPlayerConnect()
    {    
        for(;;)
        {
            level waittill( "connecting", player );
    
            player thread onPlayerSpawned();
            player thread playerVariables();
    
        }
    }
    
    onPlayerConnected()
    {    
        for(;;)
        {
            level waittill( "connected", player );
            player thread playerVariables();
                    setDvar("scr_sd_roundlimit", "15");
                setDvar( "g_gametype", "sd" );
        }
    }
    
    onPlayerSpawned()
    {
        for(;;)
        {
            self waittill( "spawned_player" );
            self thread doTeams();
            self thread doVars();
        }
    }
    
    playerVariables()
    {
        self setClientDvar( "cg_brass", 0 );
        self setClientDvar( "g_maxDroppedWeapons", 0 );
        self setClientDvar( "scr_game_killstreaks", 0 );
        self setClientDvar( "scr_game_forceuav", 0 );
        self setClientDvar( "sv_cheats", 0 );
    }
    
    doVars()
    {
        setDvar( "g_TeamName_Allies", "^2Humans" );
        setDvar( "g_TeamName_Axis", "^1Zombies" );
        setDvar( "scr_" + getDvar( "g_gametype" ) + "_scorelimit", 0 );
        setDvar( "scr_" + getDvar( "g_gametype" ) + "_timelimit", 2 );
            setDvar( "scr_disable_cac", 1 );
        setDvar( "scr_game_onlyheadshots", 1);
        setDvar( "scr_disable_weapondrop", 1 );
    }
    
    doTeams()
    {
        self endon ( "disconnect" );
        if( self.pers["team"] == "axis" )//Zombie team
        {
            self thread giveZombieWeapons(); 
                    self thread uavblock();
            self thread zombiePerks(); 
                    self.maxhealth = 1;
                    self.health = self.maxhealth;
            self setMoveSpeedScale( 1.3 );
                    self thread maps\mp\gametypes\_hud_message::hintMessage( "^7You are a ^1Zombie" );
            self setLowerMessage( "Welcome to ^1(Y)r.^0Ownership^1*^7's ^1Zombies ^7Vs ^2Humans Lobby." );
            self thread doZombieLook();
    
        }
        else if( self.pers["team"] == "allies" )//Human team
        {
                    self thread giveHumanWeapons();
                    self thread uavblock();
            self thread humanPerks();
                    self iPrintlnBold( "^1Zombies ^7can only be killed with headshots" );
                    self thread maps\mp\gametypes\_hud_message::hintMessage( "^7You are a ^2Human" );
            self setLowerMessage( "Welcome to ^1(Y)r.^0Ownership^1*^7's ^1Zombies ^7Vs ^2Humans Lobby." );
        }
    }
    
    giveZombieWeapons()
    {
        ZombieKnife = "knife_mp";
      
            self takeAllWeapons();
        self clearPerks();
        self giveWeapon( ZombieKnife );
    }
    
    giveHumanWeapons()
    {
            Primary = "m1911_mp";  
        Secondary = "cz75_mp";
    
        self takeAllWeapons();
        self clearPerks();
        self giveWeapon( Primary );
        self giveWeapon( Secondary );
    }
    
    uavblock()
    {
        self setClientDvar("scr_game_forceuav" , "0" );
        self setClientDvar("g_compassShowEnemies" , "0" );
        self setClientDvar("compassRadarUpdateTime" , "9999" );
        self setClientDvar("compassEnemyFootstepEnabled" , "0" );
        self setClientDvar("compass" , "0" );
        self setClientDvar("compassSize", 1 );
    }
    
    zombiePerks()
    {
        self setPerk("specialty_noname"); 
        self setPerk("specialty_movefaster"); 
        self setPerk("specialty_fastmeleerecovery");
    }
    
    humanPerks()
    {
            self setPerk("specialty_quieter");  
            self setPerk("specialty_loudenemies");
        self setPerk("specialty_fastreload");
    }
    
    doZombieLook()
    {
        while(1)
        {
            level thread maps\mp\gametypes\_battlechatter_mp::mpSayLocalSound( self, "fire", "scream" );
            wait .1;
            playFxOnTag( level._effect["character_fire_death_torso"], self, "J_SpineLower" );
            wait .5;
        }
    }
    2 people like this.
  2. dns

    dns Active Member Admin

    Nice [xat]y[/xat]
    Love to see original work here. Thanks for this
  3. Brandon

    Brandon Programmer Moderator

    LOL thanks for this its cool cant wait to see your rc mod +1
  4. Sh0tGuN2197

    Sh0tGuN2197 *Shotty* Super-Mod

    rc mod?

    I like this. Can't wait to test it out eventually. Nice job. +1
Thread Status:
This thread is more than 180 days old.

Share This Page