summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorenneract <trem.redman@gmail.com>2014-11-24 02:20:51 +0100
committerenneract <trem.redman@gmail.com>2014-11-24 02:20:51 +0100
commitb0a9981e09bbc7c30769f680a4e0ff17c9ea8239 (patch)
treed369ba2f0cebcf878ee32b420ec19a0786e9b4e8 /assets
parentf4413207a03658c719987d02fdbb87443843f43b (diff)
Implement the Lightning Gun.
Diffstat (limited to 'assets')
-rw-r--r--assets/gfx/lightning/beam.jpgbin0 -> 6750 bytes
-rw-r--r--assets/models/weapons/lightning/weapon.cfg14
-rw-r--r--assets/scripts/hw_lightning.particle35
-rw-r--r--assets/scripts/hw_lightning.shader9
4 files changed, 58 insertions, 0 deletions
diff --git a/assets/gfx/lightning/beam.jpg b/assets/gfx/lightning/beam.jpg
new file mode 100644
index 0000000..d3b2b30
--- /dev/null
+++ b/assets/gfx/lightning/beam.jpg
Binary files differ
diff --git a/assets/models/weapons/lightning/weapon.cfg b/assets/models/weapons/lightning/weapon.cfg
new file mode 100644
index 0000000..59133e2
--- /dev/null
+++ b/assets/models/weapons/lightning/weapon.cfg
@@ -0,0 +1,14 @@
+weaponModel models/weapons/lcannon/lcannon.md3
+icon icons/iconw_lucifer
+crosshair 48 gfx/2d/crosshair-lcannon_s
+
+primary
+{
+ continuousFlash
+
+ flashDlightColor 1.0 1.0 1.0
+
+ impactMark 8 gfx/marks/bullet_mrk
+ impactParticleSystem models/weapons/lightning/impactPS
+}
+
diff --git a/assets/scripts/hw_lightning.particle b/assets/scripts/hw_lightning.particle
new file mode 100644
index 0000000..afcba47
--- /dev/null
+++ b/assets/scripts/hw_lightning.particle
@@ -0,0 +1,35 @@
+
+models/weapons/lightning/impactPS
+{
+ ejector
+ {
+ particle
+ {
+ shader sync gfx/psaw/blue_particle
+
+ displacement 0 0 0 ~2.0
+
+ velocityType normal
+ velocityDir linear
+ velocityMagnitude 100
+ velocity 0 0 -1 ~90
+
+ accelerationType static
+ accelerationDir linear
+ accelerationMagnitude 800
+ acceleration 0 0 -1 ~10
+
+ radius 0 1.0~2.0 3.0~2.0
+ alpha 0 1.0 1.0
+ rotation 0 ~360 -
+ bounce 0.5
+
+ lifeTime 1000
+ }
+
+ count 3
+ delay 0
+ period 0 - ~0%
+ }
+}
+
diff --git a/assets/scripts/hw_lightning.shader b/assets/scripts/hw_lightning.shader
new file mode 100644
index 0000000..2fa0c0c
--- /dev/null
+++ b/assets/scripts/hw_lightning.shader
@@ -0,0 +1,9 @@
+gfx/lightning/beam
+{
+ nomipmaps
+ {
+ map gfx/lightning/beam
+ blendFunc add
+ tcMod scroll -5 0
+ }
+}