Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: How EXACTLY does Starcraft determine if...
How EXACTLY does Starcraft determine if...
Sep 18 2009, 6:39 pm
By: LazyCoder  

Sep 18 2009, 6:39 pm LazyCoder Post #1



Does it go by if the center point of a unit is within the rectangle? Or does each unit have a bounding rectangle or oval that Starcraft checks against to see if any part of that rectangle or oval is in the location? Or does Starcraft perform a per pixel search to see if ANY part of it is in the location (not bloody likely).

I need to know this so I can be very specific about a location size. I need to kill some units if they're keeping a building from being spawned, but ONLY if they're keeping it from being spawned. I'm trying to avoid a situation where there are 2+ zerglings, one of which is blocking the building, and another that's not but the location is too big so it kills it anyways.



None.

Sep 18 2009, 6:47 pm Kaias Post #2



http://www.staredit.net/wiki/Inverted_Locations

"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. Under normal circumstances, of course, this creates a rectangular area that units can enter."

The article is on inverted locations, but it makes the idea clear. Each unit has a collision size, a rectangle, that counts as its area. You can look at this area in Scmdraft by enabling debug and checking show unit collision sizes under the debug tab.



None.

Sep 18 2009, 11:24 pm rockz Post #3

ᴄʜᴇᴇsᴇ ɪᴛ!

In SCMDraft, the right and bottom lines actually include themselves. For example, a square location made in SCMDraft (or staredit for that matter) on a 32x32 grid makes a 33x33 pixel location as read by starcraft.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Sep 19 2009, 2:01 am Falkoner Post #4



I'm always mad when people say a 0x0 location, IT'S A FRIGGIN' 1X1 PIXEL!

Post has been edited 1 time(s), last time on Sep 19 2009, 4:02 am by Kaias. Reason: removed portion responding to deleted post



None.

Sep 19 2009, 4:04 am Lethal_Illusion Post #5



Quote from Falkoner
I'm always mad when people say a 0x0 location, IT'S A FRIGGIN' 1X1 PIXEL!
I think they're referring to it as a 0x0 square location. A 0x0 square location is the same as a 1x1 pixel location.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:46 pm]
Ultraviolet -- @:@
@:@ shouted: this community still going strong?
Still going.. strong is debatable though.
[04:13 pm]
WeirdoX4857 -- I can't believe this is really been around since 2003 but it does look classic and old asf still better than talking to kids on discord ranting about skibidi toilet and sexuality or whatever mental illness is going on in their heads
[04:11 pm]
WeirdoX4857 -- Nigga how you ask is it still going strong when you get a text every 3 miles per hour or something
[04:10 pm]
WeirdoX4857 -- Where is everybody
[01:21 pm]
@:@ -- this community still going strong?
[2026-9-27. : 4:30 pm]
Oh_Man -- yeah, probs
[2026-9-27. : 3:11 pm]
NudeRaider -- I bet it just needs another training session against pros instead of only against itself and nobody will be able to stop it anymore.
[2026-9-27. : 3:09 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
so it can be beaten by a prepared pro, even in macro games, if only barely. the muta micro in particular seems really hard to handle for protoss ground though. In the open goons can't catch them, in the base they trip over buildings, it just instantly flies out of storms and they fly circles around archons. Mass cannons do work, but can't cover the whole map with it. Probably need mass corsair to counter and hope you can outmaneuver all the scourge.
[2026-9-27. : 2:14 am]
Oh_Man -- pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
[2026-9-27. : 1:14 am]
Symmetry -- https://staredit.net/topic/18932/ check it
Please log in to shout.


Members Online: Roy, Prankenstein, DarkenedFantasies