1
This commit is contained in:
parent
e3c42618b9
commit
a1e3fedf5d
@ -1154,7 +1154,15 @@ void Bullet::ReportHookHitPos(int hit_obj_uniid, const glm::vec3& hit_pos)
|
||||
float distance = GetPos().Distance2D2(hit_pos) + 3;
|
||||
GetMutablePos().FromGlmVec3(hit_pos);
|
||||
room->grid_service->MoveBullet(this);
|
||||
Check(distance);
|
||||
BulletCheckResult result;
|
||||
result.flyed_distance = distance;
|
||||
Creature* hit_obj = room->GetCreatureByUniId(hit_obj_uniid);
|
||||
//GetHitCreatures(result);
|
||||
if (hit_obj) {
|
||||
++result.c_hit_num;
|
||||
result.objects.insert(hit_obj);
|
||||
}
|
||||
ProcNormalBullet(result);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1809,8 +1809,9 @@ void Player::_CMGetSettlementTeamList(f8::MsgHdr* hdr, const cs::CMGetSettlement
|
||||
void Player::_CMReportHookHitPos(f8::MsgHdr* hdr, const cs::CMReportHookHitPos& msg)
|
||||
{
|
||||
#ifdef MYDEBUG
|
||||
a8::XPrintf("CMReportHookHitPos id:%d pos:%d %d %d\n",
|
||||
a8::XPrintf("CMReportHookHitPos id:%d hit_obj:%d pos:%d %d %d\n",
|
||||
{msg.bullet_uniid(),
|
||||
msg.hit_obj_uniid(),
|
||||
msg.pos().x(),
|
||||
msg.pos().y(),
|
||||
msg.pos().z(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user