Initial commit.
This commit is contained in:
commit
b5c753ff4d
129 changed files with 4472 additions and 0 deletions
9
mods/firefly_weapons/firefly_streamer/init.lua
Normal file
9
mods/firefly_weapons/firefly_streamer/init.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
local ns = firefly
|
||||
|
||||
ns.register_weapon("streamer", {
|
||||
inventory_image = "firefly_weapon_streamer.png",
|
||||
fire_rate = 0.02,
|
||||
fire = function(m, s)
|
||||
ns.add_projectile(m.eye_pos +m.look_dir, {}, vector.new(0, 0, 1):rotate(vector.new(-m.pitch +(math.random() -0.5) /10, m.yaw +(math.random() -0.5) /10, 0)) *100, 0)
|
||||
end
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue