The "How do I..." Thread

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
Mikk-
Posts: 2274
Joined: Tue Jun 30, 2009 1:31 pm

Re: The "How do I..." Thread

Post by Mikk- »

Subtractive lights.
User avatar
GhostKillahZero
Posts: 742
Joined: Wed Nov 13, 2013 4:41 pm
Location: 343 Industries Headquarters
Contact:

Re: The "How do I..." Thread

Post by GhostKillahZero »

So which is better, A_GunFlash or Brightmaps for gun flashes? I'll ask here instead of creating a thread about it.
User avatar
Enjay
 
 
Posts: 27047
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: The "How do I..." Thread

Post by Enjay »

GhostKillahZero wrote:So which is better, A_GunFlash or Brightmaps for gun flashes? I'll ask here instead of creating a thread about it.
They are for quite different purposes.
User avatar
GhostKillahZero
Posts: 742
Joined: Wed Nov 13, 2013 4:41 pm
Location: 343 Industries Headquarters
Contact:

Re: The "How do I..." Thread

Post by GhostKillahZero »

Enjay wrote:They are for quite different purposes.
I have seen some mods with brightmaps for gun flashes, but I also have seen Zandronum's A_GunFlash is a bit messy.
User avatar
Enjay
 
 
Posts: 27047
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: The "How do I..." Thread

Post by Enjay »

Possibly so, but they do different things. They are not for the same purpose at all. [wiki]GLDEFS#Brightmaps[/wiki] are a purely visual effect (and only available in OpenGL) whereas [wiki]A_GunFlash[/wiki] has an affect on what happens in the DECORATE code.
User avatar
Kappes Buur
 
 
Posts: 4179
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: The "How do I..." Thread

Post by Kappes Buur »

A_GunFlash illuminates the whole sprite when the weapon is fired.

Brightmaps are special sprites used to 'brighten' only some aspect of the sprite,
but all of the time that particular frame and rotation is visible. For example:

Image
User avatar
MetroidJunkie
Posts: 709
Joined: Fri Aug 19, 2011 7:27 am

Re: The "How do I..." Thread

Post by MetroidJunkie »

Any possible way to detect if a player is no clipping through a line? I had an idea for a mod that reacts differently if the player is actively cheating to get through it faster.
User avatar
cocka
Posts: 1520
Joined: Sat Jul 02, 2011 7:21 am
Location: Hungary

Re: The "How do I..." Thread

Post by cocka »

Any possible way to detect if a player is no clipping through a line?
I think it's possible with thing executed specials. You can set a variable on a line which changes if you've crossed the line and you can put this object in a sector near the line: ([wiki]Classes:SecActEnter[/wiki])

Then test with that whether the player crossed the line or not.
User avatar
ReedtheStrange
Posts: 226
Joined: Sun Sep 11, 2011 3:27 pm

Re: The "How do I..." Thread

Post by ReedtheStrange »

Kappes Buur wrote:A_GunFlash illuminates the whole sprite when the weapon is fired.

Brightmaps are special sprites used to 'brighten' only some aspect of the sprite,
but all of the time that particular frame and rotation is visible. For example:

Image
Is there a god example WAD that uses that? That's awesome. I don't know how I didn't know about that, I was just trying to figure ways to imply glowing eyes with GL lights.
User avatar
GhostKillahZero
Posts: 742
Joined: Wed Nov 13, 2013 4:41 pm
Location: 343 Industries Headquarters
Contact:

Re: The "How do I..." Thread

Post by GhostKillahZero »

ReedtheStrange wrote:Is there a god example WAD that uses that? That's awesome. I don't know how I didn't know about that, I was just trying to figure ways to imply glowing eyes with GL lights.
I'd recommend PK3 instead of a WAD file, therefore It gives you more capabilities than WADs when using this [wiki=Using_ZIPs_as_WAD_replacement]format[/wiki].
User avatar
Kappes Buur
 
 
Posts: 4179
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: The "How do I..." Thread

Post by Kappes Buur »

ReedtheStrange wrote: Is there a god example WAD that uses that? That's awesome. I don't know how I didn't know about that, I was just trying to figure ways to imply glowing eyes with GL lights.
DrVenom8 brightmaps

Just drag the brightmap file onto the gzdoom.exe or shortcut like any other pwad.

Or, for something more permanent, load it through the ini file

Code: Select all

[Doom.Autoload]

[Doom1.Autoload]
Path=drive:\folder\BrightmapsDoom1.pk3

[Doom2.Autoload]
Path=drive:\folder\BrightmapsDoom2.pk3

[TNT.Autoload]
Path=drive:\folder\BrightmapsDoom2.pk3

[Plutonia.Autoload]
Path=drive:\folder\BrightmapsDoom2.pk3

[Freedoom.Autoload]

[Freedoom1.Autoload]

[FreeDM.Autoload]

[Heretic.Autoload]
Path=drive:\folder\BrightmapsHeretic.pk3

Of course, another alternative would be to use PFEnhanced, which in addition to brightmaps has updated weapons, artifacts, etc.
Last edited by Kappes Buur on Sat May 10, 2014 12:03 am, edited 2 times in total.
User avatar
Enjay
 
 
Posts: 27047
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: The "How do I..." Thread

Post by Enjay »

You probably already have an example. GZDoom comes with a file called "brightmaps.pk3". From memory, I don't think many (any?) monsters have been given glowing eyes but there are glowing gun flash effects on sprites such as the shotgun guy, glowing hands on the archvile etc.

One thing I would point out is that, despite what you see in brightmaps.pk3, brightmaps do not have to be greyscale:

http://forum.drdteam.org/viewtopic.php?f=22&t=6198
Kostov
 
 
Posts: 2020
Joined: Thu Dec 26, 2013 3:26 pm

Re: The "How do I..." Thread

Post by Kostov »

Here's your brightmaps. Take the second download.
witlord
Posts: 2
Joined: Sat May 10, 2014 11:06 am

Re: The "How do I..." Thread

Post by witlord »

Sorry if this is a stupid question (and for my first post on these forms being a plea for help) ... but "How do I" get Heretic monster sounds working in ZDoom? I can get Hexen monsters working fine, I just copied over the relevant SNDINFO lump entries into my wad, but Heretic doesn't seem to have a SNDINFO lump, and substituting the predefined sounds from the wiki doesn't work either.

I've included my SNDINFO lump text below.
Spoiler:
EDIT: Ah it started working just after I posted this, not sure why. Having trouble placing monsters in DoomBuilder that doesn't cause a DECORATE more than one entry error in ZDoom, but still working through possible solutions.
Last edited by witlord on Sat May 10, 2014 4:12 pm, edited 1 time in total.
User avatar
xenoxols
Posts: 2133
Joined: Mon Mar 18, 2013 6:08 pm
Preferred Pronouns: She/Her
Location: Behind you

Re: The "How do I..." Thread

Post by xenoxols »

How does one have A_PlaySound work in a monsters death state when they are killed by bullets?
EDIT: nevermind, go it.
Locked

Return to “Editing (Archive)”