add support for my version of binoculars
This commit is contained in:
parent
0b5971f2d2
commit
74204e154f
7
api.lua
7
api.lua
@ -437,7 +437,12 @@ function gunslinger.register_gun(name, def)
|
|||||||
end
|
end
|
||||||
-- Abort when making use of unimplemented features
|
-- Abort when making use of unimplemented features
|
||||||
if def.zoom then
|
if def.zoom then
|
||||||
error("register_gun: Unimplemented feature!")
|
if binoculars and binoculars.items then
|
||||||
|
binoculars.items[name] = def.zoom
|
||||||
|
if def.magazine then
|
||||||
|
binoculars.items[name.."_empty"] = def.zoom
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (def.mode == "automatic" or def.mode == "hybrid")
|
if (def.mode == "automatic" or def.mode == "hybrid")
|
||||||
|
1
depends.txt
Normal file
1
depends.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
binoculars?
|
Loading…
x
Reference in New Issue
Block a user