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       

[Info] Adding Locked Doors
Page 1 of 1
DieHard Wolfers Forum Index -> Code Crackers 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
Guest




Last Visit:





PostPosted: Tue Apr 15, 2003 2:10 pm
   Subject: [Info] Adding Locked Doors
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

Yo, I want to know; How to make different colored locked door(The Gold Key Match with the Gold Locked Door, Silver with Silver...)

Thanks

- Alex
Ripper
Code Master - Developer
Code Master - Developer


Joined: 15 Mar 2003
Last Visit: 30 Sep 2008

Topics: 21
Posts: 527
Location: Germany
blank.gif

PostPosted: Wed Apr 16, 2003 1:58 am
   Subject: Re: [Info] Adding Locked Doors
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

You've got to change the switch blocks in the HitHorizDoor and HitVertDoor functions in WL_DRAW.C like this (for example):

::: CODE :::

      switch (doorobjlist[doornum].lock)
      {
      case dr_normal:
         doorpage = DOORWALL;
         break;
      case dr_lock1:    // gold key
         doorpage = DOORWALL+6;
         break;
      case dr_lock2:    // silver key
         doorpage = DOORWALL+8;
         break;
      case dr_lock3:    // another key
         doorpage = DOORWALL+10;
         break;
      case dr_lock4:    // yet another key
         doorpage = DOORWALL+12;
         break;
      case dr_elevator:
         doorpage = DOORWALL+4;
         break;
      }


Of course you've got to add the apropiate door pictures and so, but that's how it's gonna work Wink

Hope that helped Mr Green
Guest




Last Visit:





PostPosted: Wed Apr 16, 2003 7:09 am
   Subject: Re: [Info] Adding Locked Doors
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Yeah, the code work, BUT i dont know where I have to put the new doors pictues!! So the new door have a little "graphics bug" in it...but it work
Ripper
Code Master - Developer
Code Master - Developer


Joined: 15 Mar 2003
Last Visit: 30 Sep 2008

Topics: 21
Posts: 527
Location: Germany
blank.gif

PostPosted: Thu Apr 17, 2003 6:30 am
   Subject: Re: [Info] Adding Locked Doors
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

No problem, I'm glad I was able to help Mr Green
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> Code Crackers 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 Sticky: [Info] Help for newbie coders! C++ Tutorial
Author: Dugtrio17
20 7685 Sun Jan 10, 2010 12:26 pm
Fragstein3D View latest post
No new posts [Info] Breakable or Exploding Objects (colums or barrels)
Author: wolf3dbreaker
37 6452 Tue Feb 08, 2005 5:44 am
Guest View latest post
No new posts [Info] Tricks - Dogs that shoot - Modifying Behaviour
Author: Guest
19 284 Sat Mar 20, 2004 7:31 am
Dugtrio17 View latest post
No new posts [Info] Alarm Sounding in game?? WSJ...??
Author: Guest
7 308 Tue Jun 17, 2003 10:04 pm
Reivax44 View latest post
No new posts [Info] Silent Gun? - Adding a Silencer
Author: Guest
4 194 Fri Apr 18, 2003 8:34 am
BrotherTank 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