Skip to content

Commit

Permalink
ALTV-610 add source entity to damage event
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh committed Dec 26, 2024
1 parent b947011 commit 345627f
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 345627f

Please sign in to comment.