Results 1 to 10 of 10
  1. #1
    Jungler Strike's Avatar
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,312
    Points
    9,407
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,312
    Points
    9,407
    Gamer IDs

    PSN ID: xSTR11K3Rx Steam ID: xSTRiiK3Rx

    Contact info:

    Youtube Channel: http://www.youtube.com/xSTRiiK3Rx/

    Arrow [Release] Create your own gametype

    Theniovi asked me to make him a gametype so i made a simple one for him. This gametype can be the base for many and have huge potential, you can change perks what is read on screen the weapons you want and the visions.

    This one is for all players

    Code:
    #include common_scripts\utility;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    init()
    {
    	level thread onPlayerConnect();
    
    
    	level.killstreaksenabled = 0;
    	setDvar( "scr_game_killstreaks", 0 );
    	setDvar( "scr_disable_weapondrop", 1 );
    	setDvar( "scr_sd_planttime", "999" );
    	self setClientDvar( "scr_game_forceuav", "0" );
    	}
    
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    
    		self thread Sniper();
    	}
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread onPlayerSpawned();
    	}
    }
    
    
    
    Sniper()
    {
    	self endon("death");
    	self endon("disconnect");
    	
    	// = INSTRUCTIONS =
    	self iPrintlnBold("^7You are a ^2SNIPER^7.");
    	self iPrintlnBold("^7Teamwork is key." );
    	
    	// = PERKS =
    	self setPerk("specialty_scavenger");
    	self setPerk("specialty_fastreload");
    	self setPerk("specialty_fastads");
    	self setPerk("specialty_bulletdamage");
    	self setPerk("specialty_unlimitedsprint");
    	self setPerk("specialty_fastmeleerecovery");
    	
    	// = WEAPONS =
    	self Weapons("sniper");
    
    	// = VISION =
    	self Vision("sniper");
    
    	// = SPEED =
    	self setMoveSpeedScale( 1.0 );
    	
    }
    
    Weapons(team)
    {
    	self takeAllWeapons();
    	
    	if(team == "sniper")
    	{
    		b = "l96a1_vzoom_extclip_mp"; // change the weapon
    		self GiveWeapon(b);
    		self GiveWeapon("hatchet_mp ");
    		self giveMaxAmmo(b);
    		self setWeaponAmmoClip("hatchet_mp ", 1);
    		self switchToWeapon(b);
    	}
    
    }
    
    Vision(team)
    {	
    	if(team == "sniper")
    	{
    
            // put vision here
            setExpFog( 200, 700, 0/255, 0/255, 0/255, 0.8 );
    	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" );
    
    }


    for having a gamemode where its two different weapons against each other here is a simple version of shotgun vs sniper i made.

    Code:
    #include common_scripts\utility;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    init()
    {
    	level thread onPlayerConnect();
    
    
    	level.killstreaksenabled = 0;
    	setDvar( "scr_game_killstreaks", 0 );
    	setDvar( "scr_disable_weapondrop", 1 );
    	setDvar( "scr_sd_planttime", "999" );
    	self setClientDvar( "scr_game_forceuav", "0" );
    	}
    
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    
    		if(self.pers["team"] == game["defenders"])
    		{
    			self thread Sniper();
    		}
    		if(self.pers["team"] == game["attackers"])
    		{
    			self thread Shotgun();
    		}
    	}
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread onPlayerSpawned();
    	}
    }
    
    
    
    
    Sniper()
    {
    	self endon("death");
    	self endon("disconnect");
    	
    	// = INSTRUCTIONS =
    	self iPrintlnBold("^7You are a ^2SNIPER^7. Use caution to eliminate the ^5shotgunners^7." );
    	self iPrintlnBold("^7Teamwork is key." );
    	self iPrintlnBold("^7Aim down your scope to see the Shotguners with thermal." );
    	
    	// = PERKS =
    	self setPerk("specialty_scavenger");
    	self setPerk("specialty_fastreload");
    	self setPerk("specialty_fastads");
    	self setPerk("specialty_bulletdamage");
    	self setPerk("specialty_unlimitedsprint");
    	self setPerk("specialty_fastmeleerecovery");
    	
    	// = WEAPONS =
    	self Weapons("sniper");
    
    	// = VISION =
    	self Vision("sniper");
    
    	// speed
    	self setMoveSpeedScale( 0.8 );
    	
    }
    
    Shotgun()
    {
    	self endon("death");
    	self endon("disconnect");
    
    	// = INSTRUCTIONS =
    	self iPrintlnBold( "^7You are an ^5shotgunner^7. take out the ^2SNIPERS^7." );
    	
    	// = PERKS =
    	self setPerk("specialty_unlimitedsprint");
    	self setperk("specialty_noname");
    	self setPerk("specialty_scavenger");
    	self setPerk("specialty_bulletdamage");
    	self setPerk("specialty_fastreload");
    	self setPerk("specialty_fastads");
    
    	// = WEAPONS =
    	self Weapons("shotgun");
    	
    	// = VISION =
    	self Vision("shotgun");
    
    	// speed
    	self setMoveSpeedScale( 1.0 );
    
    }
    
    // Give the teams their weapons.
    Weapons(team)
    {
    	self takeAllWeapons();
    	
    	if(team == "sniper")
    	{
    		b = "l96a1_ir_extclip_mp";
    		self GiveWeapon(b);
    		self GiveWeapon("hatchet_mp ");
    		self giveMaxAmmo(b);
    		self setWeaponAmmoClip("hatchet_mp ", 1);
    		self switchToWeapon(b);
    	}
    
    	
    	if(team == "shotgun")
    	{
    		k = "ithaca_grip_mp";
    		self GiveWeapon(k);
    		self switchToWeapon(k);
    		self giveMaxAmmo(k);
    	}
    }
    
    // Give the teams their visions.
    Vision(team)
    {	
    	if(team == "sniper")
    	{
    
            setExpFog( 200, 700, 0/255, 0/255, 0/255, 0.8 );
    	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" );
    
    	}
    	
    	if(team == "shotgun")
    	{
            setExpFog( 300, 600, 20/255, 20/255, 20/255, 0.8 );
    	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" );
    
    	}
    }
    Heres some resources you can use aswell:

    PERKS


    Heres to have text on screen


    Enjoy this and hopefully i get to see some creations

    0 Not allowed! Not allowed!
    Last edited by Strike; 08-30-2011 at 04:59 PM.

    ^Ty goober^
    Quote Originally Posted by xX_BiGFooTT_Xx View Post
    compensate my cock faggot

  2. #2
    Member kwaq's Avatar
    Join Date
    Aug 2011
    Location
    eying you at the end of the bar
    Posts
    200
    Points
    558
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    eying you at the end of the bar
    Posts
    200
    Points
    558

    Default

    Hmmm, maybe even a newb like me could make some simple gametype to get me started with this scripting :P

    0 Not allowed! Not allowed!

  3. #3
    Jungler Strike's Avatar
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,312
    Points
    9,407
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,312
    Points
    9,407
    Gamer IDs

    PSN ID: xSTR11K3Rx Steam ID: xSTRiiK3Rx

    Contact info:

    Youtube Channel: http://www.youtube.com/xSTRiiK3Rx/

    Default

    Oh btw at the moment i have both set to work only on snd so ill fix it

    Ok its fixed and works on all game modes and maps

    0 Not allowed! Not allowed!

    ^Ty goober^
    Quote Originally Posted by xX_BiGFooTT_Xx View Post
    compensate my cock faggot

  4. #4
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    nice but for the if(self.pers["team"] == game["defenders"])
    shouldnt u post u need to "call on" team axis or allie to make that possible becouse there gonna get a syntax error if they change defender to noob without that script/dvar

    0 Not allowed! Not allowed!

  5. #5
    Curret n3wbit
    Russ's Avatar
    Join Date
    Aug 2011
    Location
    California
    Posts
    3,193
    Points
    3,398
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    California
    Posts
    3,193
    Points
    3,398
    Gamer IDs

    Gamertag: SSRunts PSN ID: DCCoexist Steam ID: dcrunts

    Default

    someone help me with this im so confused

    if someone can help me by teaching me how to add a custom gsc add my skype russell.cheek and picture is of Runts

    0 Not allowed! Not allowed!

  6. #6
    Bot Bot's Avatar
    Join Date
    Aug 2011
    Posts
    2,671
    Points
    7,720
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Posts
    2,671
    Points
    7,720

    Default

    Quote Originally Posted by Russ View Post
    someone help me with this im so confused

    if someone can help me by teaching me how to add a custom gsc add my skype russell.cheek and picture is of Runts
    I'll get you our basic version of svs and then I'll comment it up more and send it you - if you still don't get it I'll give some help but the best way to learn is for you to do as much as you can on your own.

    0 Not allowed! Not allowed!








  7. #7
    Curret n3wbit
    Russ's Avatar
    Join Date
    Aug 2011
    Location
    California
    Posts
    3,193
    Points
    3,398
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    California
    Posts
    3,193
    Points
    3,398
    Gamer IDs

    Gamertag: SSRunts PSN ID: DCCoexist Steam ID: dcrunts

    Default

    ok and if i want 2 guns like 2 primaries for 1 side and 2 secondaries for the other?

    also i need to be taught how to add a gsc thanks

    0 Not allowed! Not allowed!

  8. #8
    Hacker Pro
    The Prestige
    TheNiovi's Avatar
    Join Date
    May 2011
    Posts
    325
    Points
    573
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    325
    Points
    573
    Gamer IDs

    Gamertag: nope Steam ID: nope

    Default

    Thats the easiest part

    0 Not allowed! Not allowed!


    My iPod Shuffle has better graphics than the Wii
    -First 3D anaglyph signature on this forum!

  9. #9
    Bot Bot's Avatar
    Join Date
    Aug 2011
    Posts
    2,671
    Points
    7,720
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Posts
    2,671
    Points
    7,720

    Default

    Quote Originally Posted by Russ View Post
    ok and if i want 2 guns like 2 primaries for 1 side and 2 secondaries for the other?

    also i need to be taught how to add a gsc thanks
    Yeah I can do that and hopefully I can teach/show you how.

    0 Not allowed! Not allowed!








  10. #10
    Jungler Strike's Avatar
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,312
    Points
    9,407
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,312
    Points
    9,407
    Gamer IDs

    PSN ID: xSTR11K3Rx Steam ID: xSTRiiK3Rx

    Contact info:

    Youtube Channel: http://www.youtube.com/xSTRiiK3Rx/

    Default

    Quote Originally Posted by tony View Post
    nice but for the if(self.pers["team"] == game["defenders"])
    shouldnt u post u need to "call on" team axis or allie to make that possible becouse there gonna get a syntax error if they change defender to noob without that script/dvar
    Idk i just put it together quickly what do you suggest lol

    0 Not allowed! Not allowed!

    ^Ty goober^
    Quote Originally Posted by xX_BiGFooTT_Xx View Post
    compensate my cock faggot

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 12:14 AM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.