mirror of
https://github.com/SMGCommunity/Petari.git
synced 2024-11-23 13:40:02 +00:00
MagicBell::receiveMsgPlayerAttack (Minor Mismatch)
This commit is contained in:
parent
894e452969
commit
d790a76814
@ -2882,7 +2882,7 @@ init__9MagicBellFRC12JMapInfoIter,MagicBell.o,MapObj.a,true
|
||||
exeWait__9MagicBellFv,MagicBell.o,MapObj.a,true
|
||||
exeRing__9MagicBellFv,MagicBell.o,MapObj.a,minor
|
||||
attackSensor__9MagicBellFP9HitSensorP9HitSensor,MagicBell.o,MapObj.a,true
|
||||
receiveMsgPlayerAttack__9MagicBellFUlP9HitSensorP9HitSensor,MagicBell.o,MapObj.a,false
|
||||
receiveMsgPlayerAttack__9MagicBellFUlP9HitSensorP9HitSensor,MagicBell.o,MapObj.a,minor
|
||||
tryRing__9MagicBellFv,MagicBell.o,MapObj.a,false
|
||||
startRing__9MagicBellFRCQ29JGeometry8TVec3<f>RCQ29JGeometry8TVec3<f>,MagicBell.o,MapObj.a,false
|
||||
__dt__9MagicBellFv,MagicBell.o,MapObj.a,true
|
||||
|
|
@ -117,7 +117,27 @@ void MagicBell::attackSensor(HitSensor *a1, HitSensor *a2) {
|
||||
}
|
||||
}
|
||||
|
||||
// MagicBell::receiveMsgPlayerAttack
|
||||
bool MagicBell::receiveMsgPlayerAttack(u32 msg, HitSensor *pSender, HitSensor *pReceiver)
|
||||
{
|
||||
if (MR::isMsgLockOnStarPieceShoot(msg)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!isNerve(&NrvMagicBell::MagicBellNrvWait::sInstance) && (isNerve(&NrvMagicBell::MagicBellNrvRing::sInstance) && MR::isGreaterStep(this, 10))) {
|
||||
|
||||
TVec3f v15(mPosition);
|
||||
v15.subtract(*MR::getPlayerPos());
|
||||
v15.y += 100.0f;
|
||||
MR::normalizeOrZero(&v15);
|
||||
TVec3f v14(v15);
|
||||
v14.scale(-200.0f);
|
||||
v14.addInline2(mPosition);
|
||||
startRing(v15, v14);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// MagicBell::tryRing
|
||||
// MagicBell::startRing
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user