No build indicator for placeable buildings

Discussion in 'Implemented' started by Lazybum, Jul 5, 2014.

  1. Lazybum

    Lazybum :D Staff Member Moderator

    Messages:
    4,823
    Likes Received:
    190
    Trophy Points:
    0
    When you can't drop a building because enemies are close by the building should flicker or change to a different color(orange?) for a second. Placing buildings has always been funky but this could help cut back on the guessing game of why you can't do something when it looks like you can.

    Maybe extend it to pop up a different color if it didn't build because of a hill or something, but I think the first point is actually somewhat doable.
     
  2. ImSpartacus

    ImSpartacus nerf spec plz

    Messages:
    8,597
    Likes Received:
    7
    Trophy Points:
    0
    Yeah, it'd be nice to provide some means of communicating why you can't drop shit because of enemies and shit.
     
  3. Grantrithor

    Grantrithor Member

    Messages:
    9,820
    Likes Received:
    11
    Trophy Points:
    0
    I'd like for it to display the hitboxes of entities when you're in building-placing mode. That way you can see where you can place it and where you can't. That still leaves terrain issues still not being readily apparent, but you only gain convenience.
     
  4. Metruption

    Metruption Member

    Messages:
    804
    Likes Received:
    4
    Trophy Points:
    0
    This is why I was almost 30 seconds late dropping the VF in my second scrim.
     
  5. Z100000M

    Z100000M Vithered Weteran

    Messages:
    9,120
    Likes Received:
    70
    Trophy Points:
    0
    Also visible building range given by your units.
     
  6. flasche

    flasche Member Staff Member Moderator

    Messages:
    13,299
    Likes Received:
    168
    Trophy Points:
    0
    you know, i wonder how building placement actually works in empires. wonder if maybe candles cares to enlighten us?
     
  7. Beerdude26

    Beerdude26 OnThink(){ IsDownYet(); }

    Messages:
    7,243
    Likes Received:
    13
    Trophy Points:
    0
    Don't have the code at hand, but it does a bunch of checks. First off, it takes the bounding box of the model to be placed and checks if it intersects with anything that's not supposed to intersect. It also checks if the terrain isn't too uneven. Don't remember the specifics about that. Finally, there's a bunch of checks to see if the building is near (enemy) players and vehicles.

    On-topic: Yeah, we should definitely inform the commander why a building can't be placed. Some text is probably the easiest way.
     
  8. Sitka

    Sitka Member

    Messages:
    556
    Likes Received:
    2
    Trophy Points:
    0
    1: choose appropriate open area
    2: select appropriately sized building
    3: click like mad
    4: entire area scout/enemy checked
     
  9. flasche

    flasche Member Staff Member Moderator

    Messages:
    13,299
    Likes Received:
    168
    Trophy Points:
    0
    thanks a lot
     
  10. 101010

    101010 Member

    Messages:
    996
    Likes Received:
    2
    Trophy Points:
    0
    I know at one point there was a value in the scripts for required space. Changing it made placement a little easier.
     
  11. ViroMan

    ViroMan Black Hole (*sniff*) Bully

    Messages:
    8,381
    Likes Received:
    4
    Trophy Points:
    0
    ohh yes... this please.
     
  12. Tama

    Tama Developer Staff Member Web Developer

    Messages:
    684
    Likes Received:
    74
    Trophy Points:
    0
    I'm waiting for someone to review & merge branch "commander_building_colors", which allows a different colour for each reason why you can't build. It also cleared up the code a lot, so that for instance coloring the intersecting obstacle should be fairly straightforward.
     
  13. Lazybum

    Lazybum :D Staff Member Moderator

    Messages:
    4,823
    Likes Received:
    190
    Trophy Points:
    0
    Outstanding, not knowing why I can't build things when it says I can has been one of the most frustrating things when I command.
     

Share This Page