J.A.C.K.

J.A.C.K.

View Stats:
FIXED | Entities spawning in the ground
While working on a Half-Life map, I was placing entities when I noticed that my entities are being placed inside the ground. As in the Center of the Entity is being placed on the surface I'm clicking in the 3D view.

So an Info_Player_Start (player's character) is not being placed standing on the floor, but instead is now spawned inside the floor with the floor being at it's pelvis.

I've searched the Shortcut Keys, the Manual and the Settings but found nothing on this.
Anyone know what the issue is? Did I turn on a feature by accident?
Originally posted by tetoforever:
This is controlled by the FGD file. The origin of the entity is what it will be aligned to, and this is usually the center of the entity. The same applies to the info_player_start, which has it's origin right in the center.

To fix this when placing entities in the 3D view, J.A.C.K. supports a property in the FGD file called "offset", which is a vector value that controls how much the entity should be offset by when placed. This property doesn't exist in any normal FGD files for Hammer or Worldcraft, so if you are using an FGD file that isn't the one included with J.A.C.K., it is probably lacking the "offset" property.


Here is a line from the FGD file for Half-Life included with J.A.C.K.:
@BaseClass base(Appearflags, Angles) flags(Angle) size(-16 -16 -36, 16 16 36) color(0 255 0) offset(0 0 36) = PlayerClass []

This is used by all info_player_* entities. In this case, the offset property offsets the entity by 36 units in the Z direction (up), which puts it perfectly aligned to the floor.

If you have your own FGD file, add the "offset(0 0 36)" bit into yours.
< >
Showing 1-2 of 2 comments
The author of this thread has indicated that this post answers the original topic.
This is controlled by the FGD file. The origin of the entity is what it will be aligned to, and this is usually the center of the entity. The same applies to the info_player_start, which has it's origin right in the center.

To fix this when placing entities in the 3D view, J.A.C.K. supports a property in the FGD file called "offset", which is a vector value that controls how much the entity should be offset by when placed. This property doesn't exist in any normal FGD files for Hammer or Worldcraft, so if you are using an FGD file that isn't the one included with J.A.C.K., it is probably lacking the "offset" property.


Here is a line from the FGD file for Half-Life included with J.A.C.K.:
@BaseClass base(Appearflags, Angles) flags(Angle) size(-16 -16 -36, 16 16 36) color(0 255 0) offset(0 0 36) = PlayerClass []

This is used by all info_player_* entities. In this case, the offset property offsets the entity by 36 units in the Z direction (up), which puts it perfectly aligned to the floor.

If you have your own FGD file, add the "offset(0 0 36)" bit into yours.
Oh wow! Thank you! Thanks a lot actually! That's knowledge that I don't think I could have easily found anywhere.

I'll write this down in case I forget later. Thank you!
< >
Showing 1-2 of 2 comments
Per page: 1530 50