Skip to content

Commit 37b9771

Browse files
update readme / mod.conf / screenshots
1 parent 61108c1 commit 37b9771

6 files changed

+97
-6
lines changed

depends.txt

-4
This file was deleted.

mod.conf

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name = spacecannon
2+
description = Adds three scifi/space cannons with various projectile-speed and explosion-strength
3+
depends = default, technic
4+
optional_depends = mesecons, digilines

readme.md

+93-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,96 @@
11

2-
# Attributions
2+
Spacecannon mod
3+
4+
# Overview
5+
6+
Adds three scifi/space cannons with various projectile-speed and explosion-strength.
7+
The cannons need HV-Power from a `technic` network and can be controlled via formspec/hand, mesecons or digilines.
8+
They also need to charge first, which can take a couple of seconds depending on cannon-type.
9+
10+
The projectile detonates on impact but only in _non-protected_ areas!
11+
12+
# Screenshots
13+
14+
<img src="./screenshot_1.png"/>
15+
<img src="./screenshot_2.png"/>
16+
<img src="./screenshot_3.png"/>
17+
18+
19+
# Dependencies
20+
21+
Depends on:
22+
* `technic`
23+
24+
Supports:
25+
* `mesecons`
26+
* `digilines`
27+
28+
# Mesecons
329

30+
An "on" signal triggers a fire-action.
31+
32+
# Digilines
33+
34+
Fire a cannon:
35+
```lua
36+
if event.type == "program" then
37+
digiline_send("cannon", { command="fire" })
38+
end
39+
```
40+
41+
Example response from a "get" request:
42+
```lua
43+
{
44+
type = "digiline",
45+
channel = "c7",
46+
msg = {
47+
HV_EU_input = 0,
48+
HV_EU_demand = 0,
49+
dir = {
50+
y = 0,
51+
x = 0,
52+
z = 1
53+
},
54+
powerstorage = 10000,
55+
ready = true,
56+
origin = "c7",
57+
name = "spacecannon:cannon_green",
58+
pos = {
59+
y = 10,
60+
x = -64,
61+
z = -53
62+
}
63+
}
64+
}
65+
```
66+
67+
Example response from a "fire" request:
68+
```lua
69+
{
70+
type = "digiline",
71+
channel = "c2",
72+
msg = {
73+
pos = {
74+
y = 10,
75+
x = -59,
76+
z = -53
77+
},
78+
origin = "c2",
79+
success = true
80+
}
81+
}
82+
```
83+
84+
# Contributors
85+
86+
* @BuckarooBanzay
87+
* @dennisjenkins75
88+
89+
# License
90+
91+
Code: MIT
92+
Textures: CC-BY-SA 3.0
93+
94+
# Attributions
495

5-
* sounds/spacecannon_shoot.ogg https://freesound.org/people/jonccox/sounds/175261/
96+
* sounds/spacecannon_shoot.ogg https://freesound.org/people/jonccox/sounds/175261/

screenshot_1.png

1.44 MB
Loading

screenshot_2.png

1.8 MB
Loading

screenshot_3.png

1.1 MB
Loading

0 commit comments

Comments
 (0)