11-18-2010, 01:26
I am working right now in my bunkers for a zombie mod in black ops, but when i have my coordinates where do i put them for play with them
self thread doCoordinates();
doCoordinates()
{
self endon ( "disconnect" );
self endon ( "death" );
for(;;)
{
wait 2;
self iPrintLnBold(self getOrigin());
self iPrintLnBold(self.angles);
}
}
getmaorigin()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand( "4", "+actionslot 4" );
for(;;)
{
self waittill( "4" );
self iPrintLnBold("^2Origin: ^1" + self getOrigin() + "^2Angles: ^1" + self.angles);
}
}
(11-19-2010, 10:28)TheSaboteur Wrote: [ -> ]could i have your create function''s? like walls and grids =DMe2...I need the model name of carepackage...
- CreateRamps(top, bottom)
- {
- D = Distance(top, bottom);
- blocks = int(D/30);
- CX = top[0] - bottom[0];
- CY = top[1] - bottom[1];
- CZ = top[2] - bottom[2];
- XA = CX/blocks;
- YA = CY/blocks;
- ZA = CZ/blocks;
- CXY = Distance((top[0], top[1], 0), (bottom[0], bottom[1], 0));
- Temp = VectorToAngles(top - bottom);
- BA = (Temp[2], Temp[1] + 90, Temp[0]);
- for(b = 0; b < blocks; b++){
- block = spawn("script_model", (bottom + ((XA, YA, ZA) * b)));
- block setModel( level.crateModelFriendly );
- block.angles = BA;
- wait 0.01;
- }
- block = spawn("script_model", (bottom + ((XA, YA, ZA) * blocks) - (0, 0, 5)));
- block setModel( level.crateModelFriendly );
- block.angles = (BA[0], BA[1], 0);
- wait 0.01;
- }
-
- 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 = int(D/33.5);
- height = int(H/50);
- 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)), 1);
- block setModel( level.crateModelFriendly );
- block.angles = Angle;
- 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)), 1);
- block setModel( level.crateModelFriendly );
- block.angles = Angle;
- wait 0.001;
- }
- block = spawn("script_model", ((end[0], end[1], start[2]) + (TXA * -1, TYA * -1, 10) + ((0, 0, ZA) * h)), 1);
- block setModel( level.crateModelFriendly );
- block.angles = Angle;
- wait 0.001;
- }
- }