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
TheBadHustlex
Posts: 1914
Joined: Thu Oct 03, 2013 12:50 am
Location: 'stria

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

Post by TheBadHustlex »

I'm not sure what this exactly is, but:
Is it normal that GZDoom adjusts the volume of the music to the sounds from the game? Like, when there is loud gunfire, the music get's lower?
Or is it Win10 trying to be an ass?
User avatar
phantombeta
Posts: 2163
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

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

Post by phantombeta »

I think that's Windows or FMOD trying to prevent clipping so your audio devices don't get destroyed and you don't go deaf...
User avatar
TheBadHustlex
Posts: 1914
Joined: Thu Oct 03, 2013 12:50 am
Location: 'stria

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

Post by TheBadHustlex »

OK. Guess that's good then.
User avatar
Xane123
Posts: 165
Joined: Tue Nov 24, 2015 1:58 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Inwood, WV
Contact:

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

Post by Xane123 »

So, I'm currently modifying a "ability" one of my characters "use" which is scripted and makes them dash forward when they jump twice; I originally made it by using a A_ChangeVelocity in their player class an multiplying their velx and vely, but this made it so that the faster you went, the more of a boost you'd earn.

I'm now moving it to ACS and plan to make the player's velocity 0 then immediately force their velocity up to a certain value in the direction they're facing; However, as far as I can tell, there's no ACS command that allows me to set their velocity in a given angle and SetActorVelocity has separate X, Y, and Z velocity values so I'd only be able to thrust directly in a cardinal direction and something tells me determining the correct X and Y velocities based on the player's angle probably involves sine, cosine, and tangent, stuff I don't know about.
User avatar
comet1337
Posts: 876
Joined: Fri Sep 25, 2015 3:48 am
Location: elsewhere

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

Post by comet1337 »

you may want to look at ThrustThing and ThrustThingZ
they can be used in both DECORATE and ACS
Gez
 
 
Posts: 17939
Joined: Fri Jul 06, 2007 3:22 pm

Re: How do I change Heretic Intermission text color?

Post by Gez »

Legend wrote:My understanding is that the menu and intermission text is drawn with a font and can be assigned different colors through mapinfo and menudef in zdoom. I managed to get the main menu colors changed how I want, but can't figure out how the intermission text color is changed? Is the intermission text all graphic lumps or a font that can be changed like the menus?

Also, when I load the mod, "M-HTIC" doesn't display above the main menu. Instead it is just text that says "Main Menu" in green color (not the color I specified for the rest of the menu) where the heretic logo graphic would usually go. How do I ensure that the "M_HRTIC" graphic is displayed, and/or is there a way to change the green "Main Menu" text to a different color?

Thanks.
Intermission text color is defined by the TextColor property (assuming you're talking about [wiki=MAPINFO/Intermission_definition#TextScreen_properties]this kind of intermission[/wiki]; if you're talking about the tally screen where it tells you the kill/item/secret/time score, then it's somewhere else).

It's "M_HTIC". Not "M-HTIC" (minus instead of underscore) or "M_HRTIC" (extraneous R). Make sure you have not typoed it.

Finally, changing the menu text color is as easy as [wiki=MENUDEF#Instructions]using the Font property and its optional parameters[/wiki].
User avatar
Xane123
Posts: 165
Joined: Tue Nov 24, 2015 1:58 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Inwood, WV
Contact:

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

Post by Xane123 »

@comet1330 Ah, those! I've used them i the past and I don't know how I forgot about them! Thanks!

EDIT: Just updated my code with ThrustThing and ThrustThing and it worked as expected!
User avatar
snarkel
Posts: 139
Joined: Wed Aug 06, 2014 9:02 pm
Preferred Pronouns: He/Him

Re: Help with weapon tweaks

Post by snarkel »

So, I'm currently trying to touch up one of my weapons I made in DECORATE but I'm having a few issues with it. EDIT: I got damage working but no matter what I put, there is no weapon spread.

This is the current DECORATE of the weapon.
Any help is appreciated :)

Code: Select all

ACTOR UACRifle : DoomWeapon
{
   Weapon.SelectionOrder 700
   Weapon.AmmoUse 1
   Weapon.AmmoGive 40
   Weapon.AmmoType "Clip"
   Weapon.SlotNumber 2
   Inventory.PickupMessage "You got a UAC Standard Issue Assault Rifle!"
   Obituary "%o was looking down the barrel of %k's Assault Rifle."
   States
   {
   Ready:
     UACR A 1 A_WeaponReady
     Loop
   Deselect:
     UACR A 1 A_Lower
     Loop
   Select:
     UACR A 1 A_Raise
     Loop
   Fire:
   	 UACR A 0 A_PlaySound ("Rifle/Fire")
     UACR A 2 Bright A_FireBullets (50, 50, 1, 8, "BulletPuff")
     UACR B 2
     Goto Ready
   Spawn:
     UACR Z -1
     Stop
   }
}
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: Help with weapon tweaks

Post by Blue Shadow »

snarkel wrote:no matter what I put, there is no weapon spread.
A_FireBullets wrote:The first bullet fired in the Fire (not Hold) sequence normally ignores the spread and is always perfectly accurate. Setting numbullets to a negative value removes this effect.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: Help with weapon tweaks

Post by wildweasel »

Blue Shadow wrote:
snarkel wrote:no matter what I put, there is no weapon spread.
A_FireBullets wrote:The first bullet fired in the Fire (not Hold) sequence normally ignores the spread and is always perfectly accurate. Setting numbullets to a negative value removes this effect.
To expand upon this, in order to make it spread beyond the first bullet, you need an A_Refire at the end of the Fire state, because that's how the game keeps track of what the "first" bullet is.
User avatar
snarkel
Posts: 139
Joined: Wed Aug 06, 2014 9:02 pm
Preferred Pronouns: He/Him

Re: Help with weapon tweaks

Post by snarkel »

wildweasel wrote:
Blue Shadow wrote:
snarkel wrote:no matter what I put, there is no weapon spread.
A_FireBullets wrote:The first bullet fired in the Fire (not Hold) sequence normally ignores the spread and is always perfectly accurate. Setting numbullets to a negative value removes this effect.
To expand upon this, in order to make it spread beyond the first bullet, you need an A_Refire at the end of the Fire state, because that's how the game keeps track of what the "first" bullet is.
It worked! thanks guys :D
User avatar
Rowsol
Posts: 996
Joined: Wed Mar 06, 2013 5:31 am
Contact:

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

Post by Rowsol »

Rowsol wrote:Is the spread from custombullet the same calculation as random angle on custommissile? for instance, is a spread of 10 on CB the same as random(-5,5) on CM?
That ^ one and a new question. When layering A_Quake to make close explosions shake more, do you order it high to low or vice versa? Do they overwrite each other?

Code: Select all

TNT1 A 0 A_Quake(6, 18, 0, 384, none)
TNT1 A 0 A_Quake(3, 18, 0, 768, none)
Is this the right way, or should they be switched?

edit: Well, I just did a test and it doesn't seem to matter? That's odd, you'd think they would overwrite each other, but it seems to take the highest of the 2 regardless of order.
User avatar
Zeberpal
Posts: 191
Joined: Sun Apr 28, 2013 2:06 am
Location: RU

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

Post by Zeberpal »

Is it possible to change Doom sliding screen pattern somehow?
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 »

How can I "check" when an actor passes through another one (the player in this case)?
And how can I make it interactive? For example:

1) There is a light that moves from left to right, and far in front of me there is an imp, which is sleeping quietly;
2) I go towards such moving light until I am under it;
3) The moment when such light is over me, the imp will be alerted.

Is it doable? And how can I afford it ONLY through decorate? if not, which kind of script must I build then? Thanks.
JamesNaruto12
Posts: 11
Joined: Thu Oct 29, 2015 6:09 pm

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

Post by JamesNaruto12 »

How can I have an enemy drop 2 to 4 of the same item but lower the chances it droping after the first time.
Locked

Return to “Editing (Archive)”