Hi, how do I block attacks from one side?

Discussion in 'Mapping Questions & Discussion' started by 3choE, May 12, 2010.

  1. 3choE

    3choE L1: Registered

    Messages:
    14
    Positive Ratings:
    1
    Hi everybody, I need some help on making a simple training map.

    I use 2fort type of layout, and spawn bots in the center field. For the human players, I have teleporters inside the spawn rooms, for them to go to the sniping towers.


    1)
    Is it possible to make a nodraw type of barrier, to allow attack from one side only?

    That is, human players can attack the center field from the sniping towers, but not the vice versa.


    2)
    I set my training map to be a KOTH type by following this tutorial (link).

    (I will try using ABS sometime later, but not at the moment)

    As for the tf_logic_koth entity, I think it is now available in Source SDK. Anyway, as for the name, I followed the tutorial and typed in tf_logic_koth. As it is being shown in red, I am wondering if it would cause any issues (no issue during my testing though).


    Any help would be appreciated. :)
     
  2. HeaH

    HeaH L8: Fancy Shmancy Member

    Messages:
    553
    Positive Ratings:
    102
    1) You could make a brush with nodraw on the player side and blockbullets on the bot side

    2) Just use ABS
     
  3. Nutomic

    Nutomic L11: Posh Member

    Messages:
    888
    Positive Ratings:
    177
    I highly doubt that theres any way to do that.

    nodraw doesnt work for sure, as its static.

    You could only try using different filters and so, but it would probably only block rockets/grenades.

    But why dont you just make it so that players are invulnerable? (use Filter_damage_type and a trigger_multiple with !activator as target).



    And, how do you want to use Boojum? D:
     
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,531
    There isn't any way to make a one-way wall like that.
     
  5. 3choE

    3choE L1: Registered

    Messages:
    14
    Positive Ratings:
    1
    Thanks everyone for the kind replies.

    1)
    Nutomic,

    I don't want to do that, because for this training map (for now, mainly for sniping), besides players sniping the bots for practice, I also want players vs players.

    Actually, my original plan of a barrier blocking all attacks from one side wouldn't work for my above need.

    I am now using the Block LOS texture. While bots still occasionally fire at the players behind it, it still makes the area safe enough for sniping practice.

    I followed the link to read about the filter_damage_type, I don't understand about its purpose (I am a clueless newbie). Is that I can use it (in combination with trigger_multiple), to create an area which all attacks toward it will cause no damage?


    2)
    I installed the ABS, but don't know how to start using it. Is it like templates & extras that I choose from? :blushing:
    ___________________________________

    Got few new questions.

    1)
    I have a teleporter in the spawn room for transferring players to the sniping area. I tried to make a filter which will only allow sniper to activate the trigger_teleport, but with no success.

    Can anyone help me on this?

    < Edit >
    I have just found that has been discussed before, two years ago :O: link

    Have there anyone figured out a workaround to it? :(

    I decompiled the sniper_brawl_v3 (link), and the map creator is using a combination of:

    - point_clientcommand
    - filter_activator_class
    - trigger_multiple

    which makes everyone automatically become a sniper.

    I tried to implement that in front of my tele zone, that before a player steps onto the tele, the point_clientcommand will change his class by automatically doing the join_class sniper, but I got no success...


    2)
    Also, I once read a howto, on making a no-build area (thus engi can't place sentry/dispenser/tele), but can't find the link.

    Can someone teach me how please?
     
    Last edited: May 15, 2010
  6. alecom

    alecom L8: Fancy Shmancy Member

    Messages:
    516
    Positive Ratings:
    120
    For a nobuild brush, just make a brush with a trigger texture (so it's easy for you to distinguish) and then tie it to an entity by using ctrl+t
    then find the func_nobuild entity :)
     
    • Thanks Thanks x 1
  7. 3choE

    3choE L1: Registered

    Messages:
    14
    Positive Ratings:
    1
    alecom,

    Thanks for the answer. :)
     
  8. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    The pointclientcommand relies on some server settings AFAIK; unfortunately, I can't help you with that.
     
  9. Owlruler

    Owlruler L12: Fabulous Member

    Messages:
    964
    Positive Ratings:
    271
    Couldn't you just make a displacement. That would allow bullets (but not stickies etc) through. The problem would be that you can't (easily) walk through displacements.
     
  10. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,564
    Actually, yea. Displacements are 1 way.

    But as a training map you should be training people to dodge and hide as well as shoot and attack. I don't really see the need for having a 1 way sytem. Not to mention as a training map tr_walkway pretty much does everything you could ever want.
     
  11. 3choE

    3choE L1: Registered

    Messages:
    14
    Positive Ratings:
    1
    1)
    grazr, Owlruler:

    I agree. :p

    Just that the built-in bots love to spawn camping. When I tested with my first draft of the training map, I was constantly being spammed by the bots...

    So I changed it a bit, that each team is occupying two sides (of the four). One of the two is completely opened to all attacks, while another one I am using Block LOS to create a safe area (from the bots) for the newbie snipers.


    Since I want to host a pub practice server (mainly for sniping/backstabbing), tr_walkway doesn't work for me because it requires sv_cheats to be on.

    (While tr_walkway isn't intended for such usage, I did use it for my pub practice server for a month, and we all loved it. Yet few troublemakers started to come regularly and messed around with scripts, which kept crashing the server)

    (With sv_cheats enabled, those guys could crash the server, even just by adding lots of bots :()

    Another thing about tr_walkway, is that IMHO, its bot settings aren't too good for practicing, because they are like doing some cheesey boyband dance moves. I personally like the built-in TF2 bots better.

    For now I am using sniper_brawl_v3 (link) for my practice server, which is an awesome sniper map (tr_walkway is of course better as an all purpose training map). Just that I want a dual purpose map that can be used for sniper war, as well as sniping practice.


    2)
    Seba-079:

    I got it working now:

    [​IMG]

    So before a player being teleported to the sniping area, he will be switched to a sniper. I couldn't get it to work before, because I thought filter_activator_class was a part of the setup.
     
  12. Owlruler

    Owlruler L12: Fabulous Member

    Messages:
    964
    Positive Ratings:
    271
    You do know that there is a plugin to prevent other people using cheats when sv_cheats is on. A boojum snark used it a few times during the timewarp event but I don't personally know what it is.
     
  13. 3choE

    3choE L1: Registered

    Messages:
    14
    Positive Ratings:
    1
    Owlruler,

    Thanks for your reply. :)

    I am not sure which (SourceMod) plugin that would be either.

    The ones that I use for my pub servers are KAC (link) and Rcon locker (link). Neither of those two helped stopping player using scripts (thunderbolt, place items), or console commands like noclip / swap player / add bots.

    Also, I think KAC either doesn't like the settings of either tr_walkway, or sniper_brawl_v3. It has been a while and I forgot which map that was.
     
  14. HellJumper

    aa HellJumper

    Messages:
    812
    Positive Ratings:
    373
    That causes the map to fail compiling completely.