
I've already modify the onHit event to modify the behaviour of the Nucleus: +2 on short range, no effect on long range and +1 between these two. So I was thinking about something like this, but I don't know if we can get this kind of value (PlayerHitByAOE) somewhere:
Code: Select all
if (Event.Type == CSmModeEvent::EType::OnHit) {
if (Event.Shooter != Null && Event.Victim != Null && Event.Shooter.CurrentClan != Event.Victim.CurrentClan) {
...
switch (Event.WeaponNum) {
...
case 5: { // Hit by the arrow
if (!PlayerHitByAOE) { // Not by AOE but directly on his body
EventDamage += 100;
Event.ShooterPoints += 1;
}
}
}
}
}
Also, I'm using custom versions of Elite and ModeSport Scripts.
Thanks!