Post: create floor func
02-07-2012, 03:41 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Super clean way of making a floor. Just do this function right here VVVVVV and the number of rows and boom! Great for zombie patches

Basically to spawn do this in mod menu:
    
self thread createFloor(10,self.origin);


That would create a 10 x 10 floor with that ^^^^


create a floor!
    
createFloor(size,loc) //Satanic Hispanic Code
{
start = loc + (55,0,10);
type = "com_plasticcase_beige_big";
angles = (0,90,0);
x = 25;
y = 50;
for(i = 0; i < size; i++)
{
b = x * i;
self createBottom(start,type,(x * i,0,0),angles);
self createBottom(start,type,(0,y * i,0),angles); //BOUNDRIES
for(v = 0; v < size; v++)
{
self createBottom(start,type,(x + b,y * v,0),angles); //WTF?
}
}

}


Needed Func:
    
createBottom(start,type,loc,ang) //origin, type of crate,offset of the origin, and angles of object
{
box = spawn("script_model",start + loc);
box setModel(type);
box.angles = ang;
box solid();
box CloneBrushmodelToScriptmodel(level.airDropCrateCol lision);
}


ooh wow, can also be used to make a wall OMG! :wtf:

Again just call the size:
    
self thread createWall(10);


need func
    
createWall(size) //Satanic Hispanic Code
{
start = self.origin + (55,0,10);
type = "com_plasticcase_beige_big";
angles = (0,90,0);
y = 50;
z = 25;
for(i = 0; i < size; i++)
{
b = z * i;
self createBottom(start,type,(0,0,z * i),angles);
self createBottom(start,type,(0,y * i,0),angles); //BOUNDRIES
for(v = 0; v < size; v++)
{
self createBottom(start,type,(0,y * v,z + b),angles); //WTF?
}
}

}


example usage.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to Jakes625 for this useful post:

KingcreekS, Kitty=^.^=, PussayPatrol, tokzikate, USAB
02-07-2012, 04:14 AM #2
PussayPatrol
I'm a neat monster...
Originally posted by SatanicHispanic View Post
Super clean way of making a floor. Just do this function right here VVVVVV and the number of rows and boom! Great for zombie patches

Basically to spawn do this in mod menu:
    
self thread createFloor(10,self.origin);


That would create a 10 x 10 floor with that ^^^^


create a floor!
    
createFloor(size,loc) //Satanic Hispanic Code
{
start = loc + (55,0,10);
type = "com_plasticcase_beige_big";
angles = (0,90,0);
x = 25;
y = 50;
for(i = 0; i < size; i++)
{
b = x * i;
self createBottom(start,type,(x * i,0,0),angles);
self createBottom(start,type,(0,y * i,0),angles); //BOUNDRIES
for(v = 0; v < size; v++)
{
self createBottom(start,type,(x + b,y * v,0),angles); //WTF?
}
}

}


Needed Func:
    
createBottom(start,type,loc,ang) //origin, type of crate,offset of the origin, and angles of object
{
box = spawn("script_model",start + loc);
box setModel(type);
box.angles = ang;
box solid();
box CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
}


Rep4Rep Gaspkay:




















































































:carling:
02-07-2012, 05:31 AM #3
Originally posted by PussayPatrol View Post
Rep4Rep Gaspkay:


OK!















































:carling:

---------- Post added at 01:31 AM ---------- Previous post was at 12:15 AM ----------

added video of this.
02-07-2012, 03:44 PM #4
*cough* bump *cough*
02-07-2012, 08:53 PM #5
tokzikate
Gym leader
Originally posted by SatanicHispanic View Post
Super clean way of making a floor. Just do this function right here VVVVVV and the number of rows and boom! Great for zombie patches

Basically to spawn do this in mod menu:
    
self thread createFloor(10,self.origin);


That would create a 10 x 10 floor with that ^^^^


create a floor!
    
createFloor(size,loc) //Satanic Hispanic Code
{
start = loc + (55,0,10);
type = "com_plasticcase_beige_big";
angles = (0,90,0);
x = 25;
y = 50;
for(i = 0; i < size; i++)
{
b = x * i;
self createBottom(start,type,(x * i,0,0),angles);
self createBottom(start,type,(0,y * i,0),angles); //BOUNDRIES
for(v = 0; v < size; v++)
{
self createBottom(start,type,(x + b,y * v,0),angles); //WTF?
}
}

}


Needed Func:
    
createBottom(start,type,loc,ang) //origin, type of crate,offset of the origin, and angles of object
{
box = spawn("script_model",start + loc);
box setModel(type);
box.angles = ang;
box solid();
box CloneBrushmodelToScriptmodel(level.airDropCrateCol lision);
}


ooh wow, can also be used to make a wall OMG! :wtf:

Again just call the size:
    
self thread createWall(10);


need func
    
createWall(size) //Satanic Hispanic Code
{
start = self.origin + (55,0,10);
type = "com_plasticcase_beige_big";
angles = (0,90,0);
y = 50;
z = 25;
for(i = 0; i < size; i++)
{
b = z * i;
self createBottom(start,type,(0,0,z * i),angles);
self createBottom(start,type,(0,y * i,0),angles); //BOUNDRIES
for(v = 0; v < size; v++)
{
self createBottom(start,type,(0,y * v,z + b),angles); //WTF?
}
}

}


example usage.


Another nice release Winky Winky
You should try creating a good zombie game
02-08-2012, 12:18 AM #6
Originally posted by tokzikate View Post
Another nice release Winky Winky
You should try creating a good zombie game

Already created a zombie patch from scratch.
02-08-2012, 05:50 AM #7
tokzikate
Gym leader
Originally posted by SatanicHispanic View Post
Already created a zombie patch from scratch.

For mw2?
If so have you released it?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo