The "How do I..." Thread
					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.
	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.
- 
				Blue Shadow
- Posts: 5046
- Joined: Sun Nov 14, 2010 12:59 am
Re: The "How do I..." Thread
Try "patches" directory.
			
			
									
						
										
						Re: The "How do I..." Thread
I'll do that. Thanks for your help!Blue Shadow wrote:Try "patches" directory.
- Xtyfe
- Posts: 1490
- Joined: Fri Dec 14, 2007 6:29 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
Re: The "How do I..." Thread
Is there a way to check if a projectile or puff hits an actor or a wall/floor? I've been using the melee and crash states for this but its hit or miss. My fist puff works with both states, my chainsaw puff only uses it's crash state and my bullet puff uses neither.
			
			
									
						
										
						Re: The "How do I..." Thread
If it hits the floor, then (most probably) its absolute height is equal to the floor height. Which you can evaluate with A_JumpIf(z == floorz, ...).
If it for some reason is near the floor but not exactly on it, there is another version: A_JumpIf((z - floorz)^2 < 5^2, ...).
(Five used for instance. Square used for absolute value.)
			
			
									
						
										
						If it for some reason is near the floor but not exactly on it, there is another version: A_JumpIf((z - floorz)^2 < 5^2, ...).
(Five used for instance. Square used for absolute value.)
- TerminusEst13
- Posts: 1625
- Joined: Mon Nov 09, 2009 3:08 pm
- Contact:
Re: The "How do I..." Thread
Interesting. That makes things so much easier. Thanks, I'll give it a shot later today.Blue Shadow wrote:It's a little late but there is something you can do; put this at the top of your SBARINFO lump.TerminusEst13 wrote:Is it possible to make a custom HUD that only pops up on Fullscreen, and leaves the Normal status bar alone? Previously, whenever I try to make a Fullscreen HUD, the Normal suddenly vanishes completely.
With that command, the default status bar definitions that you aren't replacing/overriding will still be used in-game.Code: Select all
base Doom;
- Xtyfe
- Posts: 1490
- Joined: Fri Dec 14, 2007 6:29 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
Re: The "How do I..." Thread
Well, more specifically, i'm trying to get the fist, chainsaw ad bullets to make different sounds whether they hit an actor or a wall. I was able to get the fist to work, i got bullets to work having them done as projectiles. but I can not get the chainsaw to make a sound while hitting an actor, just a wallМichаеlis wrote:If it hits the floor, then (most probably) its absolute height is equal to the floor height. Which you can evaluate with A_JumpIf(z == floorz, ...).
If it for some reason is near the floor but not exactly on it, there is another version: A_JumpIf((z - floorz)^2 < 5^2, ...).
(Five used for instance. Square used for absolute value.)
Re: The "How do I..." Thread
Take a look at the chainsaw of the mod Legacy of Suffering. It does what you want. 
I didnt see how it is done there, but I believe its made by a puff actor with different sounds. That knife ont he R667 armorary does it as well.
			
			
									
						
										
						
I didnt see how it is done there, but I believe its made by a puff actor with different sounds. That knife ont he R667 armorary does it as well.
- 
				fiendohell
- Posts: 35
- Joined: Thu Aug 07, 2008 2:05 pm
Re: The "How do I..." Thread
I have a question. Is there a way to exclude certain lumps in a wad from being loaded. For instance, if all i wanted from the HERETIC.WAD were a couple of sprites, how would I go including it in my my doom 2 project without also loading all the other lumps. Otherwise, the heretic wad will just overwrite a bunch of things in the doom IWAD.
The only solution to this problem that I can think of is using separate resources WAD.
			
			
									
						
										
						The only solution to this problem that I can think of is using separate resources WAD.
Re: The "How do I..." Thread
I believe the only way is to create a pwad with the lumps you want to use.
			
			
									
						
										
						- 
				fiendohell
- Posts: 35
- Joined: Thu Aug 07, 2008 2:05 pm
Re: The "How do I..." Thread
I feared this was the case.Ravick wrote:I believe the only way is to create a pwad with the lumps you want to use.
So how would one go about mass distributing a project that utilizes resources from a bunch of IWADs? I'm not 100% sure on this, but it probably illegal. Also, I think it would put potential player's off if they had to put in extra work making their own resource PWADS, not to mention the dling time and file size. If there was just some method of doing it...
Re: The "How do I..." Thread
Basically how you would have to do it is make & distribute a program along with your mod that takes a non-shareware IWAD and extracts the necessary resources to create your resources wad. Thus, you are giving the player the means to make the resource wad from a copy of the IWAD that they (hopefully) legally own.fiendohell wrote:So how would one go about mass distributing a project that utilizes resources from a bunch of IWADs?
Re: The "How do I..." Thread
So. We have RandomSpawner to randomly spawn actors, but what if you want to randomly spawn a texture or other graphic in place of another?
Basically, I want to have animated version of the "face on wood" textures seen in this post that fades in and out, and randomly replaces the standard wood wall texture for an extra creepy effect for the eagle-eyed player
			
			
									
						
										
						Basically, I want to have animated version of the "face on wood" textures seen in this post that fades in and out, and randomly replaces the standard wood wall texture for an extra creepy effect for the eagle-eyed player

Re: The "How do I..." Thread
I've made a blood actor that uses A_CheckFloor to 'know' when it falls. But, in water, it remains floating forever   How could I fix it?
  How could I fix it?
Also, enemies are floating to hight in water. How can I make them submerge without changing their mass?
			
			
									
						
										
						 How could I fix it?
  How could I fix it?Also, enemies are floating to hight in water. How can I make them submerge without changing their mass?
- NeuralStunner
-   
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: The "How do I..." Thread
You can pull in Heretic.wad then pull in DooM2.wad back over the top. Anything "overwritten" (what little there actually is in conflict) will be restored. I've noticed no memory spikes from loading an IWad twice.fiendohell wrote:For instance, if all i wanted from the HERETIC.WAD were a couple of sprites, how would I go including it in my my doom 2 project without also loading all the other lumps.
- Sgt Dopey
- Posts: 558
- Joined: Thu Jan 13, 2011 8:44 pm
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Australia
Re: The "How do I..." Thread
How do i make a sound play for example every 2 minutes?
			
			
									
						
										
						




