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.
- DoomSplitter
- Posts: 273
- Joined: Fri Jul 25, 2008 2:45 pm
Re: The "How do I..." Thread
Okay, I have a really odd question here. Is there a way to give a spawned weapon projectile a fixed angle? I've tried this by making the weapon use SpawnItemEx and the ABSOULTEANGLE flag, but it won't spawn relative to the player's angle. Is there any way to do this?
Re: The "How do I..." Thread
I don't seem to understand what you want. By "fixed" angle, do you mean an angle that is the same regardless of the player's angle? If so, use SXF_ABSOLUTEANGLE.
Then you say... "But it won't spawn relative to the player's angle(...)"
So... You want a relative angle. Have you tried not using SXF_ABSOLUTEANGLE?
By default, it will spawn with an angle based on the player's angle. (Angle 0: Same direction as player; Angle 180: Opposite direction of player)
With SXF_ABSOLUTEANGLE it will spawn with an... absolute angle... Not dependent on any other actor.
Do you spawn it at the same location as the player (0,0,0 - at feet) or at some position ahead (30...)?
Then you say... "But it won't spawn relative to the player's angle(...)"
So... You want a relative angle. Have you tried not using SXF_ABSOLUTEANGLE?
By default, it will spawn with an angle based on the player's angle. (Angle 0: Same direction as player; Angle 180: Opposite direction of player)
With SXF_ABSOLUTEANGLE it will spawn with an... absolute angle... Not dependent on any other actor.
Do you spawn it at the same location as the player (0,0,0 - at feet) or at some position ahead (30...)?
- DoomSplitter
- Posts: 273
- Joined: Fri Jul 25, 2008 2:45 pm
Re: The "How do I..." Thread
Sorry, I probably should have been more clear. But the problem's fixed now, so no worries.
Re: The "How do I..." Thread
ok ill start this time...
How can i put 2 Powerup.type in 1 powerup giver???
if its possible.
Im Trying to make a combination of time freeze and infinite ammo.
thank you beforehand
How can i put 2 Powerup.type in 1 powerup giver???
if its possible.
Im Trying to make a combination of time freeze and infinite ammo.
thank you beforehand
- 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
Make a time freeze powerup and an infinite ammo powerup and then use a custominventory item to give them both in its pickup stateKuroTsuki wrote:ok ill start this time...
How can i put 2 Powerup.type in 1 powerup giver???
if its possible.
Im Trying to make a combination of time freeze and infinite ammo.
thank you beforehand
Re: The "How do I..." Thread
WOW WOW WOWXtyfe wrote:Make a time freeze powerup and an infinite ammo powerup and then use a custominventory item to give them both in its pickup state
Thank you alot!
Re: The "How do I..." Thread
Am i allowed to make a second question? sorry if not.
i want to test my weapon in a map, so i want to use doombuilder to place that weapon in my playerstart.
but i cant find the weapon in the weapon part.
also i read somwhere about the actor numbers..but no idea where to know what the actor number of my weapon is
thank you beforehand
i want to test my weapon in a map, so i want to use doombuilder to place that weapon in my playerstart.
but i cant find the weapon in the weapon part.
also i read somwhere about the actor numbers..but no idea where to know what the actor number of my weapon is
thank you beforehand
- 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
Is there Another list called decorate? And if the doomEd number is not unique Zdoom will tell youKuroTsuki wrote:Am i allowed to make a second question? sorry if not.
i want to test my weapon in a map, so i want to use doombuilder to place that weapon in my playerstart.
but i cant find the weapon in the weapon part.
also i read somwhere about the actor numbers..but no idea where to know what the actor number of my weapon is
thank you beforehand
- Tapwave
- Posts: 2096
- Joined: Sat Aug 20, 2011 8:54 am
- Preferred Pronouns: No Preference
- Graphics Processor: nVidia with Vulkan support
Re: The "How do I..." Thread
When you write your actor, you always write this at the beginning:
But if you want it in your map you need to add the DooMEDnumber. Which is placed like so:
Check the zdoom wiki to see if the number you took is already ised by another actor.
Code: Select all
Actor Actorname : Inheritancetarget
Code: Select all
Actor Actorname : Inheritancetarget 30000
Re: The "How do I..." Thread
Apologies for asking such a simple question, but how do I add new PNG textures to a wad using Slade?
- Tapwave
- Posts: 2096
- Joined: Sat Aug 20, 2011 8:54 am
- Preferred Pronouns: No Preference
- Graphics Processor: nVidia with Vulkan support
Re: The "How do I..." Thread
Put your PNGS between TX_START and TX_END markers.
Re: The "How do I..." Thread
I hope I don't sound too noob, but I have an ACS issue.
I have made a deathmatch map that uses a credits system for purchases. I want to assign my monsters a script that will allow them to give credits upon death. Unfortunately, I am using map spots to spawn my monsters and cannot assign a script to the map spots themselves.
Any way I can have the monsters spawn from map spots, and have a reusable credit adding script attached to them?
Thanks.
I have made a deathmatch map that uses a credits system for purchases. I want to assign my monsters a script that will allow them to give credits upon death. Unfortunately, I am using map spots to spawn my monsters and cannot assign a script to the map spots themselves.
Any way I can have the monsters spawn from map spots, and have a reusable credit adding script attached to them?
Thanks.
-
- Posts: 6
- Joined: Sat Dec 17, 2011 3:41 pm
Re: The "How do I..." Thread
Couple of questions:
I was planning on making monsters which have a limited pickup ability, i.e. that they can take some items but not others. +PICKUP is too powerful, since it allows the monster to take stuff indiscriminately. Any ideas?
Also, I'm having problems with combining the +NOTARGET and +FRIENDLY flags (the other monsters refuse to acknowledge the +NOTARGET if the monster is +FRIENDLY for some reason).
I was planning on making monsters which have a limited pickup ability, i.e. that they can take some items but not others. +PICKUP is too powerful, since it allows the monster to take stuff indiscriminately. Any ideas?
Also, I'm having problems with combining the +NOTARGET and +FRIENDLY flags (the other monsters refuse to acknowledge the +NOTARGET if the monster is +FRIENDLY for some reason).
Re: The "How do I..." Thread
When it comes to PICKUP, I think you must give them full pickup ability and design special [wiki=Classes:CustomInventory]CustomInventory[/wiki] pickups for stuff that they should not be able to pick up.
- Items they can always pick up need not be replaced.
- Items they can never pick up need code like this:
For example: A_CheckFlag("ISMONSTER", "CheckHealth") to jump to a checkhealth state for monsters. Then A_JumpIfHealthLower(10, "PickupSuccess").
- Items they can always pick up need not be replaced.
- Items they can never pick up need code like this:
Spoiler: Code-Items they can sometimes pick up will need more tests than A_CheckFlag("ISMONSTER"...)
For example: A_CheckFlag("ISMONSTER", "CheckHealth") to jump to a checkhealth state for monsters. Then A_JumpIfHealthLower(10, "PickupSuccess").
Spoiler: Code
- insightguy
- Posts: 1730
- Joined: Tue Mar 22, 2011 11:54 pm
Re: The "How do I..." Thread
Excuse me, but I recently had tried my hand in mapping but one problem keeps popping up.
(Doom builder 2)
In his tutorial on making slopes in zdoom, he left out how your supposed set it zdoom style. I can't even find the options he mentioned in the tutorial.
I set it to zdoom (Doom in Doom format) but the settings he mentioned still don't appear.
Can anyone Identify what setting I may have missed?
(Doom builder 2)
In his tutorial on making slopes in zdoom, he left out how your supposed set it zdoom style. I can't even find the options he mentioned in the tutorial.
I set it to zdoom (Doom in Doom format) but the settings he mentioned still don't appear.
Can anyone Identify what setting I may have missed?