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] Mirrored Images - walls that are reversed on one side
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
Guest




Last Visit:





PostPosted: Thu May 01, 2003 1:22 pm
   Subject: [Info] Mirrored Images - walls that are reversed on one side
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

All right... you know how the texture on the opposite side of a door is reversed? Well, I need to have a wall which does that. The reason is because I have walls which are meant to look like the sides of a truck. The problem is that if the player views one side of the truck, it will look OK, but if he sees the OTHER side of the truck, that side will look backwards. So I need a wall which is a normal wall except that it has one side reversed, the way a door does.

Does anyone know how this can be achieved? (You will get credit.)
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 May 01, 2003 3:45 pm
   Subject: Re: [Info] Mirrored Images - walls that are reversed on one side
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

In the HitVertWall function in WL_DRAW.C change the
::: CODE :::
   if (xtilestep == -1)
   {
      texture = 0xfc0-texture;
      xintercept += TILEGLOBAL;
   }
to
::: CODE :::
   if (xtilestep == -1)
   {
      if(tilehit!=TRUCKTILE1 && tilehit!=TRUCKTILE2 && tilehit!=TRUCKTILE3) texture = 0xfc0-texture;
      xintercept += TILEGLOBAL;
   }

and in the HitHorizWall function
::: CODE :::
   if (ytilestep == -1)
      yintercept += TILEGLOBAL;
   else
      texture = 0xfc0-texture;
to
::: CODE :::
   if (ytilestep == -1)
      yintercept += TILEGLOBAL;
   else if(tilehit!=TRUCKTILE1 && tilehit!=TRUCKTILE2 && tilehit!=TRUCKTILE3)
      texture = 0xfc0-texture;

with TRUCKTILE1-3 being the tilenumbers of three truck walls you use. Of course you can change the number of truck walls to anything you want, you've only got to change the number of expressions inside the added ifs and the number of TRUCKTILE* thingies.
You can replace the TRUCKTILE* constants by the actual numbers or add defs to the begining of the file (under #define ACTORSIZE) like
::: CODE :::
#define TRUCKTILE1 54
#define TRUCKTILE2 55
#define TRUCKTILE3 56

Hope that helped Wink
Ripper

PS: I didn't test it, but it should work.
Guest




Last Visit:





PostPosted: Thu May 01, 2003 7:42 pm
   Subject: Re: [Info] Mirrored Images - walls that are reversed on one side
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Yes, it works! Very Happy

Thanks, Ripper! I'll give you credit in the Helpart or one of the text files.
Guest




Last Visit:





PostPosted: Thu May 01, 2003 9:15 pm
   Subject: Re: [Info] Mirrored Images - walls that are reversed on one side
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

That's better than backward which I noticed few graphics were reversed Laughing
jamez
I am Death Incarnate
I am Death Incarnate


Joined: 16 Mar 2003
Last Visit: 17 Jan 2019

Topics: 13
Posts: 186
Location: Yorkshire, UK
uk.gif

PostPosted: Sat May 03, 2003 12:57 pm
   Subject: Re: [Info] Mirrored Images - walls that are reversed on one side
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

Hey, sorry i've been away.

My internet connection must have dissconected whilst uploading... im uploading it again now...

@Alex: How would directional sprites work? unless you use a wall as the front and a wall at the back, it would work but it would be complex Razz

I used to just have my truck pressed up against a wall... so you see the good side and not the bad side lol

or you could have a semetric wall Razz

_________________
~ James
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] Different Door Sides - Ripper
Author: Ripper
1 2547 Tue Apr 19, 2011 7:00 pm
gerolf View latest post
No new posts [Code] Animated Walls - Darkone
Author: BrotherTank
4 2890 Fri Oct 20, 2006 6:04 pm
insurrectionman View latest post
No new posts [Info] Giving a Guard a Rocket Launcher
Author: Guest
4 197 Fri Jan 23, 2004 1:58 pm
Guest View latest post
No new posts [Help] Different Enemy Dying Frames/Views
Author: Guest
7 609 Tue Jul 29, 2003 3:00 pm
Codetech84 View latest post
No new posts [Info] VL_FadeOut - Function Explanation
Author: TheTalentedMrLeo
1 1700 Sat May 03, 2003 2:36 pm
Codetech84 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