[DECORATE] I'm having trouble with custom shotguns.
Posted: Wed Jan 16, 2019 8:55 am
Me: *works on All-Out War mod*
Me: *creates keyconf saying this:*
clearplayerclasses
addplayerclass USMarine nomenu
Me: *creates DECORATE saying this:*
//===========================================================================
//
// Player
//
//===========================================================================
ACTOR USMarine : PlayerPawn
{
Speed 1
Health 100
Radius 16
Height 56
Mass 100
PainChance 255
+THRUSPECIES
+MTHRUSPECIES
Player.DisplayName "James"
Player.StartItem "AngledPistol"
Player.StartItem "Machete"
Player.StartItem "Clip", 50
Player.WeaponSlot 1, Machete, Chainsaw
Player.WeaponSlot 2, AngledPistol
Player.WeaponSlot 3, DukeShotgun, Coachgun
Player.WeaponSlot 4, HMachineGun
Player.WeaponSlot 5, MP40
Player.WeaponSlot 6, MP60
Player.WeaponSlot 7, QuadShotgun
}
The DukeShotgun won't replace the regular shotgun in my maps.
DukeShotgun DECORATE:
actor DukeShotgun : DoomWeapon replaces Shotgun
{
Weapon.SelectionOrder 1300
Weapon.AmmoUse 1
Weapon.AmmoGive 8
Weapon.AmmoType "Shell"
Inventory.PickupMessage "You got the shotgun! Time to fuck up those Plutonians!"
Obituary "%o was murdered by %k's shotgun, yikes."
Attacksound "DukeShotgun/Fire"
Decal "BulletChip"
States
{
Ready:
DNSG A 1 A_WeaponReady
Loop
Deselect:
DNSG A 1 A_Lower
Loop
Select:
DNSG A 1 A_Raise
Loop
Fire:
DNSG A 3
DNSG B 1 A_FireBullets (6, 4, 7, 5, "BulletPuff")
DNSG B 0 radius_quake(2, 2, 0, 1, 0)
DNSG B 0 A_GunFlash
DNSG CDEDCB 1 bright
DNSG A 3
DNSG FGH 1
DNSG I 2 A_PlaySound ("DukeShotgun/Pump")
DNSG JKLKJI 2
DNSG HGF 1
DNSG A 7 A_ReFire
Goto Ready
Flash:
TNT1 A 4 Bright A_Light1
TNT1 A 3 Bright A_Light2
Goto LightDone
Spawn:
DNSP A -1
Stop
}
}
Somebody, please help me
Me: *creates keyconf saying this:*
clearplayerclasses
addplayerclass USMarine nomenu
Me: *creates DECORATE saying this:*
//===========================================================================
//
// Player
//
//===========================================================================
ACTOR USMarine : PlayerPawn
{
Speed 1
Health 100
Radius 16
Height 56
Mass 100
PainChance 255
+THRUSPECIES
+MTHRUSPECIES
Player.DisplayName "James"
Player.StartItem "AngledPistol"
Player.StartItem "Machete"
Player.StartItem "Clip", 50
Player.WeaponSlot 1, Machete, Chainsaw
Player.WeaponSlot 2, AngledPistol
Player.WeaponSlot 3, DukeShotgun, Coachgun
Player.WeaponSlot 4, HMachineGun
Player.WeaponSlot 5, MP40
Player.WeaponSlot 6, MP60
Player.WeaponSlot 7, QuadShotgun
}
The DukeShotgun won't replace the regular shotgun in my maps.
DukeShotgun DECORATE:
actor DukeShotgun : DoomWeapon replaces Shotgun
{
Weapon.SelectionOrder 1300
Weapon.AmmoUse 1
Weapon.AmmoGive 8
Weapon.AmmoType "Shell"
Inventory.PickupMessage "You got the shotgun! Time to fuck up those Plutonians!"
Obituary "%o was murdered by %k's shotgun, yikes."
Attacksound "DukeShotgun/Fire"
Decal "BulletChip"
States
{
Ready:
DNSG A 1 A_WeaponReady
Loop
Deselect:
DNSG A 1 A_Lower
Loop
Select:
DNSG A 1 A_Raise
Loop
Fire:
DNSG A 3
DNSG B 1 A_FireBullets (6, 4, 7, 5, "BulletPuff")
DNSG B 0 radius_quake(2, 2, 0, 1, 0)
DNSG B 0 A_GunFlash
DNSG CDEDCB 1 bright
DNSG A 3
DNSG FGH 1
DNSG I 2 A_PlaySound ("DukeShotgun/Pump")
DNSG JKLKJI 2
DNSG HGF 1
DNSG A 7 A_ReFire
Goto Ready
Flash:
TNT1 A 4 Bright A_Light1
TNT1 A 3 Bright A_Light2
Goto LightDone
Spawn:
DNSP A -1
Stop
}
}
Somebody, please help me