972 {
974 entity.GetCollisionBox(minMax);
975
977
978 float from_override = entity.HeightStartCheckOverride();
979 if (from_override > 0.0)
980 {
981 size[1] = from_override;
982 }
983 else
984 {
985 size[1] = minMax[1][1] - minMax[0][1];
986 }
987
988 from = entity.GetPosition() + size;
989 if ( entity.HeightCheckOverride() > 0 )
990 {
991 to = entity.GetPosition() +
Vector(0, entity.HeightCheckOverride(), 0);
992 }
993 else
994 {
996 ceiling[1] = height;
997 to = from + ceiling;
998 }
999 }
proto native vector Vector(float x, float y, float z)
Vector constructor from components.