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
NickPerrin
Posts: 47
Joined: Thu Apr 12, 2012 1:13 pm

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

Post by NickPerrin »

amv2k9 wrote:In the above example, PuffyRocket spawns eight PuffyRocketPuffs every 1 tic of RCKT A.
Sorry I should have clarified. I'm totally aware of how to do that and my DECORATE is full of such examples - What I mean is for the "puff" if you will, to spawn across the path of the "rocket" smoothly, more than 1 tic at a time. The method you show simply places 8 puffs in the same spot, I'm interested in filling the intervening spaces with puffs even though 1 tic per puff isn't fast enough to do it.

Again, the bullet spark in AeOD and the lightning gun in the same mod seem to be prime examples of this.
Last edited by NickPerrin on Mon Apr 23, 2012 6:59 pm, edited 1 time in total.
User avatar
amv2k9
Posts: 2178
Joined: Sun Jan 10, 2010 4:05 pm
Location: Southern California

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

Post by amv2k9 »

NickPerrin wrote:The method you show simply places 8 puffs in the same spot
Yeah, I just didn't add in the offsets, velocity, etc.
Zombieguy
Posts: 1880
Joined: Mon May 24, 2010 4:38 pm
Location: C:\Earth>

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

Post by Zombieguy »

If an explosivebarrel is against a wall, and as soon as it explodes, is there any possible way to spawn a Scorch wall decal?
User avatar
NickPerrin
Posts: 47
Joined: Thu Apr 12, 2012 1:13 pm

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

Post by NickPerrin »

amv2k9 wrote:
NickPerrin wrote:The method you show simply places 8 puffs in the same spot
Yeah, I just didn't add in the offsets, velocity, etc.
What I mean is to get a rocket's (or any theoretical projectile) trail, not looking like this:

*______*______*______*____>=>

(underlines instead of spaces because the forum removes spaces)

Instead looking like this:

**********************************>=>

Where * = the spawnitem or "puff".

And to do this all without changing the speed of the projectile.
I should just ask - how does the lightning gun work in gzdoom? I'm not making a lightning gun but it does what I'm wondering to some extent.
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 »

Blue Shadow wrote:[wiki]A_JumpIfArmorType[/wiki]
Wow, I didn't know this existed. :D
User avatar
Doomedarchviledemon
Posts: 31
Joined: Tue Jul 05, 2011 9:17 pm

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

Post by Doomedarchviledemon »

One of my player classes for my multi-class mod is a Poison class and I am having a difficult time trying to get this guy his "gimmick." Since it's a poison class I'd like to have a small field around the player that will cause damage to other players who get to close since he is packed with radiation. I gave this class a NORADIUSDMG flag so splash damage would not effect the player. But how do I get the player to send out pulses of radiation, or splash damage, continuously in a small area around them?

I'd also like to have the player glow/fade a greenish color also to give a more poison feeling to it. Would I use something similar to the Visibility Pulse flag? Is there something like this but with color changing?

If there is a better option in making the radiation field I would appreciate it. :)
User avatar
cypherphage
Posts: 213
Joined: Sun Feb 27, 2011 2:54 am

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

Post by cypherphage »

Could you give him a damage factor immunity to "PoisonCloud" have him just spawn a http://zdoom.org/wiki/Classes:PoisonCloud actor every few ticks in his see state? This would make him seem pretty poisonous I think.

As far as the green fade, you could use a dynamic light. In zdoom, you could use the textures lump to make a bunch of frames at different amounts of green but that would probably be a pain.
DecemberMan
Posts: 54
Joined: Mon Jan 30, 2012 12:55 pm

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

Post by DecemberMan »

Thanks amv2k9 and Blue Shadow! :)
User avatar
Doomedarchviledemon
Posts: 31
Joined: Tue Jul 05, 2011 9:17 pm

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

Post by Doomedarchviledemon »

cypherphage wrote:Could you give him a damage factor immunity to "PoisonCloud" have him just spawn a http://zdoom.org/wiki/Classes:PoisonCloud actor every few ticks in his see state? This would make him seem pretty poisonous I think.

As far as the green fade, you could use a dynamic light. In zdoom, you could use the textures lump to make a bunch of frames at different amounts of green but that would probably be a pain.
I'll give that a try, though that might look a little too silly. (Got the walking farts again? :P)

Hm, yeah that does sound like a bit of a pain. Is dynamic lighting where the actor give out light around the actor? Or am I thinking of something else?
User avatar
Batandy
Posts: 1279
Joined: Tue Jul 19, 2011 2:56 am

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

Post by Batandy »

Anyone knows if it's possible to make the weapon switch faster?
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

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

Post by Xaser »

Sure is -- call A_Raise/A_Lower more than once per tic and you're golden.

Code: Select all

ACTOR FastShotgun: Shotgun {
	States {
	Select:
		SHTG A 0 A_Raise
		SHTG A 1 A_Raise
		Loop
	Deselect:
		SHTG A 0 A_Lower
		SHTG A 1 A_Lower
		Loop
	}
}
This code will produce a shotgun that raises/lowers twice as fast. Do this to all your weapons and you've effectively halved the switch time, which is nice. ;)
User avatar
Batandy
Posts: 1279
Joined: Tue Jul 19, 2011 2:56 am

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

Post by Batandy »

Xaser wrote:Sure is -- call A_Raise/A_Lower more than once per tic and you're golden.

Code: Select all

ACTOR FastShotgun: Shotgun {
	States {
	Select:
		SHTG A 0 A_Raise
		SHTG A 1 A_Raise
		Loop
	Deselect:
		SHTG A 0 A_Lower
		SHTG A 1 A_Lower
		Loop
	}
}
This code will produce a shotgun that raises/lowers twice as fast. Do this to all your weapons and you've effectively halved the switch time, which is nice. ;)
Thank you alot!
Zombieguy
Posts: 1880
Joined: Mon May 24, 2010 4:38 pm
Location: C:\Earth>

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

Post by Zombieguy »

Zombieguy wrote:If an explosivebarrel is against a wall, and as soon as it explodes, is there any possible way to spawn a Scorch wall decal?
Anyone?
gerolf
Posts: 974
Joined: Sat Nov 06, 2010 1:32 pm

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

Post by gerolf »

Zombieguy wrote:
Zombieguy wrote:If an explosivebarrel is against a wall, and as soon as it explodes, is there any possible way to spawn a Scorch wall decal?
Anyone?
Perhaps Dehacked or something could do that. Have something spawn after something is destroyed.
Blue Shadow
Posts: 5046
Joined: Sun Nov 14, 2010 12:59 am

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

Post by Blue Shadow »

@Zombieguy: This's far from perfect, but it was the only thing I could think of...

Code: Select all

ACTOR BarrelOfGreenGoo : ExplosiveBarrel replaces ExplosiveBarrel
{
  States
  {
  Death:
    BEXP A 5 BRIGHT
    BEXP B 5 BRIGHT A_Scream
    BEXP C 5 BRIGHT
    TNT1 A 0 A_SpawnItemEx("Scorchy", 0, 0, 32, 20, 0, 0, 0, SXF_ABSOLUTEANGLE)
    TNT1 A 0 A_SpawnItemEx("Scorchy", 0, 0, 32, 20, 0, 0, 45, SXF_ABSOLUTEANGLE)
    TNT1 A 0 A_SpawnItemEx("Scorchy", 0, 0, 32, 20, 0, 0, 90, SXF_ABSOLUTEANGLE)
    TNT1 A 0 A_SpawnItemEx("Scorchy", 0, 0, 32, 20, 0, 0, 135, SXF_ABSOLUTEANGLE)
    TNT1 A 0 A_SpawnItemEx("Scorchy", 0, 0, 32, 20, 0, 0, 180, SXF_ABSOLUTEANGLE)
    TNT1 A 0 A_SpawnItemEx("Scorchy", 0, 0, 32, 20, 0, 0, 225, SXF_ABSOLUTEANGLE)
    TNT1 A 0 A_SpawnItemEx("Scorchy", 0, 0, 32, 20, 0, 0, 270, SXF_ABSOLUTEANGLE)
    TNT1 A 0 A_SpawnItemEx("Scorchy", 0, 0, 32, 20, 0, 0, 315, SXF_ABSOLUTEANGLE)
    BEXP D 5 BRIGHT A_Explode
    BEXP E 10 BRIGHT
    BEXP E 1050 BRIGHT A_BarrelDestroy
    BEXP E 5 A_Respawn
    Wait
  }
}

ACTOR Scorchy : FastProjectile
{
  Decal "Scorch"
  Height 1
  Projectile
  Radius 3
  States
  {
  Spawn:
    TNT1 A 1
  Death:
    TNT1 A 1
    Stop
  }
}
Locked

Return to “Editing (Archive)”