Skip to content

Commit

Permalink
Merge pull request #337 from altmp/ALTV-610
Browse files Browse the repository at this point in the history
ALTV-610 add source entity to damage event
  • Loading branch information
OlegTrofimov authored Jan 13, 2025
2 parents 3f5b141 + 345627f commit f6e61d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/events/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ V8Helpers::LocalEventHandler weaponDamage(EventType::WEAPON_DAMAGE_EVENT,
args.push_back(V8Helpers::JSValue(ev->GetDamageValue()));
args.push_back(resource->CreateVector3(ev->GetShotOffset()));
args.push_back(V8Helpers::JSValue(static_cast<int8_t>(ev->GetBodyPart())));
args.push_back(resource->GetBaseObjectOrNull(ev->GetSourceEntity()));
});

V8Helpers::LocalEventHandler explosionEvent(EventType::EXPLOSION_EVENT,
Expand Down

0 comments on commit f6e61d4

Please sign in to comment.