I am dumb!

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

I am dumb!

Postby DrewbieDoobie007 » Sun Oct 19, 2003 8:39 pm

I cant get a supershotgun to shoot, say, 5 times with one shot. I tried to move codepointer to unused frames but it is not working, I need a working example that I can go off of because everything I have tried doesn't work!

edit--
GOT IT, nevermind sorry, but I do need to make it check for ammo to see if there is enough for a shot, that way it doesnt go into negatives. Also, is there a way to make it still only use 2 shells even though it is actually firing 5 times (10 shells)
User avatar
DrewbieDoobie007
First time caller, long time DOOMer...
 
Joined: 24 Jul 2003
Location: Shelton, Nebraska, USA

Postby Nanami » Sun Oct 19, 2003 9:59 pm

For BEX patches, you have this option:

Code: Select allExpand view
Weapon 8 (SSG)
Ammo use = 1
Min ammo = 2


Min ammo use is the minimum amount of ammo it will allow you to have. That is, if you have less than 2 (like 1) it won't let you use the gun. For the BFG (for example) it's set at 40. Any less than that and you'd end up with negative ammo.

The ammo use, however, is only per pointer. So, in this example, the SSG only uses one shell per shot. But there are two codepointers that have firing frames, so it uses 2 in the end. I'm afraid there's no way to use, say, 2 codepointers for shots and only use 1 ammo.
User avatar
Nanami
Natdhipytadd
 
Joined: 15 Jul 2003
Location: That little island pritch created.

Postby Jon » Tue Oct 21, 2003 11:54 am

Why not make new code pointers that shoot without wasting ammo? *nudges randy*
User avatar
Jon
Why is my marine backwards?
 
Joined: 20 Oct 2003

Postby Cyb » Tue Oct 21, 2003 12:47 pm

set the ammo type to 0 (I believe anyway, that may be the wrong number but it's the same ammo that the fist and chainsaw use)
Cyb
 
Joined: 15 Jul 2003

Postby HotWax » Tue Oct 21, 2003 1:10 pm

Cyb wrote:set the ammo type to 0 (I believe anyway, that may be the wrong number but it's the same ammo that the fist and chainsaw use)


Then it won't take ANY ammo. :)
User avatar
HotWax
Do what you must, and pay the price later.
 
Joined: 18 Jul 2003
Location: Idaho Falls, ID

Postby Nanami » Tue Oct 21, 2003 5:45 pm

Cyb wrote:set the ammo type to 0 (I believe anyway, that may be the wrong number but it's the same ammo that the fist and chainsaw use)


Some stuff I played with and recorded wrote:Weapon Numbers:
00 - Fist
01 - Pistol
02 - Shotgun
03 - Chaingun
04 - Rocket Launcher
05 - Plasma Rifle
06 - BFG 9000
07 - Chainsaw
08 - Super Shotgun
09 - Grenade Launcher
10 - Railgun
11 - BFG 10,000
12 - Minigun

Ammo Types:
00 - Bullets (200)
01 - Shells (50)
02 - Cells (300)
03 - Rockets (50)
04 - Gold Wand Ammo (50)
05 - Melee (N/A) (Also Crossbow Ammo, but no additional checks are made)
06 - Dragon Fist Ammo (200)
07 - Hellstaff Ammo (200)
08 - Phoenix Rod Ammo (20)
09 - Mace Ammo (150)
10 - Blue Mana (200)
11 - Green Mana (200)
12 - Both Mana (200+200)
User avatar
Nanami
Natdhipytadd
 
Joined: 15 Jul 2003
Location: That little island pritch created.


Return to General

Who is online

Users browsing this forum: No registered users and 3 guests