Mortal Rifle pickup model. Ammo models pending.

This commit is contained in:
Mari the Deer 2022-09-06 21:44:57 +02:00
commit b7286d536e
14 changed files with 64 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Before After
Before After

13
gldefs.mortalrifle Normal file
View file

@ -0,0 +1,13 @@
HardwareShader Texture "models/MortalRifle.png"
{
Shader "shaders/glsl/Envmask.fp"
Texture "masktex" "models/MortalRifle_mask.png"
Texture "envtex" "models/envmap/leadenv.png"
Texture "rimtex" "models/envmap/leadrim.png"
Define "RIM_LIGHTING"
Define "ENVFACT" = "1.5"
Define "RIMFACT" = "1.2"
Define "RIMSTEP" = ".2"
}

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r409 \cu(Tue 6 Sep 15:33:22 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r409 \cu(2022-09-06 15:33:22)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r410 \cu(Tue 6 Sep 21:44:57 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r410 \cu(2022-09-06 21:44:57)\c-";

View file

@ -1,13 +1,28 @@
Model "MisterRifle"
{
Path "models/extra"
Path "models"
Model 0 "BaseCube_d.3d"
Skin 0 "CHIPTILR"
Scale 0.05 0.05 0.05
ZOffset 16
PitchOffset 30
Model 0 "MortalRiflePickup_d.3d"
SurfaceSkin 0 0 "MortalRifle.png"
SurfaceSkin 0 1 "NoLED.png"
Scale 0.25 0.25 0.25
ZOffset 20
AngleOffset 90
ROTATING
FrameIndex XZW1 A 0 0
}
Model "MisterRifleX"
{
Path "models"
Model 0 "MortalRiflePickup_d.3d"
SurfaceSkin 0 3 "MisterSight.png"
Scale 0.25 0.25 0.25
ZOffset 20
AngleOffset 90
ROTATING
DONTCULLBACKFACES
FrameIndex XZW1 A 0 0
}

BIN
models/MisterLED.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 B

BIN
models/MisterLED2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

BIN
models/MisterSight.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

BIN
models/MortalRifle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Binary file not shown.

BIN
models/MortalRifle_mask.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View file

@ -8,7 +8,7 @@ Weapon models:
x Sheen HMG
x Quadravol
- Sparkster Rifle
- Mortal Rifle
½ Mortal Rifle
- Ray-Khom
- Rafan-Kos

View file

@ -1,6 +1,8 @@
// Plutoni Inc. Mortal Rifle (from UnSX 2)
// Slot 9, spawns shared with Candygun
Class MisterRifleX : GhostArtifactX {}
Class MisterRifle : SWWMWeapon
{
int clipcount;
@ -9,6 +11,29 @@ Class MisterRifle : SWWMWeapon
Property ClipCount : clipcount;
override void PreTravelled()
{
Super.PreTravelled();
if ( tracer ) tracer.Destroy();
}
override void Travelled()
{
Super.Travelled();
if ( tracer ) return;
tracer = Spawn("MisterRifleX",pos);
tracer.angle = angle;
tracer.target = self;
tracer.FloatBobPhase = FloatBobPhase;
}
override void PostBeginPlay()
{
Super.PostBeginPlay();
tracer = Spawn("MisterRifleX",pos);
tracer.angle = angle;
tracer.target = self;
tracer.FloatBobPhase = FloatBobPhase;
}
Default
{
Tag "$T_MORTALRIFLE";
@ -28,6 +53,8 @@ Class MisterRifle : SWWMWeapon
Stamina 1600000;
+SWWMWEAPON.NOFIRSTGIVE;
+WEAPON.BFG;
Radius 30;
Height 28;
}
States
{