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       

[Code] Berserk Mode
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
insurrectionman
DieHard Mutant
DieHard Mutant


Joined: 07 May 2005
Last Visit: 16 May 2019

Topics: 87
Posts: 758
Location: Wisconsin
usa.gif

PostPosted: Mon Dec 05, 2005 4:25 pm
   Subject: [Code] Berserk Mode
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

Berserk Mode

This will make you change to your knife and it will be super powerful.

Open WL_DEF.H

Search:

::: CODE :::
godmode


This is what you'll see:

::: CODE :::
extern  boolean      singlestep,godmode,noclip;


Add the red line:

::: CODE :::
extern  boolean      singlestep,godmode,noclip,berserk;


Now open WL_PLAY.C and search for:

::: CODE :::
godmode


This is what you'll see:

::: CODE :::
boolean   singlestep,godmode,noclip;


Add the red line:

::: CODE :::
boolean singlestep,godmode,noclip,berserk;


Now open WL_DEBUG.C and search for:

::: CODE :::
sc_B


This is what you'll see:

::: CODE :::
if (Keyboard[sc_B])      // B = border color
   {
      CenterWindow(24,3);
      PrintY+=6;
      US_Print(" Border color (0-15):");
      VW_UpdateScreen();
      esc = !US_LineInput (px,py,str,NULL,true,2,0);
      if (!esc)
      {
         level = atoi (str);
         if (level>=0 && level<=15)
            VW_ColorBorder (level);
      }
      return 1;
   }


Change the whole Tab-B Cheat to look like this:

::: CODE :::
if (Keyboard[sc_B])      // B = berserk mode
   {
      CenterWindow (16,2);
      if (berserk)
        US_PrintCentered ("Berserk mode OFF");
      else
        US_PrintCentered ("Berserk mode ON");
      VW_UpdateScreen();
      IN_Ack();
      berserk ^= 1;
      return 1;
   }

Open WL_AGENT.C and search for:

::: CODE :::
T_KnifeAttack


Add this under "long dist;"

::: CODE :::
long dist;
int  damage;


Look for "// hit something" in this function, and then add this:

::: CODE :::
// hit something
   if (berserk)
   DamageActor (closest,1000);
else

   DamageActor (closest,US_RndT() >> 4);
}



Now if you want a special sound for the knife add this below "int damage;":

::: CODE :::
if (berserk)
   SD_PlaySound (KNIFEFURYSND);
else

   SD_PlaySound (ATKKNIFESND);




Now this is optional, Open WL_AGENT.C and search for:

::: CODE :::
DrawFace (void)


This is what you see:

::: CODE :::
void DrawFace (void)
{
   if (gamestate.health)
{
   #ifdef SPEAR
   if (godmode)
      StatusDrawPic (17,4,GODMODEFACE1PIC+gamestate.faceframe);
   else
   #endif
   StatusDrawPic (17,4,FACE1APIC+3*((100-gamestate.health)/16)+gamestate.faceframe);

   }

<...rest of code...>


Now change the blue lines above to this:

::: CODE :::
if (berserk)
StatusDrawPic (17,4,GOTGATLINGPIC)
#ifdef SPEAR
else if (godmode)
   StatusDrawPic (17,4,GODMODEFACE1PIC+gamestate.faceframe);
#endif
else
StatusDrawPic (17,4,FACE1APIC+3*((100-gamestate.health)/16)+gamestate.faceframe);


This code does not switch your weapon to the knife, you'll have to do that yourself. It may come later in the "timed berserk object tutorial".

_________________
I'm back! I missed this community!
Youtube Channel: TreeSapThief

New Site: http://www.treesapthief.com
Twitter: @treesapthief
Zombie_Plan
DieHard Wolfer
DieHard Wolfer


Joined: 12 Oct 2004
Last Visit: 1:10 ago.

Topics: 108
Posts: 1711
Location: A hole in the wall
australia.gif

PostPosted: Tue Dec 06, 2005 1:16 am
   Subject: Re: [Code] Berserk Mode
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

This would be good as an ingame pickup rather than a debug cheat

_________________
WolfSource - Your news source since the beginning of time (2019)
WLHack
DieHard Wolfer
DieHard Wolfer


Joined: 10 Jul 2005
Last Visit: 18 Jan 2018

Topics: 66
Posts: 1237
Location: Loppi - Finland
finland.gif

PostPosted: Tue Dec 06, 2005 1:18 am
   Subject: Re: [Code] Berserk Mode
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

I agree, and easy to do (compining with the godmode artefact - tutorial).
insurrectionman
DieHard Mutant
DieHard Mutant


Joined: 07 May 2005
Last Visit: 16 May 2019

Topics: 87
Posts: 758
Location: Wisconsin
usa.gif

PostPosted: Tue Dec 06, 2005 4:28 pm
   Subject: Re: [Code] Berserk Mode
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

I was planning on doing that in a little while, I'll get that all prepped and set then.

_________________
I'm back! I missed this community!
Youtube Channel: TreeSapThief

New Site: http://www.treesapthief.com
Twitter: @treesapthief
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 11124 Sun Jan 10, 2010 12:26 pm
Fragstein3D View latest post
No new posts [Info] Black & White Effect - Tutorial
Author: Guest
10 299 Thu Mar 17, 2005 6:24 pm
Dugtrio17 View latest post
No new posts [Code] Run with Stamina - TekZK
Author: BrotherTank
8 3735 Sun May 16, 2004 12:54 am
Codetech84 View latest post
This topic is locked: you cannot edit posts or make replies. [Info] Source code for Darkone's NewWolf Classic
Author: Raistlin
1 2044 Tue Feb 10, 2004 10:18 am
BrotherTank View latest post
No new posts [Help] Berserk mode
Author: wolf3dbreaker
2 2451 Tue Feb 03, 2004 11:01 pm
Xarkon 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