I've read up a bit on the damaged message, but I'm still confused. How does it work? I read that SourceRef is the attacker, and SenderRef is the victim. I wanna make a protected mode so that you can damage a player, but you get killed, damaged back, or something like that.
[This message has been edited by Sabre_Wulf (edited August 25, 2004).]
Code:
damaged: player = GetLocalPlayerThing(); AttackerDude = GetSourceRef(); if(AttackerDude == player) Return; // insert commands here for consequences
[This message has been edited by Sabre_Wulf (edited August 25, 2004).]