Hey,
After much explaining and much s Insane asked me for a TUT to make
bunkers and relieve me from my s
So here I will explain.
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
You got a few different codes to edit your map and you need to know about:
1 Block:
Code:
CreateBlocks((x, y, z), (0, 0, 0));
x, y, z = Coordinates.
0, 0 ,0 = degrees of turning around.
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
Ramp:
Code:
CreateRamps((x, y, z), (x, y, z));
1st x, y, z = Starting ramp coordinates.
2nd x, y, z = Ending ramp coordinates
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
Grids aka Roof/Floor:
Code:
CreateGrids((x, y, z), (x, y, z), (0, 0, 0));
1st x, y, z = Corner coordinates.
2nd x, y, z = The other corner coordinates
Note: The corners have to be across of each other.
0, 0, 0 = degrees of turning around.
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
Walls:
Code:
CreateWalls((790, 1795, 278), (790, 1540, 498));
1st x, y, z = Corner coordinates.
2nd x, y, z = The other corner coordinates
Note: The corners have to be across of each other.
0, 0, 0 = degrees of turning around.
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
Teleport Flag:
Code:
CreateElevator((x, y, z), (x, y, z), (0, 0, 0));
1st x, y, z = Flag to walk in.
2nd x, y, z = Flag where you come out.
0, 0, 0 = degrees of turning around. (recommend to leave it that way)
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
Doors:
Code:
CreateDoors((x, y, z), (x, y, z), (0, 0, 0), 0, 0, 0, 0);
1st x, y, z = Corner coordinates.
2nd x, y, z = The other corner coordinates
Note: The corners have to be across of each other.
0, 0, 0 = degrees of turning around. (Recommended 90, -, -)
Because then the door will stand.
The other 0, 0, 0, 0 at the end =
1st 0 = Amout of carepackages the door exist in the length
2nd 0 = Amount of carepackages the door exist in the height
3rd 0 = Amount of lifes
4th 0 = Range of the opportunity to open the door.
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
Alright, so you know the above things now.
1st we have to find out coordinates.
To do that we can use something which is really usefull.
Its this code:
Code:
onPlayerSpawned()
{
self endon("disconnect");
self endon ( "death" );
self waittill("spawned_player");
self notifyOnPlayerCommand("r", "+reload");
for(;;)
{
self waittill("r");
self iPrintLnBold(self getOrigin());
}
}
What does this do?:
It will show the coordinates on your screen when you press the reload button.
Ok, now open up your _rank.gsc and backup the thread called: "OnPlayerSpawned()"
Just copy that to notepad or something to save because you'll have
to place it back when your finished with map editing.
Ok now replace the above code in your _rank.gsc file with the "OnPlayerSpawned()" thread and click save.
Note: When your ingame you cant see your health or your buymenu etc.
That's ok. When your finished and you replaced your "OnPlayerSpawned()" thread back, it will show again
Now go ingame and find your coordinates
Press "R" to show coordinates.
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
Example Ramp:
You want to make a way to walk over to a specific place.
Start coordinates: -597, -280, 212
Ending coordinates: -332, -522, 180
This is how you should get the code:
Code:
CreateRamps((-597, -280, 212), (-332, -522, 180));
----------------------------------------------------------------------------------------
Example Wall:
You want to make a wall.
Corner 1 coordinates: -488, -3840, 0
Corner 2 coordinates: -215, -3840, 100
This is how you should get the code:
Code:
CreateWalls((-488, -3840, 0), (-215, -3840, 100));
----------------------------------------------------------------------------------------
Example Door:
Start door Coordinates 1: -3400, 1050, 37
End door Coordinates 2: -3400, 1280, 40
Degrees: 90, 0, 0 (because i want the door to stand)
Door options: 2, 4, 20, 75
(Height: 2 Blocks, Width: 4 Blocks, Lifes: 20, 75)
Code:
CreateDoors((-3400, 1050, 37), (-3400, 1280, 40), (90, 0, 0), 5, 4, 20, 75);
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
Well if I helped you, Please press the Thanks button.
It took me much time to make this setup
Credits:
Me: For making this TUT
Insane: Idea for making this.
cgallagher21: For usefull finding coordinates
master131: For the 3rd/4th 0 in the door.
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------