1
This commit is contained in:
parent
40ad332a7e
commit
544e5b6e67
@ -199,6 +199,7 @@ enum GunSubEquipType_e
|
|||||||
GUN_SUB_EQUIP_TYPE_THREE_GUN = 9,
|
GUN_SUB_EQUIP_TYPE_THREE_GUN = 9,
|
||||||
GUN_SUB_EQUIP_TYPE_LASER_CANNON = 10,
|
GUN_SUB_EQUIP_TYPE_LASER_CANNON = 10,
|
||||||
GUN_SUB_EQUIP_TYPE_FLY_HOOk = 14,
|
GUN_SUB_EQUIP_TYPE_FLY_HOOk = 14,
|
||||||
|
GUN_SUB_EQUIP_TYPE_FLY_LASER = 15,
|
||||||
GUN_SUB_EQUIP_TYPE_End
|
GUN_SUB_EQUIP_TYPE_End
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -125,6 +125,15 @@ void FrameEvent::AddBullet(int bullet_uniid,
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
int bullet_idx = room->frame_event_data->bullets_.size() - 1;
|
int bullet_idx = room->frame_event_data->bullets_.size() - 1;
|
||||||
|
if (weapon_meta->equip_subtype() == GUN_SUB_EQUIP_TYPE_FLY_LASER) {
|
||||||
|
sender.Get()->room->TraverseHumanList
|
||||||
|
(
|
||||||
|
[bullet_idx] (Human* hum) -> bool
|
||||||
|
{
|
||||||
|
hum->GetFrameData().bullets_.push_back(bullet_idx);
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
sender.Get()->TraverseAllLayerHumanList
|
sender.Get()->TraverseAllLayerHumanList
|
||||||
(
|
(
|
||||||
[bullet_idx, &sender] (Human* hum, bool& stop)
|
[bullet_idx, &sender] (Human* hum, bool& stop)
|
||||||
@ -138,6 +147,7 @@ void FrameEvent::AddBullet(int bullet_uniid,
|
|||||||
hum->GetFrameData().bullets_.push_back(bullet_idx);
|
hum->GetFrameData().bullets_.push_back(bullet_idx);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FrameEvent::RemoveBullet(glm::vec3 pos, int bullet_uniid)
|
void FrameEvent::RemoveBullet(glm::vec3 pos, int bullet_uniid)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user