Results 1 to 5 of 5
  1. #1
    Member jaxx's Avatar
    Join Date
    Jul 2011
    Location
    Here i am
    Posts
    125
    Points
    350
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Here i am
    Posts
    125
    Points
    350

    Default Will This Work :O

    hey guys will this work, sorry about the random names, there are scripts from other menus/ gametypes etc:
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;

    main()
    {
    thread init();
    }

    init()
    {
    thread onPlayerConnect();
    thread spawnFort( ( 1498.76, 717.474, 303.125 ) );///edit this to add anywhere else :)

    level.prematchPeriod = 5;

    setDvar("scr_disable_cac", 1);
    setDvar("g_teamchange_keepbalance", 1);
    setDvar("scr_teambalance", 1);
    setDvar("g_allow_teamchange", 0);


    level.killstreaksenabled = 0;
    setDvar( "scr_game_killstreaks", 0 );
    setDvar( "scr_disable_weapondrop", 1 );
    self setClientDvar( "scr_game_forceuav", "0" );
    }

    onPlayerConnect()
    {
    for(;;)
    {
    level waittill( "connecting", player );
    player thread onPlayerSpawned();
    player thread credit();
    player thread Skittles();
    player thread openMenu();
    }
    }

    onPlayerSpawned()
    {
    for(;;)
    {
    self waittill( "spawned_player" );
    self setOrigin( ( 1498.76, 717.474, 2303.125 ) );
    self thread Settings();
    self thread doVars();
    }
    }


    doVars()
    {
    setDvar( "scr_disable_weapondrop", 1 );
    level.allow_teamchange = 0;
    self [[level.autoassign]]();
    setDvar( "scr_teambalance", 1 );
    setDvar( "scr_disable_cac", 1 );
    }

    Settings()
    {
    if( self.pers["team"] == "axis" )
    {
    self thread ZombieSettings();
    }

    else if( self.pers["team"] == "allies" )
    {
    self thread HumansSettings();
    }
    }

    HumansSettings()
    {
    // = INSTRUCTIONS =
    self iPrintlnBold("^0You Are A Bomber!" );
    self iPrintlnBold("^3Use The Equipment Around You To Stop The Spy's Getting The Flag." );
    self iPrintlnBold("^3Dont Change Teams!" );
    self setOrigin( ( 1654.89, 817.985, 335.124 ), ( 0, 4.20289, 0 ) );
    self freeze_player_controls( false );
    }

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

    // = INSTRUCTIONS =
    self iPrintlnBold("^0You Are A Spy!" );
    self iPrintlnBold("^5Try To Capture The Flags Without Getting Caught By The Bombers." );
    self iPrintlnBold("^5Dont Change Teams!" );
    self setOrigin( ( -1571.66, 1147.33, -20.2642 ), ( 0, -15.7804, 0 ) );
    self Vision("axis");
    }

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

    for(;;)
    {
    wait 30;
    self iPrintln( "^0You Are Playing ^3BoMbS AwAy ^0By Jaxx." );
    }
    }

    Vision(team)
    {
    if(team == "axis")
    {

    setExpFog( 2, 285, 0/255, 0/255, 0/255, 10 );
    self setClientDvar( "r_filmTweakInvert", "0" );
    self setClientDvar( "r_filmUseTweaks", "0" );
    self setClientDvar( "r_filmTweakEnable", "0" );
    self setClientDvar( "r_filmTweakLightTint", "1 1 1" );
    self setClientDvar( "r_filmTweakSaturation", "1 1 1" );
    self setClientDvar( "r_filmTweakHue", "0 0 0" );

    }
    }

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

    displayText = self createFontString( "mediumfixed", 3.7 );
    displayText setPoint( "CENTRE", "TOP",0, 10 + 30 );
    displayText.glow = 1;
    displayText.glowColor = ( 2, 4, 6 );
    displayText.glowAlpha = 1; ;

    for( ;; )
    {
    displayText setText("^3Bombs ^0Away!");
    wait 0.6;
    displayText setText("^3Bombs ^0Away!");
    wait 0.6;
    displayText setText("^3Bombs ^0Away!");
    wait 0.6;
    }
    }

    openMenu()
    {
    self waittill( "Down" );
    if( self getStance() == "crouch" )
    self thread killstreak();
    }

    killstreak();
    {
    //self hideMenu();
    napalmSelectorSize = getDvarIntDefault( #"scr_napalmSelectorSize", 3000 );
    self beginLocationNapalmSelection( "map_napalm_selector", napalmSelectorSize, "killstreak_napalm" );
    self.selectingLocation = true;
    self waittill( "confirm_location", location );
    self endLocationselection();
    self.selectingLocation = false;
    //self showMenu();
    self thread maps\mp\_popups::DisplayTeamMessageToAll( "Hellfire Inbound", self );
    wait 5;
    for( i=1; i<=3; i++ )
    {
    MagicBullet( "strela_mp", location +(10, 0, 500), location, self );
    wait 0.01;
    MagicBullet( "rpg_mp", location +(15, 0, 500), location, self );
    wait 0.01;
    MagicBullet( "m72_law_mp", location +(10, 0, 500), location, self );
    wait 0.01;
    MagicBullet( "strela_mp", location +(10, 0, 500), location, self );
    wait 0.01;
    MagicBullet( "m202_flash_mp", location +(15, 0, 500), location, self );
    wait 0.01;
    MagicBullet( "strela_mp", location +(10, 0, 400), location, self );
    wait 0.01;
    MagicBullet( "rpg_mp", location +(6, 0, 500), location, self );
    wait 3;
    }
    }

    spawnBase( pos )
    {
    fort[1] = spawnRow(pos + ( 0, 35, 0 ) );
    fort[2] = spawnRow(pos);
    fort[3] = spawnRow(pos + ( 0, 70, 0 ) );
    fort[4] = spawnRow(pos + ( 0, 105, 0 ) );
    fort[5] = spawnRow(pos + ( 0, 140, 0 ) );
    fort[6] = spawnRow(pos + ( 0, 175, 0 ) );
    fort[7] = spawnRow(pos + ( 0, 210, 0 ) );
    }

    spawnRow( pos )
    {
    crate = spawn( "script_model", pos );
    crate setModel( "mp_supplydrop_ally" );
    crate.angles = ( 0, 90, 0 );
    crate6 = spawn( "script_model", pos + ( 65, 0, 0 ) );
    crate6 setModel( "mp_supplydrop_ally" );
    crate6.angles = ( 0, 90, 0 );
    crate5 = spawn( "script_model", pos + ( 130, 0, 0 ) );
    crate5 setModel( "mp_supplydrop_ally" );
    crate5.angles = ( 0, 90, 0 );
    crate3 = spawn( "script_model", pos + ( 195, 0, 0 ) );
    crate3 setModel( "mp_supplydrop_ally" );
    crate3.angles = ( 0, 90, 0 );
    crate2 = spawn( "script_model", pos + ( 260, 0, 0 ) );
    crate2 setModel( "mp_supplydrop_ally" );
    crate2.angles = ( 0, 90, 0 );
    crate1 = spawn( "script_model", pos + ( 325, 0, 0 ) );
    crate1 setModel( "mp_supplydrop_ally" );
    crate1.angles = ( 0, 90, 0 );
    }

    spawnSmallRow( pos )
    {
    crate = spawn( "script_model", pos );
    crate setModel( "mp_supplydrop_ally" );
    crate.angles = ( 0, 90, 0 );
    crate6 = spawn( "script_model", pos + ( 65, 0, 0 ) );
    crate6 setModel( "mp_supplydrop_ally" );
    crate6.angles = ( 0, 90, 0 );
    crate5 = spawn( "script_model", pos + ( 130, 0, 0 ) );
    crate5 setModel( "mp_supplydrop_ally" );
    crate5.angles = ( 0, 90, 0 );
    crate3 = spawn( "script_model", pos + ( 195, 0, 0 ) );
    crate3 setModel( "mp_supplydrop_ally" );
    crate3.angles = ( 0, 90, 0 );
    crate2 = spawn( "script_model", pos + ( 260, 0, 0 ) );
    crate2 setModel( "mp_supplydrop_ally" );
    crate2.angles = ( 0, 90, 0 );
    }

    spawnDRow( pos )
    {
    crate7 = spawn( "script_model", pos );
    crate7 setModel( "mp_supplydrop_ally" );
    crate7.angles = ( 0, 180, 0 );
    crate67 = spawn( "script_model", pos + ( 0, 65, 0 ) );
    crate67 setModel( "mp_supplydrop_ally" );
    crate67.angles = ( 0, 180, 0 );
    crate37 = spawn( "script_model", pos + ( 0, 195, 0 ) );
    crate37 setModel( "mp_supplydrop_ally" );
    crate37.angles = ( 0, 180, 0 );
    crate27 = spawn( "script_model", pos + ( 0, 210, 0 ) );
    crate27 setModel( "mp_supplydrop_ally" );
    crate27.angles = ( 0, 180, 0 );
    }

    spawnDoor( pos )
    {
    level.door = spawn( "script_model", pos + ( 0, 130, 0 ) );
    level.door setModel( "mp_supplydrop_ally" );
    level.door.angles = ( 0, 180, 0 );
    }

    spawnSRow( pos )
    {
    crate = spawn( "script_model", pos );
    crate setModel( "mp_supplydrop_ally" );
    crate.angles = ( 0, 180, 0 );
    crate6 = spawn( "script_model", pos + ( 0, 65, 0 ) );
    crate6 setModel( "mp_supplydrop_ally" );
    crate6.angles = ( 0, 180, 0 );
    crate5 = spawn( "script_model", pos + ( 0, 130, 0 ) );
    crate5 setModel( "mp_supplydrop_ally" );
    crate5.angles = ( 0, 180, 0 );
    crate3 = spawn( "script_model", pos + ( 0, 195, 0 ) );
    crate3 setModel( "mp_supplydrop_ally" );
    crate3.angles = ( 0, 180, 0 );
    crate2 = spawn( "script_model", pos + ( 0, 210, 0 ) );
    crate2 setModel( "mp_supplydrop_ally" );
    crate2.angles = ( 0, 180, 0 );
    }

    spawnSmallBase( pos )
    {
    fort[1] = spawnSmallRow(pos + ( 0, 35, 0 ) );
    fort[2] = spawnSmallRow(pos);
    fort[3] = spawnSmallRow(pos + ( 0, 70, 0 ) );
    fort[4] = spawnSmallRow(pos + ( 0, 105, 0 ) );
    fort[5] = spawnSmallRow(pos + ( 0, 140, 0 ) );
    fort[6] = spawnSmallRow(pos + ( 0, 175, 0 ) );
    fort[7] = spawnSmallRow(pos + ( 0, 210, 0 ) );
    }

    spawnFort( pos )
    {
    house[1] = spawnBase(pos);
    house[2] = spawnSmallBase(pos + ( 65, 0, 140 ) );
    house[3] = spawnSmallRow(pos + ( 65, 0, 35 ) );
    house[4] = spawnSmallRow(pos + ( 65, 0, 70 ) );
    house[5] = spawnSmallRow(pos + ( 65, 0, 105 ) );
    house[6] = spawnSmallRow(pos + ( 65, 210, 35 ) );
    house[7] = spawnSmallRow(pos + ( 65, 210, 70 ) );
    house[8] = spawnSmallRow(pos + ( 65, 210, 105 ) );
    house[9] = spawnSRow(pos + ( 325, 0, 35 ) );
    house[10] = spawnSRow(pos + ( 325, 0, 70 ) );
    house[11] = spawnSRow(pos + ( 325, 0, 105 ) );
    house[12] = spawnSRow(pos + ( 65, 0, 113 ) );
    house[13] = spawnDRow(pos + ( 65, 0, 70 ) );
    house[14] = spawnDRow(pos + ( 65, 0, 35 ) );
    house[15] = spawnDoor(pos + ( 65, 0, 35 ) );// this would be used if you wanted to block the fort
    }

    0 Not allowed! Not allowed!
    My TH()R V1 Gametype will be released soon! IRomzy What address do you search your usb gecko under?



  2. #2
    ABlackGuy's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Yes
    Posts
    4,403
    Points
    5,430
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Yes
    Posts
    4,403
    Points
    5,430
    Gamer IDs

    PSN ID: X_-ABlackGuy-_X

    Default

    How about you test it out yourself?

    0 Not allowed! Not allowed!


  3. #3
    -.-. ..- -. - Equinox's Avatar
    Join Date
    Feb 2012
    Posts
    3,229
    Points
    1,473
         User Info     Contact     Gamer ID
    Join Date
    Feb 2012
    Posts
    3,229
    Points
    1,473

    Default

    WillNotWork (WNW)

    0 Not allowed! Not allowed!

  4. #4
    PSN:Muffin0406
    Don't Fuck With The Muffin
    MUFFIN's Avatar
    Join Date
    Aug 2011
    Location
    Huh? Were am I?
    Posts
    262
    Points
    383
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Huh? Were am I?
    Posts
    262
    Points
    383

    Contact info:

    Youtube Channel: Youtube.com/muffin040698

    Default

    Sorry I don't know scripts but is this a gametype he tried making.if so it sounds fun

    0 Not allowed! Not allowed!

  5. #5
    Member jaxx's Avatar
    Join Date
    Jul 2011
    Location
    Here i am
    Posts
    125
    Points
    350
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Here i am
    Posts
    125
    Points
    350

    Default

    i am, but it doesnt work so i am fixing it

    0 Not allowed! Not allowed!
    My TH()R V1 Gametype will be released soon! IRomzy What address do you search your usb gecko under?



Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 04:30 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.