The "How do I..." Thread

Discuss all aspects of editing for ZDoom.
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

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

Postby DoomKrakken » Wed Jul 29, 2015 11:51 pm

Cansteam wrote:
DoomKrakken wrote:Anyway, would any of you be able to show me, at least an example, of how to implement a "disintegrate" deathtype within the DECORATE codes for the listed examples, and how to get monsters to respond to those deathtypes?


Death:
blablablablabla
stop

Death.Disintegrate:
blablablablabla
stop


Thanks. :|
User avatar
DoomKrakken
All but inactive here on the forums. Contact me on Discord for quicker replies.
 
Joined: 19 Oct 2014
Location: Plahnit Urff
Discord: DoomKrakken#2719

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

Postby kodi » Thu Jul 30, 2015 2:16 pm

What's the best program for simply previewing .md2/3 models?
User avatar
kodi
Proscrastinator
 
 
 
Joined: 06 May 2013

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

Postby cortlong50 » Thu Jul 30, 2015 3:05 pm

DoomKrakken wrote:
Cansteam wrote:
DoomKrakken wrote:Anyway, would any of you be able to show me, at least an example, of how to implement a "disintegrate" deathtype within the DECORATE codes for the listed examples, and how to get monsters to respond to those deathtypes?


Death:
blablablablabla
stop

Death.Disintegrate:
blablablablabla
stop


Thanks. :|



it actually makes way more sense than youd think.


take a look at brutal doom (under the monster lumps) to get a full description...but basically...this is exactly right.
User avatar
cortlong50
editing my comments ad nauseam
 
Joined: 24 Jun 2013
Location: UT-WA

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

Postby Kappes Buur » Thu Jul 30, 2015 5:21 pm

kodi wrote:What's the best program for simply previewing .md2/3 models?


Misfit Model 3D 1.3.8

    Image

Noesis version 4.12

    Image

Model from Enjay's GENE-TECH: Before the Storm

[edit]
added links
Last edited by Kappes Buur on Fri Oct 09, 2015 4:11 pm, edited 7 times in total.
User avatar
Kappes Buur
 
 
 
Joined: 17 Jul 2003
Location: British Columbia Canada

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

Postby cortlong50 » Thu Jul 30, 2015 5:26 pm

how do i make it so a particle (in this case, a spark) disappears when it hits water?
User avatar
cortlong50
editing my comments ad nauseam
 
Joined: 24 Jun 2013
Location: UT-WA

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

Postby snarkel » Fri Jul 31, 2015 12:48 am

Hey, me again (ugh I'm sorry)
But quick question, how would I make an item a rare drop from an enemy? (example: Zombieman has a rare chance to drop a chaingun)
User avatar
snarkel
some guy that tries to make things with ameture DECORATE skill
 
Joined: 06 Aug 2014

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

Postby edward850 » Fri Jul 31, 2015 12:53 am

The DropItem actor property supports a probability, from 0 (never) to 255 (always). So 1 would be a 0.39216% chance, statistically anyway.
User avatar
edward850
[netcode intensifies]
 
Joined: 19 Jul 2005
Location: New Zealand

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

Postby snarkel » Fri Jul 31, 2015 12:59 am

edward850 wrote:The DropItem actor property supports a probability, from 0 (never) to 255 (always). So 1 would be a 0.39216% chance, statistically anyway.


I knew that but how would I put it in DECORATE?

dropitem "Actor_Name" (1, 1)

I tried something like this but I got an error.
User avatar
snarkel
some guy that tries to make things with ameture DECORATE skill
 
Joined: 06 Aug 2014

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

Postby edward850 » Fri Jul 31, 2015 1:06 am

It shows you on that page, and is the same syntax as everything else in decorate:
Code: Select allExpand view
dropitem "Actor_Name", 1, 1

Although you don't need an amount defined for something that isn't ammo.
User avatar
edward850
[netcode intensifies]
 
Joined: 19 Jul 2005
Location: New Zealand

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

Postby snarkel » Fri Jul 31, 2015 1:11 am

edward850 wrote:It shows you on that page, and is the same syntax as everything else in decorate:
Code: Select allExpand view
dropitem "Actor_Name", 1, 1

Although you don't need an amount defined for something that isn't ammo.


Alright thanks, I got it figured out :D
User avatar
snarkel
some guy that tries to make things with ameture DECORATE skill
 
Joined: 06 Aug 2014

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

Postby koopanique » Fri Jul 31, 2015 3:24 am

Hello,
I made a monster that has 50% chance of resurecting after it has been killed; to achieve that I utilise a A_JUMP action function in its death state, that has 127/255 chance of sending him to a custom fake death state, where it falls, stay on the ground for a few seconds and then rises again.
It kinda works, because when I kill it, sometimes it stays dead, sometimes it revives and rises again. However, when it revives, I can't kill it anymore! Any bullet/projectile I throw at it passes through its body.
I think this is due to the fact that his health is in fact 0, since I killed it a first time.

Thus my question is this :
How could I make it so when the monster revives, it also regains all its health points? Is there an action function that could give health to an actor when it enters a certain frame?
Thanks!
koopanique
 
Joined: 30 Jul 2015
Location: Death Star

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

Postby edward850 » Fri Jul 31, 2015 3:28 am

You haven't actually revived it at all, you just dumped a dead monster into a different set of frames, which is not going to do anything other than exactly what you told it to do.
If you want to raise something properly, you need to actually raise it.
User avatar
edward850
[netcode intensifies]
 
Joined: 19 Jul 2005
Location: New Zealand

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

Postby koopanique » Fri Jul 31, 2015 4:11 am

You haven't actually revived it at all, you just dumped a dead monster into a different set of frames, which is not going to do anything other than exactly what you told it to do.
If you want to raise something properly, you need to actually raise it.


Oh wow that's just what I needed. Thank you so much. Yeah I figured that the monster was dead even after being 'revived' and that it the problem came from that, from the fact it had 0 HP left even after being 'revived'...
Thing_Raise is indeed what I need.

While I'm at it, I'd like to place my Player1Start on a 3D floor; is this even possible in ZDoom ? When I set its Z position as higher than the actual ground below the 3D floor, it stills spawns the player on the ground, below the 3D floor. Anyway to counter that ?
Thanks!
koopanique
 
Joined: 30 Jul 2015
Location: Death Star

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

Postby Enjay » Fri Jul 31, 2015 4:34 am

cortlong50 wrote:how do i make it so a particle (in this case, a spark) disappears when it hits water?


Something from this raindrop actor might help:

Spoiler:


Specifically the "A_JumpIf(waterlevel ..." stuff.

That will work for deep water. As for regular water flats... not sure.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

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

Postby edward850 » Fri Jul 31, 2015 4:44 am

koopanique wrote:While I'm at it, I'd like to place my Player1Start on a 3D floor; is this even possible in ZDoom ? When I set its Z position as higher than the actual ground below the 3D floor, it stills spawns the player on the ground, below the 3D floor. Anyway to counter that ?
Thanks!

In your mapinfo definition, set the UsePlayerStartZ flag.
User avatar
edward850
[netcode intensifies]
 
Joined: 19 Jul 2005
Location: New Zealand

PreviousNext

Return to Editing (Archive)

Who is online

Users browsing this forum: No registered users and 5 guests