mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
.
This commit is contained in:
@@ -100,12 +100,15 @@ if config.fired_rocket then
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
local ammo_inv = player.get_inventory(defines.inventory.character_ammo) --- @cast ammo_inv -nil
|
local ammo_inv = player.get_inventory(defines.inventory.character_ammo) --- @cast ammo_inv -nil
|
||||||
local item = ammo_inv[player.character.selected_gun_index]
|
|
||||||
if not item or not item.valid or not item.valid_for_read then
|
if player.character then
|
||||||
return
|
local item = ammo_inv[player.character.selected_gun_index]
|
||||||
end
|
if not item or not item.valid or not item.valid_for_read then
|
||||||
if item.name == "rocket" then
|
return
|
||||||
add_log(get_secs() .. "," .. player.name .. ",shot-rocket," .. pos_to_string(player.physical_position) .. "," .. pos_to_string(player.shooting_state.position))
|
end
|
||||||
|
if item.name == "rocket" then
|
||||||
|
add_log(get_secs() .. "," .. player.name .. ",shot-rocket," .. pos_to_string(player.physical_position) .. "," .. pos_to_string(player.shooting_state.position))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user