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 insightguy » Fri Jul 06, 2012 2:33 am

I want to make 3 episodes with each a different player with different stats and weapon set. how do I do that?

and how do i make a weapon stronger when your health is lower and take it away when your health is back like in order and chaos. A_jumpifhealth?

And how do I make weapons with powered up states last to the next level. or can this only be accomplished by A_Select weapon if the player has the upgrade in his invisible inventory?
User avatar
insightguy
It's always the adorable one that kills you...........
 
Joined: 23 Mar 2011

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

Postby Vaecrius » Fri Jul 06, 2012 10:40 pm

User avatar
Vaecrius
Team Bad Allocation, blast off at the speed of light!
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

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

Postby cypherphage » Sat Jul 07, 2012 4:21 am

Wait, a_checkInventory can't count "health"? That's weird, because it works in ACS:
Code: Select allExpand view
script "getHealth" (void)
{   SetResultValue(CheckInventory("health"));
}
User avatar
cypherphage
 
Joined: 27 Feb 2011

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

Postby Blue Shadow » Sat Jul 07, 2012 7:08 am

I think it's "safer" and better to use GetActorProperty/SetActorProperty with APROP_Health as the property to get/set instead.
User avatar
Blue Shadow
 
Joined: 14 Nov 2010

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

Postby Kate » Sat Jul 07, 2012 9:31 am

CheckInventory will not return negative numbers, so using it to return health will always return 0 for dead things, therefore you cannot use it to figure out if a monster died extremely or not.
User avatar
Kate
Will love and tolerate THE SHIT out of you
 
Joined: 15 Jul 2003
Location: New Jersey, US

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

Postby cypherphage » Sat Jul 07, 2012 11:37 am

Fair enough, I didn't think about doing it that way.

Is there anyway to make a sector invisible on the textured automap? It's a cool feature, but when the player can see all of the boundary areas it ends up looking bad.
User avatar
cypherphage
 
Joined: 27 Feb 2011

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

Postby Dancso » Sat Jul 07, 2012 1:17 pm

Pretty sure there was a way to hide sectors from the automap, textured or not. I'm thinking a flag on the sector or its linedefs... the word "hidden" rings a bell.
User avatar
Dancso
bow wow
 
Joined: 11 Oct 2006
Location: at home.. Status: lazy like hell

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

Postby cypherphage » Sat Jul 07, 2012 1:32 pm

That hides the lines, but it doesn't affect the sectors. I also tried adding a secret actor to the sector, and setting the lines secret, and setting the sector to secret...no affect.

*Edit: Apparently, 2.60 added special 195 which makes the sector hidden, and there is supposed to be UDMF flag to do the same.
User avatar
cypherphage
 
Joined: 27 Feb 2011

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

Postby Reactor » Sun Jul 08, 2012 10:25 am

Okay, new question:

Is is possible for the enemy to add a "line" projectile attack? One of my levels - Lost in da Mist - will be an Easter Egg referring to the movie "The Mist", where you might know, there are lots of Trites attacking by shooting web strands. They will have melee attacks alright, yet, I would really love the Trites to shoot web strands like they did in the movie (to a limited distance of course). I wonder if it's possible to create a projectile which would act like their web in the movie. It would look like a long, light gray web which flies straight when the Trite attacks, and then slowly sinks to the ground. Can you give me some tips regarding to this Trite attack?
User avatar
Reactor
The militarist
 
Joined: 03 Feb 2011
Location: Hungary

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

Postby amv2k9 » Mon Jul 09, 2012 6:00 pm

Reactor wrote:It would look like a long, light gray web which flies straight when the Trite attacks, and then slowly sinks to the ground. Can you give me some tips regarding to this Trite attack?
The projectile spawns bits which start off with +NOGRAVITY, then after x tics, remove that flag. The bits might need to be 16-angle sprites.
User avatar
amv2k9
Satanic Redux, Order & Chaos, Mutation, and Weapons of Rebellion Series Dev
 
Joined: 10 Jan 2010
Location: Southern California

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

Postby Reactor » Mon Jul 09, 2012 9:19 pm

Sounds reasonable. Can you show me a picture of a line which would correspond the Trite's web strand right after launch and a second line which shows the web strand while descending to the ground? This would be very helpful.
User avatar
Reactor
The militarist
 
Joined: 03 Feb 2011
Location: Hungary

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

Postby zrrion the insect » Tue Jul 10, 2012 4:35 pm

Is there a way to get A_GunFlash to draw the flash sprites below the weapon sprites, as opposed to on top of them?
User avatar
zrrion the insect
Good, bad, I'm the guy with the pun.
 
Joined: 25 Jun 2009
Location: Deep in sector-overlap hell.

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

Postby Ravick » Tue Jul 10, 2012 7:18 pm

How do I block friendly monster like the regular ones? I know they do not obey the "block monsters" line flag, is there a way to change it?
User avatar
Ravick
Do what thou wilt, since you don't bug the hell out of me!
 
Joined: 22 Aug 2010
Location: Tubarão, Brasil

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

Postby Arch » Wed Jul 11, 2012 3:01 am

Try using -NOBLOCKMONST Ravick.
User avatar
Arch
Arrr!
 
Joined: 10 Nov 2011

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

Postby Ravick » Wed Jul 11, 2012 7:00 am

Thanks, Arch! ;)

Oh, btw, what is the difference between "world" and "global" variables?
User avatar
Ravick
Do what thou wilt, since you don't bug the hell out of me!
 
Joined: 22 Aug 2010
Location: Tubarão, Brasil

PreviousNext

Return to Editing

Who is online

Users browsing this forum: BigProjectAlone, Bing [Bot], Google [Bot] and 1 guest