ExclamationZombie Mod Help!

Posts 1–11 of 11 · Page 1 of 1
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 \\
use something like the code from zombie mods with doors
combine it with the cash system
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
OK, but send me your xfire and talk ok?
Lol im hugo, raiikon
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.
Okay im going to talk with darkolegend and we´re going to try the entity destroy();
Why don't you use one of those millions of already made Zombie Mods?
We want to advance in the aizombies mod terms so please dont tell things like that
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...
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us