Home   Help Search Login Register  

Author Topic: Detecting TKs/ Friendly Fire?  (Read 1201 times)

0 Members and 3 Guests are viewing this topic.

hurlothrumbo

  • Guest
Detecting TKs/ Friendly Fire?
« on: 18 Apr 2003, 11:28:28 »
Hi.  Anyone know how to make a trigger to detect when someone is killed by their own team?
I want this for a coop mission, so it doesn't really matter if it only detects player/player kills regardless of side.
I think it'd be something to do with strings like STR_KILLED_BY or something but I have no idea how to check it, or how to call it.

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Detecting TKs/ Friendly Fire?
« Reply #1 on: 18 Apr 2003, 15:12:11 »
This is an anti TK script i came across once. I have never tried to use it, it isnt any of my work

Hope this helps you out

********************************************************
another killshooter variation is to give the shooter the damage the player received, so if I hit a buddy with a stray bullet, he's okay, and I take the bullet (and nobody dies).  That's done this way:
teamkill = player addeventhandler [{Hit}, {_this exec {killshooter.sqs}}]

;Killshooter.sqs
;dinger@raf303.org
_killer = _this select 1
_damage = _this select 2
?_killer == player:exit
?side _killer != side player: exit
player setdammage ((getdammage player) - _damage)
_killer  setdammage ((getdammage player) + _damage)
exit

Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

hurlothrumbo

  • Guest
Re:Detecting TKs/ Friendly Fire?
« Reply #2 on: 18 Apr 2003, 16:07:41 »
I found the original post by manually browsing the forum.

Searching for 'dinger' or 'killshooter' or 'anti-TK' didnt bring up the post grrrr silly thing
« Last Edit: 18 Apr 2003, 16:59:45 by hurlothrumbo »