Hi, how do I block attacks from one side?

3choE

L1: Registered
Feb 20, 2010
14
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. :)
 

HeaH

L8: Fancy Shmancy Member
Oct 2, 2008
553
102
1) You could make a brush with nodraw on the player side and blockbullets on the bot side

2) Just use ABS
 

Nutomic

L11: Posh Member
Feb 7, 2009
888
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:
 

3choE

L1: Registered
Feb 20, 2010
14
1
Thanks everyone for the kind replies.

1)
Nutomic,

But why dont you just make it so that players are invulnerable?

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.

(use Filter_damage_type and a trigger_multiple with !activator as target).

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:

lucky

¯\_(ツ)_/¯
May 25, 2009
583
145
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 :)
 

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
The pointclientcommand relies on some server settings AFAIK; unfortunately, I can't help you with that.
 

Owlruler

L12: Fabulous Member
Dec 10, 2008
964
275
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.
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
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.
 

3choE

L1: Registered
Feb 20, 2010
14
1
1)
grazr, Owlruler:

But as a training map you should be training people to dodge and hide as well as shoot and attack.

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.


Not to mention as a training map tr_walkway pretty much does everything you could ever want.

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:

The pointclientcommand relies on some server settings AFAIK; unfortunately, I can't help you with that.

I got it working now:

map05151001.jpg


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.
 

Owlruler

L12: Fabulous Member
Dec 10, 2008
964
275
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.
 

3choE

L1: Registered
Feb 20, 2010
14
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.