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       

Ending the game with an elevator?
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
Barry
DieHard Officer
DieHard Officer


Joined: 27 Aug 2008
Last Visit: 29 Oct 2017

Topics: 64
Posts: 565

blank.gif

PostPosted: Wed Jun 22, 2016 12:32 pm
   Subject: Ending the game with an elevator?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

As of now, the final level of Phase 1 ends with a DeathCam when you beat the boss, which will be changed to dropping a key in the complete version of Hollenteufel, but in reality I would like it if when the player threw the elevator switch on the final level, it ended the game. I have been able to get it to display the end art as if the game has been won and even return to the title screen, but it always drops the player back into the next level afterwards. What would I need to do so what when the player throws the switch on floor 31, it completely ends the game, records the player's score, and returns to the title screen?
Barry
DieHard Officer
DieHard Officer


Joined: 27 Aug 2008
Last Visit: 29 Oct 2017

Topics: 64
Posts: 565

blank.gif

PostPosted: Wed Jun 22, 2016 3:38 pm
   Subject: Re: Ending the game with an elevator?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Can't test it yet but I'm going to try adding this to the code handling secret levels to accomplish this.

if (gamestate.mapon == 30)
{
gamestate.victoryflag = true;
}

_________________
Atomprojekt Download: http://www.wolfenvault.com/files/barry/ATOM.3.zip
Passage to Hollenteufel Download: http://www.wolfenvault.com/files/barry/PTH.2.zip
AlumiuN
DieHard Wolfer
DieHard Wolfer


Joined: 29 Nov 2007
Last Visit: 8:04 ago.

Topics: 37
Posts: 2410
Location: Christchurch, New Zealand
newzealand.gif

PostPosted: Wed Jun 22, 2016 4:09 pm
   Subject: Ending the game with an elevator?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

In Cmd_Use in WL_AGENT there's the following:

::: CODE :::
        if (*(mapsegs[0]+(player->tiley<<mapshift)+player->tilex) == ALTELEVATORTILE)
            playstate = ex_secretlevel;
        else
            playstate = ex_completed;


Changing that to the following should do what you want:

::: CODE :::
        if (*(mapsegs[0]+(player->tiley<<mapshift)+player->tilex) == ALTELEVATORTILE)
            playstate = ex_secretlevel;
        else if (gamestate.mapon == 30)
            playstate = ex_victorious;

        else
            playstate = ex_completed;


The victoryflag is used to start the BJ animation at the ends of E1 and E5, which I assume you probably don't want, hence changing the playstate.
Barry
DieHard Officer
DieHard Officer


Joined: 27 Aug 2008
Last Visit: 29 Oct 2017

Topics: 64
Posts: 565

blank.gif

PostPosted: Wed Jun 22, 2016 4:18 pm
   Subject: Re: Ending the game with an elevator?
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

Thanks! I'll try that.

Yeah I definitely don't want the BJ animation.

_________________
Atomprojekt Download: http://www.wolfenvault.com/files/barry/ATOM.3.zip
Passage to Hollenteufel Download: http://www.wolfenvault.com/files/barry/PTH.2.zip
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 [Info] Adding a Second Elevator or End Level
Author: Xarkon
13 2326 Tue Jul 05, 2005 7:31 pm
Tricob View latest post
No new posts Floor Texture Bug...
Author: KyleRTCW
4 1567 Wed Apr 28, 2004 2:52 pm
Chris View latest post
No new posts [Info] Making Guards Always Face You - Rotating guards
Author: CoolMario
3 88 Wed Jul 30, 2003 9:31 am
Codetech84 View latest post
No new posts [Info] How to Animate a Title Screen?
Author: Guest
5 259 Mon Jul 14, 2003 11:41 am
Guest 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
 
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