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.
Fallentemp
Posts: 28
Joined: Sun Dec 30, 2012 10:58 pm

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

Post by Fallentemp »

Is there a way to change the height required to fall in order to play the *land sound? i've got a custom player class with modified Jump Height "Not by much compared to the Default" but every time i jump "Not off an edge" it plays the *land sound, can get quite bothersome seeing as you only jump a few more inches compared to the default value. i'd really rather not have to take out the land sound to solve it.
User avatar
VGA
Posts: 506
Joined: Mon Mar 28, 2011 1:56 am

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

Post by VGA »

I got a pk3 format and an alarm.mp3 inside my sounds folder.

I want to play it with Playsound, I use this:
PlaySound (0, "alarm", CHAN_BODY, 1.0, FALSE, ATTN_NONE);

In my SNDINFO I have this:
alarm sounds\alarm.mp3

Doesn't work.

EDIT: Oh my fucking god it works with forward slashes ...

EDIT: Why wasn't there any warning in the console when playsound failed ?
User avatar
Caligari87
Admin
Posts: 6236
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

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

Post by Caligari87 »

You may have to "alias" the sound first so ZDoom knows you mean "alarm.mp3" when you say "alarm". Look up the SNDDEF article on the wiki.

Disclaimer: Haven't modded in years, Wiki blocked for me at work. Guessing here.

8-)
User avatar
Nash
 
 
Posts: 17501
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

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

Post by Nash »

VGA wrote:EDIT: Oh my fucking god it works with forward slashes ...
Based on my experience, I think pretty much everything that uses slashes in ZDoom-editing-land, uses forward slashes. Probably with the exception of path names, which I think would accept both back and forward slashes.

The only instance where backslashes are enforced is when doing special things with text printing (namely, escape sequences).

Note: I'm not sure how accurate this information is, but what I can tell you - I stick with using only forward slashes for pretty much everything except escape sequences. :P
User avatar
Ravick
Posts: 2051
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

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

Post by Ravick »

How do I change the screen clolor effect of the invulnerability?
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

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

Post by Blue Shadow »

Ravick wrote:How do I change the screen clolor effect of the invulnerability?
With [wiki=Powerup_properties]Powerup.Color or Powerup.Colormap[/wiki].
User avatar
Slax
... in rememberance ...
Posts: 2121
Joined: Tue Oct 19, 2010 7:01 am
Location: Window office.
Contact:

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

Post by Slax »

How are we on proper moving platforms these days? Still not possible?
User avatar
edward850
Posts: 5890
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

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

Post by edward850 »

Slax wrote:How are we on proper moving platforms these days? Still not possible?
Is the Doom engine still using a 2D BSP? Does a bear shit in the woods? :P
User avatar
TheBadHustlex
Posts: 1914
Joined: Thu Oct 03, 2013 12:50 am
Location: 'stria

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

Post by TheBadHustlex »

Polyobjects should be useful for that.

But that's all I know, too. Never actually worked with those.
User avatar
edward850
Posts: 5890
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

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

Post by edward850 »

I'm not sure what gave you the idea that polyobjects (a group of lines) are moving platforms. Because they aren't. You cannot stand on them (and attempting to do so using the midtex trick stops them dead, before you ask).
User avatar
TheBadHustlex
Posts: 1914
Joined: Thu Oct 03, 2013 12:50 am
Location: 'stria

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

Post by TheBadHustlex »

Ha, didn't even know what midtex is supposed to be.
Well, that kind of destroys my idea of a really moving train-level.
User avatar
zrrion the insect
Posts: 2432
Joined: Thu Jun 25, 2009 1:58 pm
Location: Time Station 1: Moon of Glendale

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

Post by zrrion the insect »

It there a way to change a weapon's tag?
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

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

Post by Blue Shadow »

You mean at run-time? I doubt it, since using [wiki]GetActorProperty[/wiki]/[wiki]SetActorProperty[/wiki] will access/change the player's, not the weapon's.
User avatar
zrrion the insect
Posts: 2432
Joined: Thu Jun 25, 2009 1:58 pm
Location: Time Station 1: Moon of Glendale

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

Post by zrrion the insect »

Darn. I have a weapon (tagged fists) that, when given a dagger, I'd like to change the tag to dagger, and I was hoping to avoid having to split it into two weapons.
Locked

Return to “Editing (Archive)”