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       

[HELP] One-way doors (Blake Stone Style)
Page 1 of 1
DieHard Wolfers Forum Index -> SDL 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
Haasboy
DieHard Officer
DieHard Officer


Joined: 23 Jul 2003
Last Visit: 04 Nov 2017

Topics: 58
Posts: 581
Location: South Africa, Johannesburg
southafrica.gif

PostPosted: Sun Jul 27, 2008 2:31 pm
   Subject: [HELP] One-way doors (Blake Stone Style)
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

I need help in coding a one side door similar to the ones on Blake Stone - with the no entrance have one texture and the other side another texture!!!!!??????!!!!!!??????

_________________
Haasboy Engine - Currently under construction (To be used with future mods - F.A.D.E.D. - Mansion X - Rising Evil Series)
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 0:27 ago.

Topics: 160
Posts: 7993
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Sun Jul 27, 2008 7:49 pm
   Subject: Re: [HELP] One-way doors (Blake Stone Style)
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Not sure there's a quick and easy way of coding this, but I plan in the future to make a Blake Stone SDL port, anyway. I'll look it over and let you know if I can come up with anything. If it's by me though, expect it to be big and sloppy. Razz

Edit: Checked the code out, and a solution just isn't coming to me for some reason. Confused Guess it's something I'll have to sleep on. Yawn
BrotherTank
Forum Administrator
<B>Forum Administrator</B>


Joined: 01 Mar 2003
Last Visit: 13 Sep 2017

Topics: 153
Posts: 2256
Location: Ontario
canada.gif

PostPosted: Mon Jul 28, 2008 12:18 am
   Subject: Re: [HELP] One-way doors (Blake Stone Style)
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Ripper has to add some code to the void ASMRefresh routine. I think he has done it for someone but the solution hasn't been posted yet. The problem is that it can't detect the second side of the door and thus is not drawing the graphic.

In the tutorial by Adam Biser, you have to replace the wl_draw.asm file with a new one. In that Adam has made the necessary conversions to the assembler code to pick up on the second side of the doors. As you can see, the new routine by Ripper is the ASM code converted to a C++ version. Hence the need for the additional "Jump" points or conditions to catch the second door side to draw the doors properly.

I was trying to port Darkone's Raycastor over to C++ but there is still some ASM in there that I don't understand in converting to C++.

If Ripper has the time, I would love to see that tutorial also converted to C++ (most of it already is) it's just some of the drawing items that are not... as it supports a more user friendly setup of doors... Automatically does 3d transparent sprites (no special defines required) as well as the Blake style doors.

Hope that helps...

Greg
BrotherTank
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 0:27 ago.

Topics: 160
Posts: 7993
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Mon Jul 28, 2008 7:37 pm
   Subject: Re: [HELP] One-way doors (Blake Stone Style)
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

Well, thinking it over tonight, the logic would probably be written like this:

Vertical door N: If the player's vertical coordinate (or Y coordinate) on the map is above that of the door to be drawn, draw the open door texture. Otherwise, draw the closed door texture.
Horizontal E: If the player's horizontal coordinate (or X coordinate) on the map is to the left of the door to be drawn, draw the closed door texture. Otherwise, draw the open door texture.

You can probably guess the rest. Smile
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> SDL 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 [help] Adding teleporters in wolf4sdl
Author: Mortimer
35 7129 Fri May 26, 2017 8:19 am
Military View latest post
No new posts [WOLF4SDL Help] Blake Stone Style doors
Author: Haasboy
3 2137 Sun Jul 20, 2008 7:56 am
Haasboy View latest post
No new posts [Wolf4SDL Help] Inserting a second palette (like in SoD)
Author: Andy_Nonymous
10 2352 Mon Jun 02, 2008 3:59 pm
Adam Biser View latest post
No new posts [Help] Problem with Checkweaponchange function (wolf4sdl)
Author: Mortimer
4 2281 Sat May 17, 2008 11:26 am
Mortimer View latest post
No new posts [help] Wolf4sdl's implemented tutorials
Author: Mortimer
6 2437 Tue May 06, 2008 1:15 pm
Ripper 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