Can we see what it looks like in game?
hello, we have advanced a little on the wall.
We do not know to do is add you can buy a wall.
Can you help me please?
CreateMoneyWalls(start, end)
{
D = Distance((start[0], start[1], 0), (end[0], end[1], 0));
H = Distance((0, 0, start[2]), (0, 0, end[2]));
blocks = roundUp(D/55);
height = roundUp(H/30);
CX = end[0] - start[0];
CY = end[1] - start[1];
CZ = end[2] - start[2];
XA = (CX/blocks);
YA = (CY/blocks);
ZA = (CZ/height);
TXA = (XA/4);
TYA = (YA/4);
Temp = VectorToAngles(end - start);
Angle = (0, Temp[1], 90);
for(h = 0; h < height; h++){
block = spawn("script_model", (start + (TXA, TYA, 10) + ((0, 0, ZA) * h)));
block setModel("com_plasticcase_friendly");
block.angles = Angle;
block Solid();
//block hide();
block CloneBrushmodelToScriptmodel(level.airDropCrateCol lision);
wait 0.0001;
for(i = 1; i < blocks; i++){
block = spawn("script_model", (start + ((XA, YA, 0) * i) + (0, 0, 10) + ((0, 0, ZA) * h)));
block setModel("com_plasticcase_friendly");
block.angles = Angle;
block Solid();
//block hide();
block CloneBrushmodelToScriptmodel(level.airDropCrateCol lision );
wait 0.0001;
}
block = spawn("script_model", ((end[0], end[1], start[2]) + (TXA * -1, TYA * -1, 10) + ((0, 0, ZA) * h)));
block setModel("com_plasticcase_friendly");
pos = (start + (TXA, TYA, 10) + ((0, 0, ZA) * h)+((XA, YA, 0) * i) + (0, 0, 10) + ((0, 0, ZA) * h)+(end[0], end[1], start[2]) + (TXA * -1, TYA * -1, 10) + ((0, 0, ZA) * h));//grax
block.angles = Angle;
block Solid();
level.mwall = 0;
//block hide();
block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
block.headIcon = newHudElem();
block.headIcon.x = block.origin[0];
block.headIcon.y = block.origin[1];
block.headIcon.z = block.origin[2] + 50;
block.headIcon.alpha = 0.85;
block.headIcon setShader( "cardicon_juggernaut_2", 10,10 );
block.headIcon setWaypoint( true, true, false );
trigger = spawn( "trigger_radius", pos, 0, 75, 50 );
trigger.angles = angle;
trigger thread MoneyWallThink(pos, angle);
block thread MoneyWallDestroy();
wait 0.0001;
}
}
MoneyWallThink(pos, angle)
{
self endon("disconnect");
level endon("Destroy");
while(1)
{
self waittill( "trigger", player );
if(Distance(pos, Player.origin) <= 75){
Player setLowerMessage("activate", "Hold ^3[{+activate}]^7 to activate power [^2$^1100^7]" );}
if(Distance(pos, Player.origin) >50){
Player ClearLowerMessage("activate", 1);}
if(Distance(pos, Player.origin) <= 75 && player.money >= 100 && player.pers["team"] == "allies" && player useButtonPressed())
{
player ClearLowerMessage("activate", 1);
player.money -= 100;
player notify("MONEY");
player playSound("nuke_explosion");
player thread maps\mp\gametypes\_rank::scorePopup( -10000, 0, (1,0,0), 1 );
Announcement( "^2" + self.name + "^3Has activated the power." );
level.mwall = 1;
level thread PowerSpawner();
level notify("power_activated");
level notify("Destroy");
wait 0.1;
}
else if(Distance(pos, Player.origin) <= 10000 && player.money <= 90 && player useButtonPressed())
{
player iPrintln("^1Not enough money for Power Need 10000!");
wait 1;
}
wait .8;
}
}
MoneyWallDestroy()
{
while(1)
{
if(level.mwall == 1)
{
self delete();
self.headIcon destroy();
}
wait 0.1;
}
}
Last edited by darkorlegend; 10-29-2011 at 01:47 PM.
Can we see what it looks like in game?
I get the wall.
But I get to buy it
money wall? what u mean with that
To buy a wall in the shop menu?
to buy the wall.
for example:
Minutes 00:30 at 00:35
you mean a buyable wall where in nazi zombies it lifts or moves something like that or a shop where it says buy wall and a wall pop up?
Waiting between worlds that divide through a choice undefined
A break in the line where all paths intertwine
And no roads lead or progress behind
And all signs read: "Know The Way. Decide"
A wall that moves when you buy
just like doors in zombie mod, but here you need to buy it to let you get to the next point?
just like doors in zombie mod, but here you need to buy it to let you get to the next point?
---> YES
No more problem raiikonn, darkolegend i made it this weekend with blocks linked between
We have it I give you all the code before cause im in my mobile
before you cause im in my mobile? xD normal english plz?
u mean you're on your mobile
you have the code but you can't send it?