Hi everyone!
I have created a new weapon with which you start the level. The problem is that it appears with zero ammo, but in the status bar it says that you start with 50 ammo.
here the code:
DECWEAPS:
ACTOR NewPistol : Pistol
{
Weapon.SelectionOrder 1900
+WEAPON.WIMPY_WEAPON
Weapon.AmmoType "NewClip"
Weapon.AmmoUse 1
Weapon.AmmoGive 20
Weapon.SlotNumber 2
States
{
Deselect:
TNT1 A 0 A_Lower
PISG A 1 A_Lower
Loop
Select:
TNT1 A 0 A_Raise
PISG A 1 A_Raise
Loop
Fire:
PISG A 4
PISG A 6 A_FirePistol
PISG A 4
PISG A 5 A_ReFire
Goto Ready
Flash:
PISF A 7 Bright A_Light1
Stop
}
}
DECAMMO:
ACTOR NewClip : Clip replaces Clip
{
Inventory.Amount 10
Inventory.MaxAmount 200
Inventory.PickupMessage "Got an ammo clip"
States
{
Spawn:
CLIP B -1
Stop
}
}
The other problem, in the same mod, is when using the IDFA and IDKFA cheats. When activated it gives all weapons but without maximum ammo, and the status bar shows
max ammo.
Question
IronLich86
Hi everyone!
I have created a new weapon with which you start the level. The problem is that it appears with zero ammo, but in the status bar it says that you start with 50 ammo.
here the code:
DECWEAPS:
ACTOR NewPistol : Pistol { Weapon.SelectionOrder 1900 +WEAPON.WIMPY_WEAPON Weapon.AmmoType "NewClip" Weapon.AmmoUse 1 Weapon.AmmoGive 20 Weapon.SlotNumber 2 States { Deselect: TNT1 A 0 A_Lower PISG A 1 A_Lower Loop Select: TNT1 A 0 A_Raise PISG A 1 A_Raise Loop Fire: PISG A 4 PISG A 6 A_FirePistol PISG A 4 PISG A 5 A_ReFire Goto Ready Flash: PISF A 7 Bright A_Light1 Stop } }
DECAMMO:
ACTOR NewClip : Clip replaces Clip { Inventory.Amount 10 Inventory.MaxAmount 200 Inventory.PickupMessage "Got an ammo clip" States { Spawn: CLIP B -1 Stop } }
DECORATE:
#include "DECWEAPS" #include "DECAMMO" #include "DECHEAL" ACTOR NeoDoomGuy : DoomPlayer replaces DoomPlayer { Player.DisplayName "NeoMarine" Player.StartItem "NewPistol" Player.StartItem "NewFist" Player.StartItem "NewClip", 50 Player.WeaponSlot 1, "NewFist" Player.WeaponSlot 2, "NewPistol" }
The other problem, in the same mod, is when using the IDFA and IDKFA cheats. When activated it gives all weapons but without maximum ammo, and the status bar shows
max ammo.
Does anyone know where the problem comes from?
Thanks.
Share this post
Link to post
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.