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

    Exclamation Zombie Mod Help witch door [HELP!!!]

    Hello everyone, I'm looking for some code that could buy and move objects.

    Code:
    Code:
    CreateDoors(open, close, xangle, yangle, zangle, size, height, money, range)
    {
    	offset = (((size / 2) - 0.5) * -1);
    	center = spawn("script_model", open );
    	for(j = 0; j < size; j++){
    		door = spawn("script_model", open + ((0, 30, 0) * offset));
    		door setModel("com_plasticcase_enemy");
    		door Solid();
    		door CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
    		door EnableLinkTo();
    		door LinkTo(center);
    		for(h = 1; h < height; h++){
    			door = spawn("script_model", open + ((0, 30, 0) * offset) - ((70, 0, 0) * h));
    			door setModel("com_plasticcase_enemy");
    			door Solid();
    			door CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
    			door EnableLinkTo();
    			door LinkTo(center);
    		}
    		offset += 1;
    	}
    	if(!isDefined(yangle)){
    		Temp = VectorToAngles(open - close);
    		yangle = Temp[1]-90;
    	}
    	center.angles = (xangle, yangle, zangle);
    	center.state = "close";
    	
    	if(self.money >= money)
    	 {
    		level thread DoorThinkUse(open);
    	}
    	else
    	{
    		continue;
    	}
    	self.money = money;
    	center.range = range;
    	center thread DoorThinkUse(open, close);
    	center thread DoorUse();
    	wait 0.01;
    }
    
    
    DoorThinkUse(open)
    {
    	while(1)
    	{
    		
    			self waittill ( "triggeruse" , player );
    			if(player.team == "allies"){
    				
    				}
    				if(self.state == "close"){
    					self MoveTo(open, level.doorwait);
    					player sayall("^2Puerta comprada");
    					wait 0.1;
    					self.state = "open";
    					continue;
    				}
    		
    	}
    }
    
    DoorUse()
    {
    	while(1)
    	{
    		foreach(player in level.players)
    		{
    			if(DistanceSquared(self.origin, player.origin) <= Power(self.range, 2))
    			{
    				if(player.team == "allies")
    				{
    
    				
    					if(self.state == "close")
    					{
    						player.hint = "Aprieta la tecla ^3[{+activate}] ^7para comprar la ^3puerta";
    					}
    			
    				}
    				
    				else
    				{
    					if(player UseButtonPressed())
    					{
    						self notify( "triggeruse" , player);
    					}
    				}
    			}
    		}
    		wait .045;
    	}
    }

    Vídeo Example:
    Minutes: 0:30 at 0:35

    COD: World at War - "Nazi Zombies" Gameplay (3 of 5) (Machinima) - YouTube


    // My English is Bad \\
    Last edited by darkorlegend; 10-25-2011 at 12:18 PM.

  2. #2
    non ame's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    1,123
    Reputation
    193
    Thanks
    1,024
    use something like the code from zombie mods with doors
    combine it with the cash system

  3. #3
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    62
    My Mood
    Worried
    I tried it but it does not work

  4. #4
    hgmoa's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Cool
    Hey im the friend that is working with him. We´re trying to do exactly that. Open a door, but with money. Help us please

  5. #5
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    62
    My Mood
    Worried
    OK, but send me your xfire and talk ok?
    Last edited by darkorlegend; 10-25-2011 at 01:57 PM.

  6. #6
    hgmoa's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Cool
    Lol im hugo, raiikon
    Last edited by hgmoa; 10-25-2011 at 02:48 PM. Reason: Idea

  7. #7
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    Shouldn't be hard at all, simply spawn a door just like this, and then destroy (the function is: entity destroy(); ) all the carepackages (blocks)
    And yeah, remove the cash too.

  8. #8
    hgmoa's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Cool
    Okay im going to talk with darkolegend and we´re going to try the entity destroy();

  9. #9
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,986
    Reputation
    176
    Thanks
    913
    My Mood
    Blah
    Why don't you use one of those millions of already made Zombie Mods?


    The lines in my Steam are i's

  10. #10
    hgmoa's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Cool
    We want to advance in the aizombies mod terms so please dont tell things like that

  11. #11
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,986
    Reputation
    176
    Thanks
    913
    My Mood
    Blah
    Quote Originally Posted by hgmoa View Post
    We want to advance in the aizombies mod terms so please dont tell things like that
    I'm not offensive mate. I just don't understand it, or now i do because you told me...


    The lines in my Steam are i's

Similar Threads

  1. [Solved] No Hope Zombie Mod HELP!!!!
    By bulbesur in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 6
    Last Post: 06-30-2011, 07:27 AM
  2. [Help] Quarantine Zombie Mod improvements
    By kerocs in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 8
    Last Post: 08-09-2010, 06:24 AM
  3. Need Help With Editing Zombie Mod!
    By Pete8497 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 0
    Last Post: 08-07-2010, 01:38 PM
  4. [Help] No Hope - Zombie Mod
    By merked_nub in forum Call of Duty Modern Warfare 2 Help
    Replies: 7
    Last Post: 08-04-2010, 02:37 AM
  5. No Hope Zombie Mod Help
    By CoD6HMod in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 07-23-2010, 02:34 AM