custom filters

AeitZean

L1: Registered
Oct 8, 2010
4
0
is there /are there already a way to create a custom entity filter_activator_equipment ?

i want to find a way to detect what players have equipped and change their spawn room accordingly, i.e. everyone with a hat on goes to one room, and without a hat to another.

is it possible to do this just in the map's code, or do i need to customise a whole server?

thanks
 

Draco18s

L9: Fashionable Member
Sep 19, 2009
622
136
You're asking for something that likely can't even be done with a server side plugin. I mean, hell, there isn't even a filter to determine if a func_breakable is taking damage from a melee weapon, a rocket, fire, or bullets.

No really. :| You can't filter a breakable object to only take damage from certain weapon categories (eg. damage filter).
 

AeitZean

L1: Registered
Oct 8, 2010
4
0
You're asking for something that likely can't even be done with a server side plugin. I mean, hell, there isn't even a filter to determine if a func_breakable is taking damage from a melee weapon, a rocket, fire, or bullets.

No really. :| You can't filter a breakable object to only take damage from certain weapon categories (eg. damage filter).

really? seriously?

hot damn thats restrictive. i was thinking of doing a map where the spawn room for people with hats had mirrors with a glass wall to the other team so they could show off to each other, meanwhile people without hats start closer to the action.

oh well, thanks for the info, i cant belive we cant even tell what a person has equipped :(
 

Draco18s

L9: Fashionable Member
Sep 19, 2009
622
136
really? seriously?

Last I tried, yes. They did recently update the DAMAGE_TYPE fields to have TF2 damage types and not HL2 damage types (lol Frost damage displays as a train kill) so I haven't checked with those yet.

But I wouldn't be overly surprised if you still couldn't filter for melee/bullets/explosive.

(In a related vein: medigun needles, huntsman arrows, the flamethrower, and flares cannot damage func_breakable objects)
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
Actually I think it would be entirely possible with a server plugin, filtering based on equipment wouldn't be hard at all when you have that kind of access.
Also you can actually filter for weapon slot (filter_tf_damaged_by_weapon_in_slot), that was added with training mode.

and uhh the damage type names is my doing, not Valve's >.>
 

Draco18s

L9: Fashionable Member
Sep 19, 2009
622
136
and uhh the damage type names is my doing, not Valve's >.>

Ah of course. I didn't connect getting the Lazy Noob Pack* with that change.

In which case I'll forgo testing again.

*Your Hammer tools thing. The DF Lazy Noob Pack is a one stop shop download for all of the major utilities, stable version of the game, and a graphical tileset. So you can see the similarities.
 

AeitZean

L1: Registered
Oct 8, 2010
4
0
Actually I think it would be entirely possible with a server plugin, filtering based on equipment wouldn't be hard at all when you have that kind of access.
Also you can actually filter for weapon slot (filter_tf_damaged_by_weapon_in_slot), that was added with training mode.

and uhh the damage type names is my doing, not Valve's >.>

any hints as to what i should do if i want to filter by weather a hat is equipped then? filter entity in hammer? server plugin? give up?
 

matou

L2: Junior Member
Oct 25, 2008
86
20
(In a related vein: medigun needles, huntsman arrows, the flamethrower, and flares cannot damage func_breakable objects)

Which is very upsetting :( especially when back in the day i had such a cool idea with breakables.
 

Draco18s

L9: Fashionable Member
Sep 19, 2009
622
136
Which is very upsetting :( especially when back in the day i had such a cool idea with breakables.

It's a shame, but most breakable structure ideas still function even without those classes using those weapons. You can even set the damage threshold up to about 35-40 and every class can still break things with SOME weapon (for the medic, sniper, and pyro that'll be melee).
 

matou

L2: Junior Member
Oct 25, 2008
86
20
Well it was like a bust door down and capture a base. so if the pyro couldnt help kind of makes him useless other then running around spychecking or stopping the defending team from jump off their walls.