Script for a working computer

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.
Locked
User avatar
marxr
Posts: 10
Joined: Fri Jun 25, 2010 11:42 am
Location: Estonia

Script for a working computer

Post by marxr »

Anyone know the script for something like this this? I'll explain. When you press the computer or something in doom and it starts booting up or doing something on the screen, i guess the later part is all texture work.
User avatar
scalliano
Posts: 2866
Joined: Tue Jun 21, 2005 1:16 pm
Location: Ireland

Re: Script for a working computer

Post by scalliano »

Like you said, probably all texture work. From what you're describing, I'd say the whole thing could be done in ANIMDEFS, negating the need for a script completely.

Unless, of course, you're looking to implement some kind of functionality, in which case I'm in over my head :P
User avatar
marxr
Posts: 10
Joined: Fri Jun 25, 2010 11:42 am
Location: Estonia

Re: Script for a working computer

Post by marxr »

I'd appriciate if you could explain further, im kind of newb when it comes to zdoom features and scripting, just started mapping in doom in hexen format a week ago.
User avatar
marxr
Posts: 10
Joined: Fri Jun 25, 2010 11:42 am
Location: Estonia

Re: Script for a working computer

Post by marxr »

Read something about ANIMDEFS in zdoom wiki but could't undrestand much.
User avatar
scalliano
Posts: 2866
Joined: Tue Jun 21, 2005 1:16 pm
Location: Ireland

Re: Script for a working computer

Post by scalliano »

ANIMDEFS is basically a lump that controls texture animations and is also used for things like switches. Say you have a texture (TEX01) with four frames (TEX01, TEX02, TEX03, TEX04), you'd set it up like this:

Code: Select all

texture TEX01
    pic 1 tics 5
    pic 2 tics 5
    pic 3 tics 5
    pic 4 tics 5
where tics is how long each frame displays for. The bigger the number, the slower the animation.

Now, let's say you have another texture (TEX00) which displays when the computer is off. To turn it "on" you'd have something like this underneath:

Code: Select all

switch TEX00 on sound Switch1 pic TEX01 tics 0
Now, because the animation for TEX01 is already defined above, the animation should complete.
User avatar
Enjay
 
 
Posts: 27063
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Script for a working computer

Post by Enjay »

User avatar
scalliano
Posts: 2866
Joined: Tue Jun 21, 2005 1:16 pm
Location: Ireland

Re: Script for a working computer

Post by scalliano »

Hehehehahaha!!! Excellent!
User avatar
Galaxy_Stranger
Posts: 1326
Joined: Sat Aug 16, 2003 11:42 pm
Location: Shropshire
Contact:

Re: Script for a working computer

Post by Galaxy_Stranger »

Fucking...amazing...

This starts the wheels turning...
User avatar
marxr
Posts: 10
Joined: Fri Jun 25, 2010 11:42 am
Location: Estonia

Re: Script for a working computer

Post by marxr »

Thanks enjay, haha blue screen of death :D
User avatar
Nash
 
 
Posts: 17498
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Script for a working computer

Post by Nash »

Someone needs to find the person who made UAC install XP on their computers... and teleport that guy to the moon as punishment.
User avatar
Enjay
 
 
Posts: 27063
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Script for a working computer

Post by Enjay »

Could be that they wanted to avoid Vista. ;)
User avatar
xenoxols
Posts: 2134
Joined: Mon Mar 18, 2013 6:08 pm
Preferred Pronouns: She/Her
Location: Behind you

Re: Script for a working computer

Post by xenoxols »

In mine, and many others experience, xp is the least buggy, and in almost everybody's eyes, the most compatible.(mostly because it's been active for 13 years)
User avatar
Nash
 
 
Posts: 17498
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Script for a working computer

Post by Nash »

Ironically, my old music production computer, which kept me fed from 2007 to 2013, was an (unpatched!!!) XP machine... :P
User avatar
Ravick
Posts: 2049
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

Re: Script for a working computer

Post by Ravick »

In 'MindFuck' I also use some texture kludges to simulate functional computers: :)

[edit] Direct download link: http://www.mediafire.com/download/o77cs ... cks_1A.rar
Locked

Return to “Editing (Archive)”