- Mar 14, 2008
- 11
- 0
I am posting this working scoreboard along with a request for some help with a filter.
Note: I kludged a fix to my own question. I would like to know if anyone has a batter system.
http://forums.tf2maps.net/downloads.php?do=file&id=437
I want a trigger_hurt to hurt anyone who is not carrying a flag. I saw a version of this on the rock2 map. In that map you pick up a gas mask to get immunity from a mass kill.
Here is what I have so far. (Edited for brevity)
entity
{
"classname" "item_teamflag"
"ReturnTime" "1"
"targetname" "Redflag"
"TeamNum" "3"
connections
{
"OnReturn" "Blue Score Relay,Trigger,,0,-1"
"OnPickup" "!activator,SetDamageFilter,fighter,0,-1"
}
entity
{
"classname" "filter_damage_type"
"damagetype" "65536"
"Negated" "1"
"targetname" "fighter"
}
entity
{
"id" "7937"
"classname" "trigger_hurt"
"damage" "100"
"damagecap" "20"
"damagemodel" "0"
"damagetype" "65536"
"nodmgforce" "0"
"origin" "0 -12 116.5"
"spawnflags" "1"
"StartDisabled" "0"
solid
{
}
}
So the guy gets a flag and is granted immunity. I will add another trigger to take away the
immunity when I get this working. The problem is that flag or no flag players take damage
when they enter the trigger. So what am I missing here?
Thanks in advance.
Note: I kludged a fix to my own question. I would like to know if anyone has a batter system.
http://forums.tf2maps.net/downloads.php?do=file&id=437
I want a trigger_hurt to hurt anyone who is not carrying a flag. I saw a version of this on the rock2 map. In that map you pick up a gas mask to get immunity from a mass kill.
Here is what I have so far. (Edited for brevity)
entity
{
"classname" "item_teamflag"
"ReturnTime" "1"
"targetname" "Redflag"
"TeamNum" "3"
connections
{
"OnReturn" "Blue Score Relay,Trigger,,0,-1"
"OnPickup" "!activator,SetDamageFilter,fighter,0,-1"
}
entity
{
"classname" "filter_damage_type"
"damagetype" "65536"
"Negated" "1"
"targetname" "fighter"
}
entity
{
"id" "7937"
"classname" "trigger_hurt"
"damage" "100"
"damagecap" "20"
"damagemodel" "0"
"damagetype" "65536"
"nodmgforce" "0"
"origin" "0 -12 116.5"
"spawnflags" "1"
"StartDisabled" "0"
solid
{
}
}
So the guy gets a flag and is granted immunity. I will add another trigger to take away the
immunity when I get this working. The problem is that flag or no flag players take damage
when they enter the trigger. So what am I missing here?
Thanks in advance.
Last edited: