Post: {How To} Create Different Model Walls
02-22-2011, 01:54 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Well I'm back with another tutorial! In this tutorial I will be explaining how to create walls made of different models. For example, my favorite wall is one composed of sentry guns. It looks really cool and acts the same as a carepackage wall.

You must login or register to view this content.


First you will need the building code for a wall:
    
CreateWalls(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("[COLOR="red"]com_plasticcase_friendly[/COLOR]");
block.angles = Angle;
block Solid();
block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
wait 0.001;
for(i = 1; i < blocks; i++){
block = spawn("script_model", (start + ((XA, YA, 0) * i) + (0, 0, 10) + ((0, 0, ZA) * h)));
block setModel("[COLOR="red"]com_plasticcase_friendly[/COLOR]");
block.angles = Angle;
block Solid();
block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
wait 0.001;
}
block = spawn("script_model", ((end[0], end[1], start[2]) + (TXA * -1, TYA * -1, 10) + ((0, 0, ZA) * h)));
block setModel("[COLOR="Red"]com_plasticcase_friendly[/COLOR]");
block.angles = Angle;
block Solid();
block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
wait 0.001;
}
}


roundUp( floatVal )
{
if ( int( floatVal ) != floatVal )
return int( floatVal+1 );
else
return int( floatVal );
}


Now find a model you want(thanks to Derek):You must login or register to view this content.

Now find the code highlighted in red and replace it with your model. Simple!

So for a wall of sentry guns your code should look like this:
    CreateWalls(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("[COLOR="red"]sentry_minigun[/COLOR]");
block.angles = Angle;
block Solid();
block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
wait 0.001;
for(i = 1; i < blocks; i++){
block = spawn("script_model", (start + ((XA, YA, 0) * i) + (0, 0, 10) + ((0, 0, ZA) * h)));
block setModel("[COLOR="red"]sentry_minigun[/COLOR]");
block.angles = Angle;
block Solid();
block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
wait 0.001;
}
block = spawn("script_model", ((end[0], end[1], start[2]) + (TXA * -1, TYA * -1, 10) + ((0, 0, ZA) * h)));
block setModel("[COLOR="Red"]sentry_minigun[/COLOR]");
block.angles = Angle;
block Solid();
block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
wait 0.001;
}
}


roundUp( floatVal )
{
if ( int( floatVal ) != floatVal )
return int( floatVal+1 );
else
return int( floatVal );
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to FourzerotwoFAILS for this useful post:

EliteMossy, The_Platypus, xQuZe-
02-22-2011, 02:07 AM #2
Lolicon
All rights reserved TMĀ®
lol a wall made entierly out of sex dolls in terminal ^_^

The following user thanked Lolicon for this useful post:

juddylovespizza
02-22-2011, 02:18 AM #3
Originally posted by Cpt.Beast View Post
lol a wall made entierly out of sex dolls in terminal ^_^


haha nice.

---------- Post added at 09:18 PM ---------- Previous post was at 09:11 PM ----------

Originally posted by Cpt.Beast View Post
lol a wall made entierly out of sex dolls in terminal ^_^


Would you mind taking a picture of it for me?
02-22-2011, 02:20 AM #4
The Open Minded
☮✌Peace Maker✌☮
Originally posted by FourzerotwoFAILS View Post
haha nice.

---------- Post added at 09:18 PM ---------- Previous post was at 09:11 PM ----------



Would you mind taking a picture of it for me?

Hell yeah man I wanna see a pic of that too! That would be some funny shizt.
02-22-2011, 02:49 AM #5
Lolicon
All rights reserved TMĀ®
Originally posted by FourzerotwoFAILS View Post
haha nice.

---------- Post added at 09:18 PM ---------- Previous post was at 09:11 PM ----------



Would you mind taking a picture of it for me?


if i can find the code of the sex dolls sure why not :black:
02-22-2011, 03:03 AM #6
Originally posted by Cpt.Beast View Post
if i can find the code of the sex dolls sure why not :black:


furniture_blowupdoll01
02-22-2011, 03:05 AM #7
HtD
Dark Knight
A video would be siiick. Happy
02-22-2011, 03:09 AM #8
Originally posted by HtD View Post
A video would be siiick. Happy


I've tried a few recorders, but nothing has worked :(
02-22-2011, 03:22 AM #9
Blackstorm
Veni. Vidi. Vici.
lol Cool I guess :P
02-22-2011, 03:26 AM #10
jkry_2_1_
Call Me The CodFather
haha wall of chickens on rundown xD i guess a junkyard could be made with this so thanks.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo