Results 1 to 12 of 12
  1. #1
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried

    One Zombie 10000 Health in 10 Round.

    Hi I Would like to add a zombie to 10000 health in the last round.
    One Zombie!

    My MoD 99% Completed
    Last edited by darkorlegend; 05-30-2011 at 09:17 AM.

  2. #2
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,984
    Reputation
    176
    Thanks
    919
    My Mood
    Blah
    We need some more information and the the code. I have no idea about how your mod i build.


    The lines in my Steam are i's

  3. #3
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried
    In the last round that haiga a zombie with 1000 health
    And between everything kill zombie
    Last edited by darkorlegend; 05-30-2011 at 11:23 AM.

  4. #4
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    158
    Why don't you try make somenthing yourself?

    This is really easy to do lol...
    But seriously, you have asked for EVERYTHING you added in your mod >_>

  5. #5
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried
    Please only is this.

  6. #6
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    158
    Quote Originally Posted by darkorlegend View Post
    Please only is this.
    Code:
    	if(level.Waves == 10)
    	{
    		level.bots[i].crate1.maxhealth = 1000;
                        }
    else {
    		level.bots[i].crate1.maxhealth = level.ZombieHealth; }
    Somenthing like that I guess?

    In bot.gsc

  7. #7
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried
    script error.

  8. #8
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    158
    Quote Originally Posted by darkorlegend View Post
    script error.
    Post your .gsc >.>

  9. #9
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried
    My Bots.gsc
    Last edited by darkorlegend; 05-30-2011 at 02:07 PM.

  10. #10
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    158
    Code:
    #include common_scripts\utility;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    #include AImod\_multi;
    #include AImod\_OtherFunctions;
    
    BotMain()
    {
    
    CreateBotWave( );
    
    }
    
    CreateBotWave( )
    {
    level endon("game_ended");
    
    level.Wave++;
    level.BotsForWave = (60 * level.Wave);
    level.RealSpawnedBots = 0;
    level.zState = "playing";
    
    level thread ZombieMarkers();
    
    level notify("crate_gone");
    
    	foreach( player in level.players )
    	{
    		player iPrintLnBold("Total " + level.BotsForWave + " Zombies in Wave");
    		player PlayLocalSound("flag_spawned");
    	}
    
    	for( i = 0; i < level.BotsForWave; i++ )
    	{
    		while(AImod\_botUtil::ZombieCount() >= 25)//prevent massive lag [increase if u have a good computer]
    			wait 1;
    
    		if(level.RealSpawnedBots < level.BotsForWave)
    			level.RealSpawnedBots++;
    	
    		level.bots[i] = spawn("script_model", AImod\_botUtil::GetMapSpawnPoint());
    		level.bots[i] setModel(AImod\_botUtil::GetSpawnModel());
    		
    		level.bots[i].crate1 = spawn("script_model", level.bots[i].origin + (0,0,30) ); 
    		level.bots[i].crate1 setModel("com_plasticcase_enemy");
    		level.bots[i].crate1 Solid();
    		level.bots[i].crate1 CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
    		level.bots[i].crate1.angles = (90,0,0);
    		level.bots[i].crate1 hide();
    		level.bots[i].crate1.team = "axis";
    		level.bots[i].crate1.name = "botCrate" + i;
    		level.bots[i].crate1 setCanDamage(true);
    	if(level.Waves == 10)
    	{
    		level.bots[i].crate1.maxhealth = 1000;
    		level.bots[i].crate1.health = 1000;
                        }
    else {
    		level.bots[i].crate1.maxhealth = level.ZombieHealth;
    		level.bots[i].crate1.health = level.ZombieHealth;
    }
    		level.bots[i].crate1 linkto( level.bots[i] );
    
    		level.bots[i].hasMarker = false;
    		level.bots[i].team = "axis";
    		level.bots[i].name = "bot" + i;
    		level.bots[i].targetname = "bot";
    		level.bots[i].classname = "bot";
    		level.bots[i].currentsurface = "default";
    		level.bots[i].kills = 0;
    		level.bots[i] Solid();
    		level.bots[i] thread MonitorAttackPlayers( );
    		level.bots[i] thread MonitorBotHealth();
    		level.bots[i] thread KillIfUnderMap( i );
    		level.bots[i] thread ClampToGround();
    		level.bots[i] thread GetBestPlayerAndMoveTo();
    
    		wait 0.3;
    	}
    	
    	level thread MonitorFinish();
    }
    
    MonitorFinish( )
    {
    level endon("crate_gone");
    
    for(;;)
    {
    
    	if(AImod\_botUtil::ZombieCount() <= 0 && level.Wave < level.MaxWaves)
    	{
    		level.zState = "intermission";
    	
    		wait 2;
    	
    		foreach( player in level.players )
    			if(isDefined( player.needsToSpawn ) && player.needsToSpawn)
    			{
    				player notify("respawn");
    
    				player thread [[level.SpawnClient]]();
    				player allowSpectateTeam( "freelook", false );
    				
    				player.pers["botKillstreak"] = 0;
    				player.pers["lastKillstreak"] = "";
    				
    				player clearLowerMessage("spawn_info");
    			}
    			
    		Announcement( "Ammo Drop Incoming" );
    	
    		level AImod\_airdrop::C130FlyBy();
    		
    		level notify("round_ended");
    
    	break;
    	}
    
    	else if(AImod\_botUtil::ZombieCount() <= 0 && level.Wave >= level.MaxWaves)
    	{
    		centerHeight = self AImod\_airdrop::getFlyHeightOffset( level.mapCenter );
    		centerCrate = spawn( "script_model", level.mapCenter + (0, 0, centerHeight) );
    		centerCrate setModel( "com_plasticcase_friendly" );
    		centerCrate CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
    		centerCrate.angles = (90,0,0);
    		centerCrate hide();
    	
    		foreach( player in level.players )
    		{
    			player hide();
    			player setOrigin( level.mapCenter + (0, 0, centerHeight) );
    			player disableWeapons(true);
    		}
    
    		wait 5;
    		
    		foreach( player in level.players )
    		{
    			player freezeControls(true);
    			
    			if(isDefined(player.healthword))
    				player.healthword destroy();
    
    			if(isDefined(player.healthnum))
    				player.healthnum destroy();
    
    			if(isDefined(player.healthbar))
    				player.healthbar destroy();
    
    			if(isDefined(player.healthbarback))
    				player.healthbarback destroy();
    
    			if(isDefined(player.healthwarning))
    				player.healthwarning destroy();
    				
    			if(isDefined(player.nvText))
    				player.nvText destroy();
    		
    			if(isDefined(player.nvText2))
    				player.nvText2 destroy();
    		}
    		
    		level thread maps\mp\killstreaks\_nuke::doNuke( 0 );
    		
    	break;
    	}
    	
    wait 0.05;
    }
    }
    
    MonitorBotHealth( )
    {
    pTemp = "";
    
    	for(;;)
    	{
    
    		self.crate1 waittill("damage", eInflictor, attacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime);
    
    		attacker thread maps\mp\gametypes\_damagefeedback::updateDamageFeedback(sHitLoc);
    			self.crate1.health -= iDamage;
    		
    		if( (self.crate1.health <= 0) && (self.name != pTemp) )
    		{
    			self notify("bot_death");
    			self.crate1 notify("bot_death");
    
    			self killEnt(self, 0);
    			self.crate1 killEnt(self.crate1, 0);
    
    			if(isDefined(attacker.usingUAV) && attacker.usingUAV)
    				attacker PlayLocalSound( maps\mp\gametypes\_teams::getTeamVoicePrefix( attacker.team ) + "ac130_fco_rightontarget" );
    			
    			attacker thread multikill();
    
    			attacker thread maps\mp\gametypes\_rank::scorePopup( 200, 0, (0,0,1), 1 );
    			attacker.kills++;
    			attacker.pers["kills"] = attacker.kills;
    			attacker.score += 200;
    			attacker.pers["score"] = attacker.score;
    			attacker.pers["botKillstreak"]++;
    
    			pTemp = self.name;
    			break;
    		}
    		
    		if(isDefined(attacker.usingUAV) && attacker.usingUAV)
    			attacker PlayLocalSound( maps\mp\gametypes\_teams::getTeamVoicePrefix( attacker.team ) + "ac130_fco_thatsahit" );
    
    	wait 0.05;
    	}
    }
    
    GetBestPlayerAndMoveTo( )
    {
    self endon("bot_death");
    
    	for(;;)
    	{
    		TmpDist = 999999999;
    		pTarget = undefined;
    
    		foreach( player in level.players )
    		{	
    			if(!isAlive(player))
                    continue;
    				
    			if(level.teamBased && self.team == player.pers["team"])
                    continue;
    				
    			if( !bulletTracePassed( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), false, self ) )
                    continue;
    				
    			if(player.sessionstate != "playing")
    				continue;
    				
    			if(distancesquared(self.origin, player.origin) < TmpDist)
    			{
    				TmpDist = distancesquared(self.origin, player.origin);
    				pTarget = player;
    			}
    		}
    
    		movetoLoc = VectorToAngles( pTarget getTagOrigin("j_head") - self getTagOrigin( "j_head" ) );
    		self.angles = (0, movetoLoc[1], 0);
    		
    		self MoveTo(pTarget.origin, (distance(self.origin, pTarget.origin) / 200));
    		//self MoveTo(pTarget.origin, (distancesquared(self.origin, pTarget.origin) / 40000));
    		
    	wait 0.08;
    	}
    
    }
    
    MonitorAttackPlayers( )
    {
    self endon("bot_death");
    
    	for(;;)
    	{
    		foreach( player in level.players )
    		{
    			if(distancesquared(player.origin, self.origin) <= 729)
    			{
    				earthquake(0.7,1, self.origin + (0,0,40), 60);
    				player.health--;
    
    				if(player.health <= 40)
    				{
    					player thread maps\mp\gametypes\_damage::finishPlayerDamageWrapper( self, self, 999999, 0, "MOD_MELEE", "none", player.origin, player.origin, "none", 0, 0 );
    					self.kills++;
    				}
    			}
    		}
    
    	wait 0.07;
    	}
    
    }
    
    ClampToGround()
    {
    	self endon("bot_death");
    	self endon("crate_gone");
    
    	while(1)
    	{
    			trace = bulletTrace(self.origin + (0,0,50), self.origin + (0,0,-40), false, self);
    			if(isdefined(trace["entity"]) && isDefined(trace["entity"].targetname) && trace["entity"].targetname == "bot")
    				trace = bulletTrace(self.origin + (0,0,50), self.origin + (0,0,-40), false, trace["entity"]);
    
    			self.origin = (trace["position"]);
    			self.currentsurface = trace["surfacetype"];
    			if(self.currentsurface == "none")
    				self.currentsurface = "default";
    
    		wait .5;
    	}
    }
    
    KillIfUnderMap( )
    {
    self endon("bot_death");
    
    	for(;;)
    	{
    		if((self.origin[2] < 2000) && (getDvar("mapname") == "mp_highrise"))
    		{
    
    			self KillEnt(self, 0);
    			self notify("bot_death");
    			
    		break;
    		}
    		
    	wait 0.05;
    	}
    }
    
    ZombieMarkers()
    {
    
    for(;;)
    {
    	if(AImod\_botUtil::ZombieCount() <= level.BotsForIcons && level.RealSpawnedBots > level.BotsForIcons)
    		for(i = 0; i < level.BotsForWave; i++)
    		{
    			if((isDefined(level.bots[i])) && (isDefined(level.bots[i].crate1.health)) && (level.bots[i].crate1.health > 0) && (!level.bots[i].hasMarker))
    			{
    				if ( isdefined( self.lastDeathIcon ) )
    					level.bots[i].lastDeathIcon destroy();
    	
    				newdeathicon = newHudElem();
    				newdeathicon.x = level.bots[i].origin[0];
    				newdeathicon.y = level.bots[i].origin[1];
    				newdeathicon.z = level.bots[i].origin[2] + 54;
    				newdeathicon.alpha = .61;
    				newdeathicon.archived = true;
    				newdeathicon setShader("headicon_dead", 5, 5);
    				newdeathicon setwaypoint( true, false );
    	
    				level.bots[i].lastDeathIcon = newdeathicon;
    				level.bots[i].hasMarker = true;
    				level.bots[i] thread MoveIcon(level.bots[i].lastDeathIcon);
    				level.bots[i] thread BotDestroyOnDeath(level.bots[i].lastDeathIcon);
    			}
    		}
    		
    	else if(AImod\_botUtil::ZombieCount() > level.BotsForIcons)
    		for(i = 0; i < level.BotsForWave; i++)
    		{
    			if((isDefined(level.bots[i])) && (isDefined(level.bots[i].crate1.health)) && (level.bots[i].crate1.health > 0) && (level.bots[i].hasMarker))
    			{
    				if ( isdefined( self.lastDeathIcon ) )
    					level.bots[i].lastDeathIcon destroy();
    
    				level.bots[i].hasMarker = false;
    				level.bots[i] notify("noicon");
    			}
    		}
    
    wait 0.1;
    }
    
    }
    
    MoveIcon(icon)
    {
    self endon("bot_death");
    self endon("noicon");
    
    for(;;)
    {
    	icon.x = self.origin[0];
    	icon.y = self.origin[1];
    	icon.z = self.origin[2] + 54;
    
    wait 0.05;
    }
    
    }
    Try? :P

  11. #11
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried
    That's not what I want.
    Last edited by darkorlegend; 05-31-2011 at 07:24 AM.

  12. #12
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried
    Ronda 1: 105 Health
    Ronda 2: 105 Health
    Ronda 3: 1000 Health ---> One Zombie <---
    Ronda 4: 105 Health
    Ronda 5: 105 Health
    Ronda 6: 1000 Health ---> One Zombie <---
    Ronda 7: 105 Health
    Ronda 8: 105 Health
    Ronda 9: 105 Health
    Ronda 10: 1000 Health ---> One Zombie <---
    Last edited by darkorlegend; 05-31-2011 at 07:26 AM.