The wiki says the size of a zealot is 27x23, which, when I input as an inverted location, does not detect that the zealot is there. Does anyone know the size of a zealot? Or is there a way to find out if no one knows?
Ok, using paint, counted the number of pixels, and I counted 23(width)x19(height). I made an inverted location (left,top,right,bottom) (23,19,0,0) and centered it on a zealot and it doesn't detect the zealot. I thought the unit size was wrong, but now I'm not sure. Is something wrong with the inverted location?
Post has been edited 1 time(s), last time on Feb 3 2010, 3:42 am by stickynote.
None.
STF mod creator, Modcrafters.com admin, CampaignCreations.org staff
The actual unit dimensions (that is, collision detection, not graphic size) in
units.dat are 23 pixels wide by 19 pixels high. There is a vertical bias, where from the center of the GRP the unit dimensions are 5 pixels above and 13 pixels below. This means the head and the top of the shoulders are not included in the Zealot's collision detection.
The dimensions you list are the size of the Zealot's Placement Box, which is relevant to StarEdit placement and building placement.
Post has been edited 1 time(s), last time on Feb 3 2010, 3:57 am by Hercanic.
http://wiki.teamliquid.net/starcraft/List_of_Unit_and_Building_SizesTeam Liquid states that it's 23x19, but why is your inverted location not detecting? You should not need an exact size.
None.
We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch
All I can tell you is that you can check datedit to get the true size of the unit.
Also when counting pixel you have to count the collision box scmdraft shows when placing units, not the unit itself.
Like most units, the center point of a Zealot is not actually in the center of the unit.
The size of a zealot is 11,11,5,13 (left,right,up,down), or 23x19.
Try making the inverted location smaller to detect it.
None.
22x18 inverted location doesn't detect it either. Does the vertical bias affect the way the inverted location should be?
@nude, I counted collision box.
None.
Use the zoom function on SCMDraft then make the location while zoomed, its worked for me before with goliaths. Should work with zealots?
None.
This exact problem has occurred twice before.This is why we use the search tool. Anything smaller than or equal to a 23x12 location works. Remeber that a 0,0,0,0 location is a 1x1 location.
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"
A real quick, related question: Does a unit only need to be touching an edge of an inverted location to count as in?
None.
No.
A unit is registered as inside a location if any part of the unit is right of the location's left border, left of the right border, below the top border and above the bottom border
See
this thread for more on the subject.
When you make your inverted location, the non-inverted location should horizontally look like my last post's picture of the tank. The location should be 1 smaller than the hitbox. The vertical distance should be 12 pixels, counting 0 (ie put 100 and 111 in the bottom and top coordinates respectively. 111-100=11, but if you count 100, it's 12.)
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"