A_GiveWeapon()
Moderator: GZDoom Developers
- DoomRater
- Posts: 8270
- Joined: Wed Jul 28, 2004 8:21 am
- Preferred Pronouns: He/Him
- Location: WATR HQ
- Contact:
A_GiveWeapon()
The problem I'm having with GiveInventory(weaponname) is that it does not autoselect even with NEVERSWITCHONPICKUP false. The usual workaround is to manually select it, but that always selects the weapon even when NEVERSWITCHONPICKUP true. Shouldn't the Berserk be the only item that does this? This is annoying, and I dunno if there's a way to check for the CVAR NEVERSWITCHONPICKUP. Either way, a seperate code pointer would be nice.
- DoomRater
- Posts: 8270
- Joined: Wed Jul 28, 2004 8:21 am
- Preferred Pronouns: He/Him
- Location: WATR HQ
- Contact:
Like I said, this selects the weapon even when NEVERSWITCHONPICKUP is set to true. That's not what I'm looking for... (specifically I want to get the dualSMG code working up to scratch)
What I need is either a way to check for NEVERSWITCHONPICKUP or a seperate codepointer which automatically does this by using the original weapon code. Personally I'd like a specific codepointer for it.
What I need is either a way to check for NEVERSWITCHONPICKUP or a seperate codepointer which automatically does this by using the original weapon code. Personally I'd like a specific codepointer for it.
- chaoscentral
- Posts: 677
- Joined: Sun Feb 27, 2005 4:32 pm
- Location: Revere, MA
- Contact:
- DoomRater
- Posts: 8270
- Joined: Wed Jul 28, 2004 8:21 am
- Preferred Pronouns: He/Him
- Location: WATR HQ
- Contact:
Exactly.... it would really help out there.
Code: Select all
TNT2 0 JumpIfInventory(SMGGun,1,1)
Stop
TNT2 0 A_GiveWeapon(dualSMG)
Stop