mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-03 04:23:39 +00:00
修复ProjectileHitEntity
事件
This commit is contained in:
parent
84287a4e3a
commit
4097c5417f
@ -1537,20 +1537,20 @@ TInstanceHook(void, "?explode@Explosion@@QEAAXXZ",Explosion) {
|
|||||||
|
|
||||||
|
|
||||||
////////////// ProjectileHitEntity //////////////
|
////////////// ProjectileHitEntity //////////////
|
||||||
// TClasslessInstanceHook(void, "?onHit@ProjectileComponent@@QEAAXAEAVActor@@AEBVHitResult@@@Z",
|
TClasslessInstanceHook(void, "?onHit@ProjectileComponent@@QEAAXAEAVActor@@AEBVHitResult@@@Z",
|
||||||
// Actor* item, HitResult* res) {
|
Actor* item, HitResult* res) {
|
||||||
// IF_LISTENED(ProjectileHitEntityEvent) {
|
IF_LISTENED(ProjectileHitEntityEvent) {
|
||||||
// Actor* to = res->getEntity();
|
Actor* to = res->getEntity();
|
||||||
// if (to) {
|
if (to) {
|
||||||
// ProjectileHitEntityEvent ev{};
|
ProjectileHitEntityEvent ev{};
|
||||||
// ev.mTarget = to;
|
ev.mTarget = to;
|
||||||
// ev.mSource = item;
|
ev.mSource = item;
|
||||||
// ev.call();
|
ev.call();
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// IF_LISTENED_END(ProjectileHitEntityEvent)
|
IF_LISTENED_END(ProjectileHitEntityEvent)
|
||||||
// return original(this, item, res);
|
return original(this, item, res);
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////// WitherBossDestroy //////////////
|
////////////// WitherBossDestroy //////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user