Results 1 to 4 of 4

Thread: PvS V1!

  1. #1
    Banned
    Join Date
    Mar 2012
    Posts
    138
    Points
    175
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Posts
    138
    Points
    175

    Default PvS V1!

    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", "1" );
    	
    
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    
    		if(self.pers["team"] == game["predators"])
    		{
    			self thread Sniper();
    		}
    		if(self.pers["team"] == game["survivors"])
    		{
    			self thread Shotgun();
    		}
    	}
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread onPlayerSpawned();
    	}
    }
    
    
    
    
    Predators()
    {
    	self endon("death");
    	self endon("disconnect");
    	
    	// = INSTRUCTIONS =
    	self iPrintlnBold( "^1PREDATORS!  KILL THE SURVIVORS AT ALL COSTS!" );
    	
    	
    	// = 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("predators");
    
    	// speed
    	self setMoveSpeedScale( 1.5 );
    	
    }
    
    Survivors()
    {
    	self endon("death");
    	self endon("disconnect");
    
    	// = INSTRUCTIONS =
    	self iPrintlnBold( "^5SURVIVORS!  ESCAPE THE PREDATORS AT ALL COSTS!" );
    	self iPrintlnBold( "Knife Only!" );
    
    	// = 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("survivors");
    
    	// speed
    	self setMoveSpeedScale( 1.0 );
    
    }
    
    // Give the teams their weapons.
    Weapons(team)
    {
    	self takeAllWeapons();
    	
    	if(team == "predators")
    	{
    		b = "";
    		self GiveWeapon(b);
    		self GiveWeapon("python_mp ");
    		self giveMaxAmmo(b);
    		self setWeaponAmmoClip("python_mp ", 0);
    		self switchToWeapon(b);
    	}
    
    	
    	if(team == "survivors")
    	{
    		self GiveWeapon(k);
    		self GiveWeapon("hatchet_mp ");
    		self giveMaxAmmo(k);
    		self setWeaponAmmoClip("hatchet_mp ", 1);
    		self switchToWeapon(k);
    	}
    }
    Predators vs Survivors. Pretty self-explanatory!

    Credits:
    Striiker(Strike) - Base

    Once I start getting more filled with scripting knowledge, i'll edit it more/post updates

    0 Not allowed! Not allowed!

  2. #2
    Beast Modder
    ģħţmare
    TheRealNightmare's Avatar
    Join Date
    Oct 2011
    Posts
    264
    Points
    149
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Posts
    264
    Points
    149

    Default

    This wont work and get a unknown function or a bad syntax.
    Code:
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    
    		if(self.pers["team"] == game["predators"])
    		{
    			self thread Sniper();
    		}
    		if(self.pers["team"] == game["survivors"])
    		{
    			self thread Shotgun();
    		}
    	}
    }
    And you have more stuff wrong with the gametype also that I am not going to mention.

    0 Not allowed! Not allowed!

  3. #3
    Overkill
    ProdigyWorldWide
    Genesis's Avatar
    Join Date
    Jan 2012
    Location
    Canada
    Posts
    1,470
    Points
    1,087
         User Info     Contact     Gamer ID
    Join Date
    Jan 2012
    Location
    Canada
    Posts
    1,470
    Points
    1,087
    Gamer IDs

    PSN ID: xSMMx1337

    Default

    It should be Predator vs Alien

    0 Not allowed! Not allowed!

    Quote Originally Posted by ph4ze Anthony View Post
    TAKE DOWN OR ELSE IM GETINGT THE POLICE AND FBI MY FATHER WORKS FOR THE FEDERAL GOVERNMENT
    Quote Originally Posted by Soda View Post
    i have a small pneis

  4. #4
    Diehard xBTA*JUANx's Avatar
    Join Date
    Aug 2011
    Posts
    721
    Points
    1,489
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Posts
    721
    Points
    1,489

    Default

    Quote Originally Posted by x$MMx View Post
    It should be Predator vs Alien
    He made the gametype, i think he can name it what ever he wants.
    So this is just like a tdm match, but you choose their weapons?

    0 Not allowed! Not allowed!

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 03:46 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.