Icon of Sin / Baphomet
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Another Sprites/Code Pointers Question
 
Author
All times are GMT. The time now is 10:46. Post New Thread    Post A Reply
BlueBeast
Mini-Member


Posts: 58
Registered: 12-02


Lets say I want to take the chaingun and use 4 frames instead of the 2 frames for the firing sequence,

1st, Can it be done simply?

2nd, Will I have to find frames elsewhere that I don't intend to use to point to?

3rd, If I add frames to the firing sequence, will Doom still 'fire' the weapon with these new frames as well?

In short, using dehacked, how can I make the chaingun's firing sequence have 4 frames and make it still work......

or can't I?

Thanks In Advance!

__________________
Weapons all TC'd, now all left is sprites,patches,textures,sounds,monsters and levels! aw heck...

P4 3.0GHZ 800MHZ FSB 1 Gig DDR ram
36 GIG 10k RPM Raptor (SATA)
120 gig SATA Audigy 2 w/6.1 surr.
(Radeon 9800 pro 256MB very soon)

Old Post 02-08-03 07:30 #
BlueBeast is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Sphagne
Member


Posts: 368
Registered: 06-02


If you want to make it without weapon *flash* sprites added over the normal firing sprites, you can do it without a problem, but if you want do add flashes, then I think you have a problem here.

Nigel will surely point you to lots of unused frames out there.

Old Post 02-08-03 09:49 #
Sphagne is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
BlueBeast
Mini-Member


Posts: 58
Registered: 12-02


Perhaps making every other frame have muzzle flash pointing to 2 other frames opposite the normal firing frames? wonder if that would work...

Any takers? I hope i was'nt the one who came up a real stumper on the board! I'm just a newbie after all!

Please Help!

__________________
Weapons all TC'd, now all left is sprites,patches,textures,sounds,monsters and levels! aw heck...

P4 3.0GHZ 800MHZ FSB 1 Gig DDR ram
36 GIG 10k RPM Raptor (SATA)
120 gig SATA Audigy 2 w/6.1 surr.
(Radeon 9800 pro 256MB very soon)

Old Post 02-11-03 03:52 #
BlueBeast is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
kristus
Megablast!


Posts: 9682
Registered: 07-00


Yes you can. it's not complex, just add the sprites , and time the muzzle flashes to match the animation of the chaingun. Yes you have to find the 2 extra frames elsewhere.

__________________
Turtle Crazy

Old Post 02-11-03 04:40 #
kristus is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 5595
Registered: 12-00


Hmmm, there is something odd about the chaingun flash (and the plasma flash but that is different again). Can't remember the details of what it is though.

If you look at the chaingun flash, the frames do not follow on from each other in the frame table (ie they both have a next frame of 1, and not each other). Messing with these tends to give a crash rather than the desired effect. Other flashes (such as the shotty one) are easy to mess with.

Extra frames, there are loads if you look hard enough. There are a few totally unused frames in the game anyway - the pain elemental respawn frames 720-725, frame 887 is used for a grey stalagmite which does not appear in game, 892 and 893 both show player death sprites but are not part of the player death sequence, or used for the dead marine object. You can find plenty more too if you want to start messing with the frame table a bit.

__________________
Meek

Old Post 02-11-03 14:48 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
myk
volveré y seré millones


Posts: 14420
Registered: 04-02



Enjay said:
892 and 893 both show player death sprites but are not part of the player death sequence, or used for the dead marine object. You can find plenty more too if you want to start messing with the frame table a bit.


Hmm, interesting, must be related to the split body death sprites...

Plenty more? I doubt there's many more (if any) non-used frames. But who knows, maybe I should mess with the frames table a bit (more.)

__________________
Warez All the Data?

Old Post 02-11-03 14:56 #
myk is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
BlueBeast
Mini-Member


Posts: 58
Registered: 12-02


Then too, for newbies like myself who may be reading, 'unused sprites' could also mean sprites not being used in a particular wad being edited.

I think Commander Keen is a good example of both sprites AND sounds that could be used by something new without sacrificing much, or anything from the game.


ok, maybe adding frames to the chaingun won't work... on to new ideas I guess. If anyone has any luck though, fell encouraged to post it!

Thanks everyone

__________________
Weapons all TC'd, now all left is sprites,patches,textures,sounds,monsters and levels! aw heck...

P4 3.0GHZ 800MHZ FSB 1 Gig DDR ram
36 GIG 10k RPM Raptor (SATA)
120 gig SATA Audigy 2 w/6.1 surr.
(Radeon 9800 pro 256MB very soon)

Old Post 02-12-03 01:05 #
BlueBeast is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 5595
Registered: 12-00



myk said:
Plenty more? I doubt there's many more (if any) non-used frames.


I think you are probably right, that's why I said "if you want to start messing with the frame table a bit".

I meant you're going to have to create a few. Eg, get the teleport flash and item respawn fog to use the same frames. Redefine all the static decorations using a Zdoom DECORATE lump (frees up about 50 frames with no impact on the game - zdoom only though). Reducing the number of frames for animated items that don't really need animation - eg pick up items - you can get 6 from the armour helmets and health bottles alone, and 6 from the keys too. In Zdoom you could get them to "floatbob" if you still want them moving. If you are not using an archvile, then you get loads of frames. All the Archies animations (which are the most extensive of any monster) all his attack fire frames (also extensive) and the respawn frames for almost every monster in the game...

__________________
Meek

Old Post 02-12-03 10:20 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
kristus
Megablast!


Posts: 9682
Registered: 07-00


I added alot of frames to the chaingun I made in Nimrod. and the muzzle flares synch.

__________________
Turtle Crazy

Old Post 02-12-03 10:39 #
kristus is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
BlueBeast
Mini-Member


Posts: 58
Registered: 12-02


[ Ebola Said ... I added alot of frames to the chaingun I made in Nimrod. and the muzzle flares synch. ]



So does that mean that if I used, say 4 frames for the firing sequence, the flashes will automatically be assigned to the new frames as well as the old? perhaps due to the coding in Doom that assigns the flashes whenever the firing sequence is invoked?

i guess i'm confused about the flashes being in synch. did you add the frames, but only used the stock 2 flash frames to work with the new gun frames?

__________________
Weapons all TC'd, now all left is sprites,patches,textures,sounds,monsters and levels! aw heck...

P4 3.0GHZ 800MHZ FSB 1 Gig DDR ram
36 GIG 10k RPM Raptor (SATA)
120 gig SATA Audigy 2 w/6.1 surr.
(Radeon 9800 pro 256MB very soon)

Old Post 02-13-03 04:24 #
BlueBeast is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Scuba Steve


Posts: 3740
Registered: 11-02


yes.. there's a section in dehacked for firing frame and shooting frame. Firing frame tells it which sprites to paste over the top of the shooting frames. I think there's a certain codepointer assigned to the shooting frame that gets the firing frames pasted over. I'm not a super coder, but I believe that's how it works.

__________________
"Scuba is an asshat, just let him be his poor little self - starved for attention because his stupid ass Action DooM WAD didnt get the popularity he wanted it to get. -Chubz

Old Post 02-13-03 06:47 #
Scuba Steve is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 5595
Registered: 12-00


Thats what I was trying to say earlier. The chaingun is odd. Most weapons have a firing sequence that simply gets pasted over the top of the gun. The first frame of that sequence is identified in dehacked, and frames 2, 3, 4... simply follow on. These can easily be messed with. The chaingun does not work like that.

It has 2 flash frames that do not follow on from each other. One of them is identified in the dehacked weapons section, but the frames are not set to have each other as next frames but they are adjacent in the frame table. Randy Heit did explain to me a while back how this all works, but I can't find my notes ATM.

There are ways of adding frames (and Ebola has obviously done it) but I forget how to do it. I know that very recently I tried a patch posted by someone on the Zdoom forums. It tried to add to the flash by simply making additional frames that were adjacent to the original ones. This patch managed to either crash every port I tried it in or have odd effects like the weapon not being selectable, or making a chainsaw sound when it fired. I tried Doom.exe, BOOM, PRBoom, MBF, Legacy, Zdoom 1.22 Zdoom 1.23 b33 and Zdoom 2. None of them worked. So like I said, it's tricky, but not impossible. (Apparently the patch had worked in one version of Zdoom, but I couldn't make it happen.)

The plasma gun is different again. It's firing frames replace the weapon graphics, and are not simply pasted as bright sprites over the top of other ones like most weapons are.

__________________
Meek

Old Post 02-13-03 13:04 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
rf`
Dr. Nosign


Posts: 7798
Registered: 11-01



Enjay said:
The plasma gun is different again. It's firing frames replace the weapon graphics, and are not simply pasted as bright sprites over the top of other ones like most weapons are.

Actually, it's the same as the chaingun, except that they're shown randomly.

__________________
Released wads and other doom crap

Old Post 02-13-03 13:08 #
rf` is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 5595
Registered: 12-00



ravage said:

Actually, it's the same as the chaingun, except that they're shown randomly.



Are you sure? There is a slight difference.

The chaingun flashes are small, and cover only the front of the gun. The rest of the gun is still drawn using the non flash sprite.

If you replace the plasma gun firing sprites with smaller pictures, you can see that it is the only sprite being used. There is no "regular" sprite underneath.

But yeah, the method of displying the frames, I believe is the same, except for the randomness you mention.

__________________
Meek

Old Post 02-13-03 14:12 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
rf`
Dr. Nosign


Posts: 7798
Registered: 11-01



Enjay said:


Are you sure? There is a slight difference.

The chaingun flashes are small, and cover only the front of the gun. The rest of the gun is still drawn using the non flash sprite.

If you replace the plasma gun firing sprites with smaller pictures, you can see that it is the only sprite being used. There is no "regular" sprite underneath.

But yeah, the method of displying the frames, I believe is the same, except for the randomness you mention.


Well here's this:

Make up some new sprites for the plasma gun, say, copy the chaingun sprites. You'll see what I'm talking about. For the plasma gun, it only seems like only the flashes are showed, but you don't notice because they are bigger than the base sprite. Trust me on this one.

Just tried it and I'm right.

__________________
Released wads and other doom crap

Old Post 02-13-03 20:12 #
rf` is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 5595
Registered: 12-00



ravage said:
Just tried it and I'm right.


Indeed you are. Tried it myself, replacing the plasma firing sprites with the chaingun ones and got the result you describe. Thanks.

__________________
Meek

Old Post 02-14-03 01:36 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 10:46. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Another Sprites/Code Pointers Question

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory