feat(VehicleGun): Select custom model
This commit is contained in:
parent
00048bb277
commit
2a19a891d5
@ -35,7 +35,7 @@ namespace big
|
||||
location.y += dist * sin(yaw) * cos(pitch);
|
||||
location.z += dist * sin(pitch);
|
||||
Vehicle veh = vehicle::spawn(
|
||||
"bus",
|
||||
(const char*)g.weapons.vehicle_gun_model,
|
||||
location,
|
||||
ENTITY::GET_ENTITY_HEADING(player)
|
||||
);
|
||||
|
@ -20,6 +20,7 @@ struct globals {
|
||||
|
||||
struct weapons {
|
||||
CustomWeapon custom_weapon = CustomWeapon::NONE;
|
||||
char vehicle_gun_model[12] = "bus";
|
||||
};
|
||||
|
||||
self self{};
|
||||
|
@ -27,6 +27,25 @@ namespace big
|
||||
ImGui::EndCombo();
|
||||
}
|
||||
|
||||
switch (selected)
|
||||
{
|
||||
case CustomWeapon::NONE:
|
||||
break;
|
||||
case CustomWeapon::CAGE_GUN:
|
||||
break;
|
||||
case CustomWeapon::DELETE_GUN:
|
||||
break;
|
||||
case CustomWeapon::GRAVITY_GUN:
|
||||
break;
|
||||
case CustomWeapon::REPAIR_GUN:
|
||||
break;
|
||||
case CustomWeapon::VEHICLE_GUN:
|
||||
ImGui::Text("Shooting Model:");
|
||||
ImGui::InputText("##vehicle_gun_model", g.weapons.vehicle_gun_model, 12);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
ImGui::TreePop();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user