How to Change Chainguns name/make it fire faster?
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
-
- Posts: 32
- Joined: Mon Dec 14, 2020 9:51 am
How to Change Chainguns name/make it fire faster?
I'm admittedly a moron and and easily frustrated. I need to change the chainguns name to "Machine Gun" but I've had no success. I've also tried making it fire faster with even less success. Help?
ACTOR MachineGun : Chaingun replaces Chaingun 700
{
Inventory.PickupMessage "$GOTCHAINGUN" // "You got the Machine Gun"
Obituary "$OB_MPCHAINGUN" // "%o was mowed down by %k's machine gun."
States
{
Fire:
CHGG AB 2 A_FireCGun
CHGG B 0 A_ReFire
Goto Ready
}
}
ACTOR MachineGun : Chaingun replaces Chaingun 700
{
Inventory.PickupMessage "$GOTCHAINGUN" // "You got the Machine Gun"
Obituary "$OB_MPCHAINGUN" // "%o was mowed down by %k's machine gun."
States
{
Fire:
CHGG AB 2 A_FireCGun
CHGG B 0 A_ReFire
Goto Ready
}
}
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Re: How to Change Chainguns name/make it fire faster?
This code should be working; what you'll need to do is give it a weapon slot number (Weapon.SlotNumber) so the player can select it. Also, the pickup and obituary messages are still referencing the strings in the Language lump (all you've changed are the comment lines, represented by //, which the game does not actually read). You can fairly safely change the actual string references to the messages you want, for example:
Code: Select all
Obituary "%o feasted upon %k's lead banquet."
-
- Posts: 32
- Joined: Mon Dec 14, 2020 9:51 am
Re: How to Change Chainguns name/make it fire faster?
ACTOR MachineGun : Chaingun 700
{
Weapon.SlotNumber 4
Inventory.PickupMessage "You got the Machine Gun"
Obituary "%o was mowed down by %k's machine gun."
States
{
Fire:
CHGG AB 2 A_FireCGun
CHGG B 2 A_ReFire
}
}
Still no changes
{
Weapon.SlotNumber 4
Inventory.PickupMessage "You got the Machine Gun"
Obituary "%o was mowed down by %k's machine gun."
States
{
Fire:
CHGG AB 2 A_FireCGun
CHGG B 2 A_ReFire
}
}
Still no changes
-
- Posts: 53
- Joined: Fri Jan 08, 2021 6:53 pm
- Graphics Processor: Intel (Modern GZDoom)
- Location: Ye Olde StinkHole
Re: How to Change Chainguns name/make it fire faster?
Two things:DoomBoy1999 wrote:ACTOR MachineGun : Chaingun 700
{
Weapon.SlotNumber 4
Inventory.PickupMessage "You got the Machine Gun"
Obituary "%o was mowed down by %k's machine gun."
States
{
Fire:
CHGG AB 2 A_FireCGun
CHGG B 2 A_ReFire
}
}
Still no changes
1: you didn't replace the chaingun; in order to replace it, you need to change the editor number (700) to "replaces ChainGun" (if ur trying to make a new weapon, then this new machinegun appears after the origional in the weapon order)
2: this is a slight error, you cannot stop firing, because you didn't make the state end correctly
Here's the code, but fixed:
ACTOR MachineGun : Chaingun replaces Chaingun
{
Weapon.SlotNumber 4
Inventory.PickupMessage "You got the Machine Gun"
Obituary "%o was mowed down by %k's machine gun."
States
{
Fire:
CHGG AB 2 A_FireCGun
CHGG AB 2 A_ReFire
CHGG AB 1
goto ready
}
}
-
- Posts: 32
- Joined: Mon Dec 14, 2020 9:51 am
Re: How to Change Chainguns name/make it fire faster?
DECORATE warning in "ParkV2.wad.backup1.wad\DECORATE:1", line 14. Unable to find "Chaingun" class to replace, while parsing "MachineGun".
with the new code
with the new code
-
- Posts: 53
- Joined: Fri Jan 08, 2021 6:53 pm
- Graphics Processor: Intel (Modern GZDoom)
- Location: Ye Olde StinkHole
Re: How to Change Chainguns name/make it fire faster?
what source port are u using, and what iwad and what other addons?DoomBoy1999 wrote:DECORATE warning in "ParkV2.wad.backup1.wad\DECORATE:1", line 14. Unable to find "Chaingun" class to replace, while parsing "MachineGun".
with the new code
Because what this error is saying is that THERES NO CHAINGUN!
But it's also inheriting from the chaingun so

Also you should have the chaingun make decals, so heres some new code
Code: Select all
ACTOR MachineGun : Chaingun replaces Chaingun
{
Weapon.SlotNumber 4
Inventory.PickupMessage "You got the Machine Gun"
Obituary "%o was mowed down by %k's machine gun."
Decal BulletChip
Tag "MachineGun"
States
{
Fire:
CHGG AB 2 A_FireCGun
CHGG AB 2 A_ReFire
CHGG AB 1
goto ready
}
}
-
- Posts: 32
- Joined: Mon Dec 14, 2020 9:51 am
Re: How to Change Chainguns name/make it fire faster?
I use LZDoom and GZDoom
Im using is 3 texture packs for Doom 1, TNT, and Plutonia, a sprite pack for extra tree. And i have 1 new enemy the Rocketman. All this is from Realm 667. And i replaced the small and big font lumps.
Im using is 3 texture packs for Doom 1, TNT, and Plutonia, a sprite pack for extra tree. And i have 1 new enemy the Rocketman. All this is from Realm 667. And i replaced the small and big font lumps.
-
- Posts: 32
- Joined: Mon Dec 14, 2020 9:51 am
Re: How to Change Chainguns name/make it fire faster?
And the error still persists Ass.
-
- Posts: 32
- Joined: Mon Dec 14, 2020 9:51 am
Re: How to Change Chainguns name/make it fire faster?
Wait i have the error but it fucking works? Okay. Thanks guys!
-
- Posts: 53
- Joined: Fri Jan 08, 2021 6:53 pm
- Graphics Processor: Intel (Modern GZDoom)
- Location: Ye Olde StinkHole
Re: How to Change Chainguns name/make it fire faster?
a good idea also, is just to run gzdoom with just ur mod
so no 3 texture packs for Doom 1, TNT, and Plutonia, a sprite pack for extra tree, or 1 new enemy the Rocketman.
so no 3 texture packs for Doom 1, TNT, and Plutonia, a sprite pack for extra tree, or 1 new enemy the Rocketman.