// MD3 model weapons weapon hud
EDIT: and now somehow I have broke my ammunition...
I have 2 actors for shotgun shellbox and shell, one big ammo pack, and one smaller, they both display fine, they can be both picked up as MD3 model, but they do not add ammo to the shotgun anymore.. WTF?
actors\pickups.shotgun.decorate
Code: Select all
// REPLACES OG D2 SHOTGUN WITH DN3D SHOTGUN
// NOTE THE "SHOTGUN " WITH EXTRA SPACE AT THE END
actor DukeShotgun : Weapon replaces Shotgun
{
Weapon.SelectionOrder 1300
Weapon.AmmoUse 1
Weapon.AmmoGive 2
// Weapon.AmmoType "DukeShotgunAmmo"
// Weapon.AmmoType1 "DukeShotgunAmmoShell"
Weapon.AmmoType "Shell"
Weapon.AmmoType1 "ShellBox"
// Weapon.AmmoType2 "ShellBox"
Inventory.PickupMessage "Shotgun"
Inventory.PickupSound "duke/weaponup"
Obituary "$OB_MPSHOTGUN"
Tag "$TAG_SHOTGUN"
States
{
Ready:
MOD1 A 1 A_WeaponReady
Loop
Deselect:
MOD1 A 1 A_Lower
Loop
Select:
MOD1 A 1 A_Raise
Loop
Fire:
MOD1 A 3
MOD1 A 7 A_FireShotgun
MOD1 BC 5
MOD1 D 4
MOD1 E 5
MOD1 F 3
MOD1 G 7 A_ReFire
Goto Ready
Flash:
MOD1 A 4 Bright A_Light1
MOD1 B 3 Bright A_Light2
Goto LightDone
Spawn:
MOD9 A -1
Stop
}
}
Code: Select all
// REPLACES Doom 2 Shellbox
Actor DukeShotgunAmmo : Ammo replaces ShellBox
//actor DukeShotgunAmmo : Ammo 10471
{
Inventory.PickupMessage "+10 SHOTGUN AMMO"
Inventory.Amount 10
Inventory.MaxAmount 50
+INVENTORY.IGNORESKILL
Inventory.Icon "AAMOA0"
Ammo.BackpackAmount 10
Ammo.BackpackMaxAmount 100
states
{
Spawn:
MOD1 A -1
stop
}
}
Code: Select all
// REPLACES Doom 2 Shell
Actor DukeShotgunAmmoShell : Ammo replaces Shell
{
Inventory.PickupMessage "+3 SHOTGUN SHELLS"
Inventory.Amount 3
Inventory.MaxAmount 50
Ammo.BackpackAmount 10
Ammo.BackpackMaxAmount 100
+INVENTORY.IGNORESKILL
Inventory.Icon "SHGAM0"
// Inventory.PickupSound "duke/weaponup"
States
{
Spawn:
MOD1 A -1
Stop
}
}