DieHard Wolfers Forum Index DieHard Wolfers
A Wolfenstein 3d Fan Community


  Hosted by: MCS & Areyep.com - Designed by: BrotherTank

Original Yahoo Forum - Die Hard Archives

AReyeP HomepageAreyep Homepage DieHard Wolfenstein BunkerDieHard Wolfenstein Bunker Log inLog in RegisterRegister Banlist FAQFAQ Search ForumsSearch

  Username:    Password:      Remember me       

Teleporters that change floor colors?
Page 1 of 1
DieHard Wolfers Forum Index -> Code Tutorials View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page BottomView Next Topic
Post new topicReply to topic
Author Message
Ringman
DieHard Wolfer
DieHard Wolfer


Joined: 31 Jul 2003
Last Visit: 15 Jul 2019

Topics: 56
Posts: 1180
Location: up my nose
usa.gif

PostPosted: Wed Apr 28, 2004 5:13 am
   Subject: Teleporters that change floor colors?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

Ok, I know there is a code to make teleporters and its fairly simple to do, but how do I make it so it will change the floor color when you teleport and change the floor color back when you teleport back?

I'm assuming its pretty simple since I already kind of have an idea, but I'd like to have a snippet of a tutorial to add to MCS's teleporter tutorial.

_________________
One day I saw upon a stair a little man who wasn't there. He wasn't there again today. My gosh I'd wish he'd go away.
MCS
Site Administrator
<B>Site Administrator</B>


Joined: 01 Mar 2003
Last Visit: 15 Jul 2013

Topics: 20
Posts: 243
Location: Amsterdam, the Netherlands
netherlands.gif

PostPosted: Wed Apr 28, 2004 11:34 am
   Subject: Re: Teleporters that change floor colors?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

::: CODE :::
In WL_DEF.H, search for

   int      difficulty;
   
add this line below:

   boolean      warped;
   
In WL_AGENT.C, add the following line at the end of the WarpPlayer() function:

   gamestate.warped ^= 1;
   
In WL_DRAW.C, locate this line:

asm   mov   ax,0x1919

replace with:

if (gamestate.warped)
   asm   mov   ax,0x0000 (alter this to your liking)
else
   asm   mov   ax,0x1919
   


Enjoy,
MCS.
Ringman
DieHard Wolfer
DieHard Wolfer


Joined: 31 Jul 2003
Last Visit: 15 Jul 2019

Topics: 56
Posts: 1180
Location: up my nose
usa.gif

PostPosted: Wed Apr 28, 2004 1:22 pm
   Subject: Re: Teleporters that change floor colors?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Thanks! I didn't think it was too difficult. I appreciate it. Could this be posted up on the tutorials section with the teleporter tutorial so others can use it as well?

_________________
One day I saw upon a stair a little man who wasn't there. He wasn't there again today. My gosh I'd wish he'd go away.
Chris
DieHard Wolfer
DieHard Wolfer


Joined: 11 Mar 2003
Last Visit: 16 Jul 2019

Topics: 56
Posts: 2234
Location: Canada
blank.gif

PostPosted: Wed Apr 28, 2004 11:24 pm
   Subject: Re: Teleporters that change floor colors?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

MCS wrote:
Enjoy,
MCS.

Oh, I enjoyed this message very much; but probably for a different reason than you might think. It's like walking down the street and seeing someone you haven't talked to for years, and you're not concerned with what they're doing... it's just nice to say Hi and see them again. Yup, I enjoyed your message. Mr Green
MCS
Site Administrator
<B>Site Administrator</B>


Joined: 01 Mar 2003
Last Visit: 15 Jul 2013

Topics: 20
Posts: 243
Location: Amsterdam, the Netherlands
netherlands.gif

PostPosted: Thu Apr 29, 2004 2:34 pm
   Subject: Re: Teleporters that change floor colors?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Quote:
and you're not concerned with what they're doing


I'm sorry, Your Highness. I didn't mean to offend you.
Guest




Last Visit:





PostPosted: Mon May 03, 2004 6:46 pm
   Subject: Re: Teleporters that change floor colors?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Oh, come now, MCS: You know Chris didn't mean it like that. He merely said that he was glad to see you, not worried with why you've not been about, and just happy that you are so now again. I suppose, though, it's not really my position to step in.
Chris
DieHard Wolfer
DieHard Wolfer


Joined: 11 Mar 2003
Last Visit: 16 Jul 2019

Topics: 56
Posts: 2234
Location: Canada
blank.gif

PostPosted: Mon May 03, 2004 11:48 pm
   Subject: Re: Teleporters that change floor colors?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

Haha... I just assumed that there must be some kind of joke or deep hidden meaning inside MCS's reply. Maybe you're right and something just got lost along the translation, but it was still funny to read something unexpected and get called 'your Highness' (which I always thought related to a woman; which could explain alot of things) - lol.

*hands MCS back the crowns I found in level 22, and steps down from the throne now*

Your "down to Earth" style posts are always nice to read Joe. You should step into every thread on the forum and speak your mind man; would make this place quite entertaining! Smile
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> Code Tutorials View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page TopView Next Topic
Page 1 of 1
Jump to:  

Related topics
 Topics   Replies   Views   Last Post 
No new posts [Code] Blood Splatz Tutorial - Blood Splatters
Author: Dugtrio17
45 16727 Tue Mar 11, 2008 12:02 am
AlumiuN View latest post
No new posts [Code] Display Different Ammo Types on Statusbar-BrotherTank
Author: BrotherTank
1 3309 Fri Feb 11, 2005 9:18 pm
Zombie_Plan View latest post
No new posts [Code] Adding a Frames per Second Counter - Darkone
Author: BrotherTank
0 2442 Sat Mar 13, 2004 2:07 pm
BrotherTank View latest post
No new posts [Code] Changing an Enemies Attack Strength - BrotherTank
Author: BrotherTank
0 2736 Tue Jan 27, 2004 10:29 am
BrotherTank View latest post
No new posts [Code] Changing Weapons -CheckWeaponChange- BrotherTank
Author: BrotherTank
2 3653 Sun Oct 26, 2003 1:21 am
Guest View latest post
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
   You cannot delete your posts in this forum
You cannot vote in polls in this forum


Copyright ©2003-2008 DieHard Wolfers
A Modified subBunker Theme by BrotherTank
Powered by phpBB © 2001, 2005 phpBB Group