bots and walls

Discussion in 'Mapping Questions & Discussion' started by cladiron, Jul 24, 2010.

  1. cladiron

    cladiron L1: Registered

    Messages:
    15
    Positive Ratings:
    0
    Hey guys , i'm new to the community here, but i have been playing with hammer on and off for a while.
    i released the map tr_pyro-compression_v1 which has bots.
    I have noticed the bots are able to see threw the walls.
    i have tried to tie various entities to the wall but they can still track a normal player.

    Any ideas or tips ? or if it's even possible to prevent ?


    thanks
     
  2. martijntje

    martijntje L8: Fancy Shmancy Member

    Messages:
    539
    Positive Ratings:
    168
    texture a brush with the "block los" texture. Bots wont be able to "see" through that brush
     
  3. cladiron

    cladiron L1: Registered

    Messages:
    15
    Positive Ratings:
    0
    thanks for the quick reply. i tried that and it does not seem to work.

    i am adding the bots with bot_generator

    i then found the texture "Block LOS" and created 4 walls around the bot with that texture.

    i also created a another 4 walls near by with another bot in it. all walls were glass except for the walls facing the bot. they bot still tracked me. :(

    could this be a bug or am i doing something wrong ?
     
  4. martijntje

    martijntje L8: Fancy Shmancy Member

    Messages:
    539
    Positive Ratings:
    168
    are they regular brushes or func_detail (I think they need to be regular brushes)
    and do they work with sentry guns?
     
  5. cladiron

    cladiron L1: Registered

    Messages:
    15
    Positive Ratings:
    0
    i had tried with regular brushes at first, then on a 2nd recompile, i tried with them tied to a func_wall.
    as for sentrys, i haven't tried ,as all in use in that map are solders and demos
     
  6. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    Do you mean the brushes had two textures (glass and blocklos) on them? They need to just be blocklos.
     
  7. cladiron

    cladiron L1: Registered

    Messages:
    15
    Positive Ratings:
    0
    it was tried both ways.
    [​IMG]
     
  8. cladiron

    cladiron L1: Registered

    Messages:
    15
    Positive Ratings:
    0
    anyone else able to prevent the bots from tracking threw the walls ?
     
  9. martijntje

    martijntje L8: Fancy Shmancy Member

    Messages:
    539
    Positive Ratings:
    168
    how about having a block, with glass texture on you side and a solid texture on the bots side
     
  10. StickZer0

    aa StickZer0 💙💙💃💙💙

    Messages:
    664
    Positive Ratings:
    667
    If there is glass on any side of the block it will be assumed seethrough to bots. you'd need to make a glass block with another smaller BlockLOS block inside it
     
  11. cladiron

    cladiron L1: Registered

    Messages:
    15
    Positive Ratings:
    0
    if you notice in my pic above, the square on the left with green writing in only a Block LOS, and theres also a large wall dividing the room( it's a Block LOS also) no textures added to it, and not attached to any entity func_wall, func_detail, ect..

    the 2 smaller squares on the right are mixtures of both.
    No matter where i go , all 4 bots track threw it all.
     
  12. cladiron

    cladiron L1: Registered

    Messages:
    15
    Positive Ratings:
    0
    This is to update this in case anyone wants to keep bots from seeing threw walls.
    It seems if you use a window texture in the instructions below it will not work.

    First create a brush using a "skyfog" texture. You may want to give this a texture of your choice, but do not use a window texture.
    Next create a "Block Bullets" brush (other textures may work, i did not test) Make it a little larger then the "skyfog" brush, and give it what ever texture you like.
     
  13. Fr0Z3nR

    aa Fr0Z3nR Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,391
    Positive Ratings:
    4,906
    Have you tried looking into nav meshing?
     
  14. cladiron

    cladiron L1: Registered

    Messages:
    15
    Positive Ratings:
    0
    Well what i'm using the bots for there is no need in Nav points. just setting the option to allow them to dodge is fine. it's only 1 or 2 bots in a large room and they attack (either demo or solder) and the client has to reflect the rockets or pipes back at the bots to try and kill them or perhaps to try and jump from 1 of the projectiles. it's a pyro training map.

    the rooms are side by side, so if a client in 1 room get close to the wall with the other bot in the other room. The bot in the other room will look towards the closest client, even if it threw a wall.

    This seems to have fixed it for me while testing, but i haven't put it in my map yet.
     
  15. Fr0Z3nR

    aa Fr0Z3nR Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,391
    Positive Ratings:
    4,906
    Another thing you could do is just have the rockets spawn, not fire from soldiers... it'd be a little easier to control from a programming perspective...
     
  16. cladiron

    cladiron L1: Registered

    Messages:
    15
    Positive Ratings:
    0
    That would be true, but with the bots being able to dodge around, it gives the client different angles and to go fight with.
    It would get boring the a rocket firing over and over from the same spot imo.
    this way the client has to move around kind'a simulating a fight with a a solder or demo.
    Only pipes and rockets are used.

    i just wanted to prevent bots from seeing threw the walls.
     
  17. Fr0Z3nR

    aa Fr0Z3nR Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,391
    Positive Ratings:
    4,906
    Thats fair.

    I've been thing about making one of these maps for my own personal use, and was going to use rockets coming from different "ports" that are chosen at random... that way you have to dodge/shoot back random ones...

    Yea, just one of the maps on my list of maps to "make" but probably never will (Its up there with the "Make the tron game-grid" arena map....