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       

Making a phrase 1 and 2 Hitler boss as bosses by themselves
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
Joshua
DieHard SS
DieHard SS


Joined: 15 Mar 2012
Last Visit: 11 Dec 2017

Topics: 156
Posts: 386

usa.gif

PostPosted: Thu Oct 06, 2016 10:11 am
   Subject: Making a phrase 1 and 2 Hitler boss as bosses by themselves
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

How do you make a phrase 1 Hitler boss a boss by itself and phrase 2 hitler boss a boss by itself and still have the regular Hitler phrase 1 and 2 boss?

To end the mech boss without having the other phrase, wouldn't you replicate the code and put a boss ending code value in the mech boss?

To begin the phrase 2 boss, wouldn't you replicate the phrase 2 code and just start it as a new boss? This is confusing because chaosedit does not have the images for the Hitler phrase 2 boss separately. Just for the complete boss alone. How do you split the images up so they can be used?
ronwolf1705
Moderator
<B>Moderator</B>


Joined: 31 Jul 2006
Last Visit: 1:10 ago.

Topics: 69
Posts: 3673

blank.gif

PostPosted: Thu Oct 06, 2016 10:45 am
   Subject: Re: Making a phrase 1 and 2 Hitler boss as bosses by themselves
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Here you go, if you want to split up Hitlers: http://diehardwolfers.areyep.com/viewtopic.php?t=1614

Don't know how many adjustments need to be made for the 4SDL code, but in essence this should be it.

If you want to keep Hitler, then it'd just be a case of adding two bosses which resemble the behavior of the two respective phases.
Joshua
DieHard SS
DieHard SS


Joined: 15 Mar 2012
Last Visit: 11 Dec 2017

Topics: 156
Posts: 386

usa.gif

PostPosted: Thu Oct 06, 2016 12:35 pm
   Subject: Re: Making a phrase 1 and 2 Hitler boss as bosses by themselves
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

I get this error:

2787 C:\Documents and Settings\Owner\Desktop\Copy of program\wl_act2.cpp invalid conversion from `void (*)(objtype*)' to `void (*)(void*)'

In regards to statetype s_hitlerstand = {false,SPR_HITLER_W1,0,T_Stand,NULL,&s_hitlerstand};

Another error is 2882 C:\Documents and Settings\Owner\Desktop\Copy of program\wl_act2.cpp expected init-declarator before "short"

This is in regards to short hitpoints[4]={500,700,800,900};

The other error messages are:

2882 C:\Documents and Settings\Owner\Desktop\Copy of program\wl_act2.cpp expected `,' or `;' before "short"

2884 C:\Documents and Settings\Owner\Desktop\Copy of program\wl_act2.cpp expected constructor, destructor, or type conversion before '(' token in regards to SpawnNewObj (ob->tilex,ob->tiley,&s_hitlerstand).

If you require me to post more, I will. Usually with code, one thing can mess up the program. Once it is corrected, all of the other error messages go away.
AlumiuN
DieHard Wolfer
DieHard Wolfer


Joined: 29 Nov 2007
Last Visit: 2:03 ago.

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

PostPosted: Thu Oct 06, 2016 2:56 pm
   Subject: Re: Making a phrase 1 and 2 Hitler boss as bosses by themselves
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

The first line should be fixed by making it:

::: CODE :::
statetype s_hitlerstand = {false,SPR_HITLER_W1,0,(statetype)T_Stand,NULL,&s_hitlerstand};


The other errors I'll need to see the code for the block from probably about line 2880 - 2884 to be able to fix.
Joshua
DieHard SS
DieHard SS


Joined: 15 Mar 2012
Last Visit: 11 Dec 2017

Topics: 156
Posts: 386

usa.gif

PostPosted: Thu Oct 06, 2016 4:00 pm
   Subject: Re: Making a phrase 1 and 2 Hitler boss as bosses by themselves
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

In wl_game.cpp, I have this:

case 178:
SpawnHitler (x,y);
break;
case 228:
SpawnNormalHitler (x,y);
break;

In wl_act2.cpp, I have the following from lines 2080 through 2901:

//void A_HitlerMorph (objtype *ob)
void SpawnNormalHitler (int tilex, int tiley)
short hitpoints[4]={500,700,800,900};

SpawnNewObj (ob->tilex,ob->tiley,&s_hitlerstand);
newobj->speed = SPDPATROL*5;

newobj->x = ob->x;
newobj->y = ob->y;

newobj->distance = ob->distance;
newobj->dir = ob->dir;
newobj->flags = ob->flags | FL_SHOOTABLE;
newobj->flags &= ~FL_NONMARK; // hitler stuck with nodir fix

newobj->obclass = realhitlerobj;
newobj->hitpoints = hitpoints[gamestate.difficulty];
#ifdef ADDEDFIX // 29
if (!loadedgame) // Count real hitler for correct kill ratios
gamestate.killtotal++;
#endif
}

The rest of the code continues in the same file.

On line 2777, I have this:

statetype s_mechadie3 = {false,SPR_MECHA_DIE3,10,NULL,NULL,&s_mechadie4};

On line 2787, I have this:

statetype s_hitlerstand = {false,SPR_HITLER_W1,0,T_Stand,NULL,&s_hitlerstand};
AlumiuN
DieHard Wolfer
DieHard Wolfer


Joined: 29 Nov 2007
Last Visit: 2:03 ago.

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

PostPosted: Thu Oct 06, 2016 5:19 pm
   Subject: Re: Making a phrase 1 and 2 Hitler boss as bosses by themselves
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

You're missing the curly bracket between 'void SpawnNormalHitler (int tilex, int tiley)' and 'short hitpoints[4]={500,700,800,900}; '.
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 Sticky: [Tutorial] Compiling Wolf4SDL with Code::Blocks
Author: dcbasic
90 17504 Wed May 24, 2017 7:53 pm
Falcon*93 View latest post
No new posts [SDL Tutorial] WolfDX version of MCS's enemy blocking code
Author: Tricob
2 820 Thu Dec 11, 2008 6:54 pm
Tricob View latest post
No new posts [help] making videos of SDL mods
Author: lilmanjs
15 1637 Mon Sep 22, 2008 2:21 pm
Zombie_Plan View latest post
No new posts [Help, please] 90 Walls code in Wolf4SDL code
Author: Tricob
14 2055 Sun Sep 21, 2008 2:51 am
BrotherTank View latest post
No new posts [CODE] Health Shown as a message with full screen view
Author: Raziel
13 2111 Thu Jul 31, 2008 8:07 pm
Raziel 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