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.
Locked
User avatar
Ravick
Posts: 2045
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

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

Post by Ravick »

Can I make a line activate its special from both sides? Here it only works from the front side.
User avatar
ChronoSeth
Posts: 1631
Joined: Mon Jul 05, 2010 2:04 pm
Location: British Columbia

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

Post by ChronoSeth »

Ravick wrote:Can I make a line activate its special from both sides? Here it only works from the front side.
There's a flag for that accessible in DoomBuilder.
User avatar
Ravick
Posts: 2045
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

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

Post by Ravick »

Thanks;
Edit:

I've always mapped on thr format Skulltag in Hexen, where there was a menu option with a lot of dinamic lights. Now I'm learning to map in UDMF, and there is no this menu. How can I put DL in UDMF maps?
HeXaGoN
Posts: 161
Joined: Sat Dec 04, 2010 3:07 pm
Location: Texas, United States

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

Post by HeXaGoN »

How do I make an object orbit another object?
User avatar
Ryan Cordell
Posts: 4349
Joined: Sun Feb 06, 2005 6:39 am
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: Capital of Explodistan

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

Post by Ryan Cordell »

wtg62 wrote:How do I make an object orbit another object?
Use A_Warp?
User avatar
Sergeant_Mark_IV
Posts: 812
Joined: Wed Feb 02, 2011 12:44 pm
Location: United Communist Nazi Republic Dictactorship of Banana Land (Brazil)

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

Post by Sergeant_Mark_IV »

Is there any way to make a missile disappear when hitting water without triggering it's death animation without making use of bounce flag?
User avatar
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

Post by Xtyfe »

Sergeant_Mark_IV wrote:Is there any way to make a missile disappear when hitting water without triggering it's death animation without making use of bounce flag?
-EXPLODEONWATER wouldn't this do that?
bgraybr
Posts: 136
Joined: Tue Nov 30, 2010 7:52 pm

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

Post by bgraybr »

Can I use A_JumpIfTargetInLOS to stop a monster from firing if other monsters are in front of it?
User avatar
FDARI
Posts: 1097
Joined: Tue Nov 03, 2009 9:19 am

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

Post by FDARI »

Spoiler: Short answer is "No"
bgraybr
Posts: 136
Joined: Tue Nov 30, 2010 7:52 pm

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

Post by bgraybr »

Hmm. Is it even possible?

I have marines, and I want them to:
-avoid firing at players and other marines (I might just put THRUSPECIES on the projectiles that they fire)
-fire projectiles that don't hurt other marines or players. I've already accomplished the former by using DONTHURTSPECIES but the species property doesn't seem to affect players
-not enter their pain state when hit by another marine (already done using custom damage types, but the pain sound still plays)
-become hostile when fired upon by a player. (I've already tried using custom damage types/pain states with thing_hate, but it messes up the marine's AI completely for some reason).
User avatar
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

Post by NeuralStunner »

bgraybr wrote:Can I use A_JumpIfTargetInLOS to stop a monster from firing if other monsters are in front of it?
This feature suggestion might interest you.
User avatar
devildemon
Posts: 292
Joined: Wed Apr 28, 2010 4:49 pm

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

Post by devildemon »

quick question is it possible for when one person picks up a powerup everyone gets at the same time?
User avatar
FDARI
Posts: 1097
Joined: Tue Nov 03, 2009 9:19 am

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

Post by FDARI »

Try a custom inventory:

Code: Select all

actor RealPowerup : Powerup // not spawned in map
{
 /* .... powerup stuff .... */
}

actor PowerupPickup : CustomInventory
{
    States
    {
        Spawn:
            POWR A -1
            stop

        Pickup:
            TNT1 A 0 A_GiveInventory("RealPowerup", 1, AAPTR_PLAYER1)
            TNT1 A 0 A_GiveInventory("RealPowerup", 1, AAPTR_PLAYER2)
            TNT1 A 0 A_GiveInventory("RealPowerup", 1, AAPTR_PLAYER3)
            TNT1 A 0 A_GiveInventory("RealPowerup", 1, AAPTR_PLAYER4)
            TNT1 A 0 A_GiveInventory("RealPowerup", 1, AAPTR_PLAYER5)
            TNT1 A 0 A_GiveInventory("RealPowerup", 1, AAPTR_PLAYER6)
            TNT1 A 0 A_GiveInventory("RealPowerup", 1, AAPTR_PLAYER7)
            TNT1 A 0 A_GiveInventory("RealPowerup", 1, AAPTR_PLAYER8)
            stop
    }
}
I haven't tested this, but it ought to work. One potential problem: I'm not sure if this inventory state chain is guaranteed/able to return success. If it does not, the item might not be removed from the map, which means you get to pick it up over and over. There may be more than one workaround for this. There are known ways to ensure a successful pickup of a custom inventory item. (I've never needed to figure out.)

EDIT: The complete set of features used is first available in zdoom r3222.
HeXaGoN
Posts: 161
Joined: Sat Dec 04, 2010 3:07 pm
Location: Texas, United States

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

Post by HeXaGoN »

Ryan Cordell wrote:
wtg62 wrote:How do I make an object orbit another object?
Use A_Warp?
Uh, I'm not so sure if that would work... is A_Warp used for that even?
User avatar
Ryan Cordell
Posts: 4349
Joined: Sun Feb 06, 2005 6:39 am
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: Capital of Explodistan

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

Post by Ryan Cordell »

A_Warp can be used for it. FDARI's demo has such an example with the circling imp ball. You should try it out.
Locked

Return to “Editing (Archive)”