1057 {
1059 entity.GetCollisionBox(minMax);
1060
1062
1063 float from_override = entity.HeightStartCheckOverride();
1064 if (from_override > 0.0)
1065 {
1066 size[1] = from_override;
1067 }
1068 else
1069 {
1070 size[1] = minMax[1][1] - minMax[0][1];
1071 }
1072
1073 from = entity.GetPosition() + size;
1074 if ( entity.HeightCheckOverride() > 0 )
1075 {
1076 to = entity.GetPosition() +
Vector(0, entity.HeightCheckOverride(), 0);
1077 }
1078 else
1079 {
1080 vector ceiling =
"0 0 0";
1081 ceiling[1] = height;
1082 to = from + ceiling;
1083 }
1084 }
proto native vector Vector(float x, float y, float z)
Vector constructor from components.