Wolf3d Haven Forum

Please log in or register. Smile
Wolf3d Haven Forum

A friendly Wolfenstein 3D community, about Wolfenstein 3D, the game that gave birth to first person shooters...


    no damage flash in godmode

    Share

    Dark_wizzie
    I am Death Incarnate!
    I am Death Incarnate!

    Male
    Number of posts : 5090
    Age : 22
    Location : USA or Tawain
    Job : Student, Part time Cactuar fanatic
    Hobbie : Planting Cactuars.
    Message : I made this forum when I was 13 High on Drugs
    Registration date : 2007-03-24

    no damage flash in godmode

    Post by Dark_wizzie on Sun Apr 29, 2007 1:31 pm

    dome
    Code Editing Tutorials
    Removing Damage Flashing in God Mode




    Don't you get irritated and aggravated everytime you get shot while in Godmode and your screen turns red? I do. Here's how to disable it(not forever, only when the player is in Godmode). It's freaking easy, so this is a good starter.

    Step 1. Go to your source directory and open the file WL_AGENT.C .

    Step 2. Do a search for StartDamageFlash. The first hit will be line 406. This one is the one we need to alter.

    Step 3. Go to the beginning of the line and press Enter.
    Step 4. On the new blank space, type (no quotes):


    if (!godmode)

    Now your the code looks like this:

    if (!godmode)

    StartDamageFlash (points);

    Step 5. Now, it'll look nice if we show B.J.'s God Mode picture (like in SOD), so go to line 274, where you'll see:

    #ifdef SPEAR

    if (godmode)

    StatusDrawPic (17,4,GODMODEFACE1PIC+gamestate.faceframe);

    Step 6. Change that with(for instance):

    #ifdef SPEAR

    if (godmode)

    StatusDrawPic (17,4,MUTANTBJPIC);

    Also, DO NOT FORGET TO RE-DRAW THE GRAPHIC YOU WANNA USE!

    Step 7. Save the file and compile it. Now you have the chance to kill off everything with your knife in Godmode, since there's no red flash anymore, plus B.J. shows his "God Mode Face" too(when you redrawed it). Snazzy!




    Wolf3d Haven
    Minute Logic Blog

      Current date/time is Sun Dec 04, 2016 12:22 pm