This section will explain to you how to use the e_stack command in Ent Mod:

 

Command Use:

e_stack

 

This tutorial will tell you how to use the e_stack command to copy entities efficiently.

 

e_stack is used to copy an entity one or more times each seperated by the space you specify. If you use the admin_lookingat command on a entity you will see it's mins and maxs. This helps to determine the size. If there's an entity you want to copy many times and make a floor out of, for example, copy it and put it at a corner of the floor your going to make. Then do admin_lookingat in the console while looking at it.

 

Look for the mins and maxs and you'll see something like:


Mins: -129.000000 1167.000000 -253.000000
Maxs: 129.000000 1537.000000 -243.0000

 

If you subtract the mins from the maxs you'll get the size of the entity:
Size on the X axis: 129--129 = 258
Size on the Y axis: 1537-1167= 370
Size on the Z axis: -243--253 = 10

 

Now use the showx and showy commands to see which direction is positive x and positive y. We'll assume for the command example that positive x and positive y is the direction we want to copy our entities.

So if we use the entity to make a 5 by 5 tile, we run the following commands while looking at the one we're making copies of:
e_stack 5 258 0 0
e_stack 5 0 370 0

 

Now we will have the sides of our 5 by 5 tile. To get the rest do one of the following:

  • Walk across the X axis and make copies of each new entity in the Y direction using the e_stack 5 0 370 0 command.
  • Walk across the Y axis and make copies of each new entity in the X direction using the e_stack 5 258 0 0 command.

You will now have 25 copies of the entity each touching each other making a perfect floor (assuming you used a rectangluar entity).

 

Another example (making a staircase):

By default, the biggest step you can take is 18 units up. Any thing more and you won't automatically move up, you'll have to jump. So for this example, we'll take an entity and use e_stack to create a staircase with steps 18 units tall.

Find an entity you want to use and put it on the ground. Now, to make a staircase in the X direction with 5 steps, run the following command while looking at the entity on the ground:
e_stack 5 24 0 18

This makes 5 steps, each of them 24 units out and 18 units up from the last.

 

Tips:

  • When using e_stack, you might want to try out only one copy for the stack amount before you make more to see if it looks good to you
  • It may be easier to you and prevent entites from getting lost in walls if you stack one by one
  • When using the data you got from admin_lookingat to make a decision on the size, it often looks best if you subtract 2 from the size you detemined after subtracting the mins from the maxs.
  • Using an excessively large number for the amount of entities may cause nearby players to overflow and/or crash the server.