1
This commit is contained in:
parent
06f28083e1
commit
aa957e59b1
@ -328,7 +328,9 @@ static void InternalCreateBullet(BulletInfo& bullet_info)
|
|||||||
bullet_info.trace_target_uniid,
|
bullet_info.trace_target_uniid,
|
||||||
bullet_info.hand,
|
bullet_info.hand,
|
||||||
bullet_info.reporter_list,
|
bullet_info.reporter_list,
|
||||||
bullet_info.shot_uniid);
|
bullet_info.shot_uniid,
|
||||||
|
0,
|
||||||
|
bullet_info.duration);
|
||||||
if (bullet_uniid && (bullet_info.trace_target_uniid || bullet_info.reporter_list)) {
|
if (bullet_uniid && (bullet_info.trace_target_uniid || bullet_info.reporter_list)) {
|
||||||
c->room->AddReportBullet(
|
c->room->AddReportBullet(
|
||||||
bullet_uniid
|
bullet_uniid
|
||||||
@ -491,7 +493,7 @@ void InternalShot(Creature* c,
|
|||||||
}
|
}
|
||||||
if (c->IsPlayer() || c->IsCar()) {
|
if (c->IsPlayer() || c->IsCar()) {
|
||||||
#ifdef MYDEBUG
|
#ifdef MYDEBUG
|
||||||
a8::XPrintf("idx:%d offset:%f,%f,%f angle:%f old_angle:%f angle_xyz:%f,%f,%f %f %f gun_muzzle_position:%f,%f,%f pos:%f,%f,%f gun_id:%d t:%d fly_distance:%f delay_time:%d hand:%d\n",
|
a8::XPrintf("idx:%d offset:%f,%f,%f angle:%f old_angle:%f angle_xyz:%f,%f,%f %f %f gun_muzzle_position:%f,%f,%f pos:%f,%f,%f gun_id:%d t:%d fly_distance:%f delay_time:%d hand:%d duration:%d\n",
|
||||||
{
|
{
|
||||||
bulletIdx,
|
bulletIdx,
|
||||||
bullet_born_offset.x,
|
bullet_born_offset.x,
|
||||||
@ -514,7 +516,8 @@ void InternalShot(Creature* c,
|
|||||||
shot_animi_time,
|
shot_animi_time,
|
||||||
fly_distance,
|
fly_distance,
|
||||||
std::get<3>(tuple),
|
std::get<3>(tuple),
|
||||||
shot_animi && shot_animi->is_other ? shot_animi->GetShotHand(bulletIdx - 1) : -1
|
shot_animi && shot_animi->is_other ? shot_animi->GetShotHand(bulletIdx - 1) : -1,
|
||||||
|
duration
|
||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user