158 if ( victim.IsZombie() )
163 if ( victim.IsZombieMilitary() )
175 else if ( source.IsWeapon() && killer )
178 distance =
vector.
Distance( killer.GetPosition(), victim.GetPosition() );
197 Print(
"Achievements: Cannot send achievement event. Error ID: " + error);
@ ACTION_IGNITE_FIRE_HAND_DRILL
@ ACTION_IGNITE_FIRE_MATCHBOX
@ ACTION_HANDCUFF_SURVIVOR
@ ACTION_IGNITE_FIRE_ROAD_FLARE
@ ACTION_APPLY_MEDS_ON_SURVIVOR
Achievements AchievementsXbox
@ RANK_SURVIVOR
must be TARGET_SURVIVOR
@ RANK_INFECTED
must be TARGET_INFECTED
@ RANK_INFECTED_SOLDIER
must be TARGET_INFECTED
static void OnEquippedFullGear()
static void OnActionHandcuff()
static proto EAchievementError SendEventKill(EAchievementTargetId target_id, EAchievementRankId rank_id, EAchievementRangeId range_id, EAchievementHitId hit_id, float distance)
private void Achievements()
static void OnPlayerKilled(EntityAI victim, EntityAI killer, EntityAI source, bool is_headshot)
static void OnActionIgniteDrill()
static void OnActionMedsSurvivor()
static void OnActionGutDeer()
static private void CheckError(EAchievementError error)
static void OnActionIgniteMatchbox()
static proto EAchievementError SendEventAction(EAchievementActionId action_id)
static void OnActionDrink()
static void OnActionShave()
static void OnActionEat()
static void OnActionIgniteRoadflare()
static void OnCookedSteak()
private void ~Achievements()
override bool IsMeleeWeapon()
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
proto void Print(void var)
Prints content of variable to console/log.