if (achieve == "multirailed") this.multirailed = value;
if (achieve == "pointblank") this.pointblank = value;
if (achieve == "selfimmolation") this.selfimmolation = value;
+ if (achieve == "telefrag") this.telefrag = value;
+ if (achieve == "surprise") this.surprise = value;
return;
}
if (achieve == "multirailed") return this.multirailed;
if (achieve == "pointblank") return this.pointblank;
if (achieve == "selfimmolation") return this.selfimmolation;
+ if (achieve == "telefrag") return this.telefrag;
+ if (achieve == "surprise") return this.surprise;
return 0;
}
if (achieve == "multirailed") return "Multi Railed!";
if (achieve == "pointblank") return "Point Blank!";
if (achieve == "selfimmolation") return "Self-Immolation!";
+ if (achieve == "telefrag") return "Unexpected Kill!";
+ if (achieve == "surprise") return "Surprise!";
return "";
}
ATTRIB(Achievements, multirailed, int, 0);
ATTRIB(Achievements, pointblank, int, 0);
ATTRIB(Achievements, selfimmolation, int, 0);
+ ATTRIB(Achievements, telefrag, int, 0);
+ ATTRIB(Achievements, surprise, int, 0);
//Getters and setters for achievements
attacker.suicide = 1;
}
}
+
+ if(deathtype == DEATH_TELEFRAG.m_id) {
+ entity att_achv = attacker.achievements;
+ entity trg_achv = targ.achievements;
+ att_achv.inc_achievement(att_achv, "telefrag");
+ trg_achv.inc_achievement(trg_achv, "surprise");
+ att_achv.announce(att_achv, attacker, "telefrag");
+ trg_achv.announce(trg_achv, targ, "surprise");
+ }
}
float RadiusDamageForSource (entity inflictor, vector inflictororigin, vector inflictorvelocity, entity attacker, float coredamage, float edgedamage, float rad, entity cantbe, entity mustbe,