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
Darsycho
Posts: 859
Joined: Sat Jul 05, 2008 1:36 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Linux Mint 21.3 Cinnamon, Windows 11
Graphics Processor: nVidia with Vulkan support
Contact:

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

Post by Darsycho »

jack101 wrote:Not exactly sure on how to make a big projectile that shoots smaller projectiles, and it doesn't aim at the monster that shot the bigger projectile.

Any ideas?
Anyone? xP
User avatar
The Zombie Killer
Posts: 1528
Joined: Thu Jul 14, 2011 12:06 am
Location: Gold Coast, Queensland, Australia

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

Post by The Zombie Killer »

cocka wrote:Just a quick question:

Is there a way to make a prototype version of a function just like in C?

Something like this:

function type function_name(type, type);

So you don't have to write the actual content of the function above the script using it. Just the prototyped version.
Functions are global in ACS, so you don't need to worry about prototyped functions, no matter where they are in the code, the script can still use them.

-TZK
User avatar
cocka
Posts: 1520
Joined: Sat Jul 02, 2011 7:21 am
Location: Hungary

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

Post by cocka »

Oh, then I guess it has been changed recently since there is a new acc.exe. So far I always had to put the function above the script using it.
User avatar
ReedtheStrange
Posts: 226
Joined: Sun Sep 11, 2011 3:27 pm

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

Post by ReedtheStrange »

Is there any way to script a sector tag to change?
User avatar
cocka
Posts: 1520
Joined: Sat Jul 02, 2011 7:21 am
Location: Hungary

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

Post by cocka »

Is there any way to script a sector tag to change?
What would be the reason for that?
User avatar
Ghostbreed
Posts: 1114
Joined: Wed Mar 24, 2010 6:19 am

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

Post by Ghostbreed »

http://www.mediafire.com/?e6dfig812yzf8w1
Can someone have a look at my Hacx Uzi and tell me why the hell the CHAINGUN of all weapons keeps showing, even when I have told ZDoom to use completely different frames.
Thanks :)
Last edited by Ghostbreed on Sat Jul 13, 2013 5:32 pm, edited 1 time in total.
User avatar
ReedtheStrange
Posts: 226
Joined: Sun Sep 11, 2011 3:27 pm

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

Post by ReedtheStrange »

cocka wrote:
Is there any way to script a sector tag to change?
What would be the reason for that?
A script to destroy a wall that looked better.
User avatar
Enjay
 
 
Posts: 27070
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

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

Post by Enjay »

But why do you need the sector tag to change? Anything you want to do should be possible without having to change a sector tag.
User avatar
jpalomo
Posts: 772
Joined: Mon May 17, 2010 9:45 am

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

Post by jpalomo »

Ghostbreed wrote:http://www.mediafire.com/?e6dfig812yzf8w1
Can someone have a look at my Hacx Uzi and tell me why the hell the CHAINGUN of all weapons keeps showing, even when I have told ZDoom to use completely different frames.
Thanks :)
Your sprites aren't properly named. Simply add a 0 to the end of each of the names.
User avatar
Ghostbreed
Posts: 1114
Joined: Wed Mar 24, 2010 6:19 am

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

Post by Ghostbreed »

Silly me. Now it works, thanks.
Well, looks like I made a weapon without "stealing" an already used actor. Yay! :D
yqco
Posts: 80
Joined: Sat Jul 06, 2013 9:19 pm

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

Post by yqco »

Alright, this is the challenge I am still facing:

Given a [wiki]LANGUAGE[/wiki] lump and a [wiki=CustomInventory#Using_in_DECORATE]CustomInventory[/wiki] actor, how does one [wiki]A_Print[/wiki] a specific localized string from the item's Use state? Bonus points for any solution that does not involve ACS.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

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

Post by Gez »

Doesn't this work?

Code: Select all

A_Print("$MYSTRING")
If it doesn't, then you ought to raise the issue. [wiki]A_Print[/wiki], [wiki]A_PrintBold[/wiki], and [wiki]A_Log[/wiki] should all use the same $identifier as DECORATE string properties.
yqco
Posts: 80
Joined: Sat Jul 06, 2013 9:19 pm

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

Post by yqco »

Unfortunately not. This just prints the "$MYSTRING" literal to the screen even if MYSTRING is defined in the LANGUAGE lump.
A_Print, A_PrintBold, and A_Log should all use the same $identifier as DECORATE string properties.
I agree. Where is the appropriate place to raise such an issue?
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

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

Post by Gez »

Either Bug Reports or Feature Suggestion.
yqco
Posts: 80
Joined: Sat Jul 06, 2013 9:19 pm

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

Post by yqco »

Locked

Return to “Editing (Archive)”