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
LanHikariDS
Posts: 179
Joined: Tue Aug 04, 2015 11:30 pm
Location: Playing in the snow

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

Post by LanHikariDS »

Zeberpal wrote:Is it possible to change Doom sliding screen pattern somehow?
Do you mean the effect when loading a new level/intermission screen? If that's the case, Options > Display Options > Screen Wipe Style.
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

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

Post by edward850 »

LanHikariDS wrote:Do you mean the effect when loading a new level/intermission screen?
There is no effect when loading levels or the intermission. The screen wipe could only possibly occur after that, otherwise it would have nothing to wipe to. By the time you see it, the next level is loaded and one gametic has run of it (the frame it's wiping in).
Last edited by edward850 on Fri Dec 04, 2015 7:39 pm, edited 2 times in total.
User avatar
snarkel
Posts: 139
Joined: Wed Aug 06, 2014 9:02 pm
Preferred Pronouns: He/Him

Re: dropitem help

Post by snarkel »

Ok so I wad modifying a monster to make him drop a certain item and while when killed he does drop it he drops two when he is supposed to drop one, any ideas?

Here is the DECORATE of the Monster. If you need the DECORATE of the item, just ask and I will put it up.

Code: Select all

actor skeleton
{
  hitobituary "%o's funnybone was tickled by a skeleton"
  health 80
  painchance 180
  speed 10
  radius 24
  height 56
  mass 100
  scale 0.9
  dropitem "SuperArmorBonus", 255, 1
  seesound "skelsit"
  painsound "skelpai"
  deathsound "skeldth"
  MONSTER
  +NOBLOOD
  states
  {
  Spawn:
    SKLT R 10 A_Look
    loop 
  See:
    SKLT AABBCCDDEEFF 2 A_Chase
    loop
  Melee:
    SKLT GH 4 A_FaceTarget 
    SKLT I 4 A_playsound("skelatt",chan_auto)  
    SKLT J 4 A_CustomMeleeAttack(random(1,6)*4,"swordhit",none)     
    SKLT K 4 A_FaceTarget    
    goto See
  Pain:
    SKLT L 2
    SKLT L 2 A_Pain
    goto See
  Death:
    SKLT M 4 A_Scream
    SKLT N 4 A_Fall
    SKLT O 8 A_Noblocking
    SKLT P 12  
    SKLT Q -1 
    stop
  Raise:
    SKLT PONM 4
    goto see
  }
}
Gez
 
 
Posts: 17939
Joined: Fri Jul 06, 2007 3:22 pm

Re: dropitem help

Post by Gez »

snarkel wrote:Ok so I wad modifying a monster to make him drop a certain item and while when killed he does drop it he drops two when he is supposed to drop one, any ideas?

Here is the DECORATE of the Monster. If you need the DECORATE of the item, just ask and I will put it up.

Code: Select all

  Death:
    SKLT M 4 A_Screamh
    SKLT N 4 A_Fall
    SKLT O 8 A_Noblocking
There you go. [wiki]A_Fall[/wiki] and [wiki]A_NoBlocking[/wiki] are two different names for the same function, so you're calling the same function twice. And that's the function that drops items, among other things, so that's why you get double droppings.
User avatar
snarkel
Posts: 139
Joined: Wed Aug 06, 2014 9:02 pm
Preferred Pronouns: He/Him

Re: dropitem help

Post by snarkel »

Gez wrote:
snarkel wrote:Ok so I wad modifying a monster to make him drop a certain item and while when killed he does drop it he drops two when he is supposed to drop one, any ideas?

Here is the DECORATE of the Monster. If you need the DECORATE of the item, just ask and I will put it up.

Code: Select all

  Death:
    SKLT M 4 A_Screamh
    SKLT N 4 A_Fall
    SKLT O 8 A_Noblocking
There you go. [wiki]A_Fall[/wiki] and [wiki]A_NoBlocking[/wiki] are two different names for the same function, so you're calling the same function twice. And that's the function that drops items, among other things, so that's why you get double droppings.
That worked! Thanks :D
User avatar
LanHikariDS
Posts: 179
Joined: Tue Aug 04, 2015 11:30 pm
Location: Playing in the snow

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

Post by LanHikariDS »

edward850 wrote:
LanHikariDS wrote:Do you mean the effect when loading a new level/intermission screen?
There is no effect when loading levels or the intermission. The screen wipe could only possibly occur after that, otherwise it would have nothing to wipe to. By the time you see it, the next level is loaded and one gametic has run of it (the frame it's wiping in).
Jeez, no need to be so technical.
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

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

Post by edward850 »

Technical accuracy would be considered very important in this thread, no? ;)
(Besides, that's hardly me being technical about something.)
User avatar
black-thrones
Posts: 41
Joined: Sat Nov 16, 2013 11:01 pm

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

Post by black-thrones »

I'm trying to revamp Hexen's Quietus to include a melee attack which is supposed to stop the ranged attack from occurring. Despite my best attempts it still fires the missile projectiles even if the melee puff is made. Can anyone point out what I've done wrong?
Spoiler:
Gez
 
 
Posts: 17939
Joined: Fri Jul 06, 2007 3:22 pm

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

Post by Gez »

Give the puff some time to act.

Code: Select all

FSRD G 0 Bright Offset(5, 36) A_CustomPunch(random(1,8)*8*5+random(30,72),TRUE,CPF_USEAMMO,"BTQuietusMeleePuffPowered",96,0)
See? Zero tic. It moves to the next state even before the puff it spawned did anything. Change it to 2 tics, and instead reduce the next state with A_JumpIf to 0 tics. (Codepointers are run when entering a state, so a state with an A_Jump* in it will last 0 tics if the jump is made.)
User avatar
black-thrones
Posts: 41
Joined: Sat Nov 16, 2013 11:01 pm

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

Post by black-thrones »

Works like a charm now, thank you!
User avatar
Zeberpal
Posts: 191
Joined: Sun Apr 28, 2013 2:06 am
Location: RU

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

Post by Zeberpal »

LanHikariDS and edward850 thanks.
I was wondering if I can create custom effect myself somehow, though I doubt.
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

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

Post by edward850 »

As of right now you cannot, no. It's a 2 frame per-pixel shifter or blender, and having some sort of control over that would require a very new kind of script and syntax, and considering its nature, it would be a very slow one (per pixel effects really need to be as close to the metal as possible).
Last edited by edward850 on Sat Dec 05, 2015 5:02 am, edited 1 time in total.
User avatar
Legend
Posts: 158
Joined: Fri Jun 11, 2010 12:32 am
Location: Antioch, CA

multiple quit messages for heretic?

Post by Legend »

How do I create custom multiple quit messages for heretic?
User avatar
Ozymandias81
Posts: 2068
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

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

Post by Ozymandias81 »

Legend wrote:How do I create custom multiple quit messages for heretic?
Yep, that. It seems that we can modify only this row inside language.

http://imgur.com/Ks0Omwo

Also, this is stated under DEHACKED lump formats, when you try to quit with ZDoom per default... Uhm...
Gez
 
 
Posts: 17939
Joined: Fri Jul 06, 2007 3:22 pm

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

Post by Gez »

[wiki=GameInfo_definition]MAPINFO: GameInfo { QuitMessages = ... }[/wiki]
Locked

Return to “Editing (Archive)”