3053 {
3058
3060 {
3062 if (ctx.
Read(target))
3063 {
3065 }
3066
3067 vector hitPos = vector.Zero;
3068 if (ctx.
Read(hitPos))
3069 {
3071 }
3072
3073 int hitZoneIdx = -1;
3074 if (ctx.
Read(hitZoneIdx))
3075 {
3077 }
3078
3079 int finisherType = -1;
3080 if (ctx.
Read(finisherType))
3081 {
3082 if (finisherType != -1 && target)
3083 {
3084 bool isWithinRange = vector.Distance(
GetPosition(), target.GetPosition()) <= PlayerConstants.MAX_FINISHER_RANGE;
3085 if (!target.IsAlive() || !target.CanBeBackstabbed() || !isWithinRange)
3086 {
3087 finisherType = -1;
3088 }
3089 }
3091 }
3092
3093 return true;
3094 }
3095
3096 return false;
3097 }
ref DayZPlayerImplementMeleeCombat m_MeleeCombat
proto bool Read(void value_in)
vector GetPosition()
Get the world position of the Effect.