[Fixed] Phantom pistol

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Phantom pistol

Post by HotWax »

Step 1: Add Strife's AssaultGun to a weapon slot.
Step 2: Give the player the AssaultGun in an ENTER script.
Step 3: Take the player's Pistol away. (He'll switch to the AssaultGun)
Step 4: As the player, fire the AG until you run out of bullets and your fist is auto-selected.
Step 5: Pick up another AssaultGun. The pistol will be selected!!!

If you switch away from the pistol, you won't be able to switch back. But as long as you have bullets, you can fire it. :oops:
User avatar
Csonicgo
Posts: 1193
Joined: Thu Apr 15, 2004 3:28 pm
Location: Leeds

Post by Csonicgo »

this has something to do with the chai---* is sent to hell*
User avatar
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:

Post by wildweasel »

Hmm. I just tried this myself - exactly as you described it. Same effect.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49231
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Can this be it? (in P_GiveAmmo):

Code: Select all

			case am_clip:
				if (player->readyweapon == wp_fist)
				{
					if (player->weaponowned[wp_chaingun])
						player->pendingweapon = wp_chaingun;
					else
						player->pendingweapon = wp_pistol;
				}
				break;

If the player gets new bullets the code never checks whether the pistol is in the inventory before switching to it. It just assumes it's always there!
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Makes sense, since in Doom this would always be the case anyway. A simple check for the pistol in inventory should remedy the situation. (And of course a check to switch to the AssaultRifle, if such a check does not already exist)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49231
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

The code needs a serious rewrite anyway.

1. It is hard coded to Doom's weapons (or Heretic's in case you are playing Heretic.)
2. Priority of change is also hard coded
3. With custom weapons it's far too limited.
User avatar
Bio Hazard
Posts: 4019
Joined: Fri Aug 15, 2003 8:15 pm
Location: ferret ~/C/ZDL $
Contact:

Post by Bio Hazard »

can there be a way to prioritize weapons yourself?

of course there would need to be a waynto change the list so the decorate weapons can be included for certain wads.

i guess it would have been implemented already if it was easy to do i guess...
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49231
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

I'm sure it will come some day. The problem is that ZDoom's weapon system allows adding weapons during a game which can make the thing a little complicated. If you want to prioritize all the weapons that are actually used in a mod a small text file would be more than enough to accomplish that.
User avatar
Cutmanmike
Posts: 11353
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

I wonder how HW managed to find that bug out :wink:
User avatar
Csonicgo
Posts: 1193
Joined: Thu Apr 15, 2004 3:28 pm
Location: Leeds

Post by Csonicgo »

cutmanmike wrote:I wonder how HW managed to find that bug out :wink:
HAHAHA! :P
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Umm, Cson. That was an in-joke between Cutty and myself. I was actually helping him out with a script utilizing Strife's AssaultGun. It had absolutely nothing to do with the chaingun. You may now go back into your corner and resume touching yourself.

On a side note, who the fuck ARE you?
Csonicgo's Profile wrote:Joined: 15 Apr 2004
Total posts: 41
[0.11% of total / 1.32 posts per day]
HotWax's Profile wrote:Joined: 18 Jul 2003
Total posts: 3589
[9.88% of total / 11.84 posts per day]
Like I said. Find a hole and shove yourself back in it, noob.
User avatar
Bio Hazard
Posts: 4019
Joined: Fri Aug 15, 2003 8:15 pm
Location: ferret ~/C/ZDL $
Contact:

Post by Bio Hazard »

OMG hotwax has 10% (almost) of the forum??? when did that happen?

you need a vacation!
User avatar
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:

Post by wildweasel »

I believe I'm indirectly responsible for the introduction of Csonicgo to these forums. After my ill-fated attempt to troubleshoot his problem with ZDoom, I guess he decided to come here...

EDIT: And Hotwax, I've been here three days longer than you. *evil grin*
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

My point was that I'm not about to take shit from some loser who comes in here a month ago and decides to flame me because he disagrees with my opinion. His posts in the chaingun thread weren't even accurate or valid, unlike most of the other posts people wrote in defense of the current behavior. Where the hell does he get off thinking he can insult me? Clearly I've been slacking in my job...
User avatar
Giest118
Posts: 2914
Joined: Fri Dec 05, 2003 11:02 pm

Post by Giest118 »

Bio Hazard wrote:OMG hotwax has 10% (almost) of the forum??? when did that happen?

you need a vacation!
... when mine and Xaser's postcounts were eradicated. :)
Post Reply

Return to “Closed Bugs [GZDoom]”