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...


    [HELP] Bonus Flash

    Share

    Raziel
    Seasoned Wolfer
    Seasoned Wolfer

    Male
    Number of posts : 361
    Age : 28
    Location : Israel
    Hobbie : Blasphemous Noise and Wolfenstein3D
    Registration date : 2007-07-08

    [HELP] Bonus Flash

    Post by Raziel on Mon Dec 03, 2007 10:09 pm

    Hey there folks!

    I was wondering if anyone could help me on this one.
    I need to know how to add a Bonus Flash after I fire a weapon so it will light up the area I'm in for a sec.
    Any ideas on how to accomplish it? Thanks in advance! Very Happy

    -Raziel A.




    STORMING THE FRONT WITH A SCHMEISSER IN HAND!
    Raziel A.

    WLHack
    Senior Member
    Senior Member

    Male
    Number of posts : 792
    Age : 27
    Location : Finland
    Registration date : 2007-03-26

    Re: [HELP] Bonus Flash

    Post by WLHack on Tue Dec 04, 2007 5:40 am

    Well, you could put the
    StartBonusFlash(); in WL_Agent.C just under the
    part that will take out players ammo if shot.



    Hammer: I can see it now: you and the moon - wear a necktie so I'll know you.
    Building a new webpage...

    Raziel
    Seasoned Wolfer
    Seasoned Wolfer

    Male
    Number of posts : 361
    Age : 28
    Location : Israel
    Hobbie : Blasphemous Noise and Wolfenstein3D
    Registration date : 2007-07-08

    Re: [HELP] Bonus Flash

    Post by Raziel on Wed Dec 05, 2007 2:26 pm

    Errr... Excuse my ignorance but where can I find those lines? Sad
    I really don't know where to put that
    Code:
    StartBonusFlash();
    So if you don't mind telling me I will really appreciate it Smile Thanks in advance.




    STORMING THE FRONT WITH A SCHMEISSER IN HAND!
    Raziel A.

    WLHack
    Senior Member
    Senior Member

    Male
    Number of posts : 792
    Age : 27
    Location : Finland
    Registration date : 2007-03-26

    Re: [HELP] Bonus Flash

    Post by WLHack on Thu Dec 06, 2007 2:04 am

    If I remember right, search these lines in WL_Agent.C:
    Code:

            case 1:
                if (!gamestate.ammo)
                {    // can only happen with chain gun
                    gamestate.attackframe++;
                    break;
                }
                GunAttack (ob);
                gamestate.ammo--;
                DrawAmmo ();
                break;
    Then add the StartBonusFlash(); just underneath
    the "gamestate.ammo--;".



    Hammer: I can see it now: you and the moon - wear a necktie so I'll know you.
    Building a new webpage...

    Raziel
    Seasoned Wolfer
    Seasoned Wolfer

    Male
    Number of posts : 361
    Age : 28
    Location : Israel
    Hobbie : Blasphemous Noise and Wolfenstein3D
    Registration date : 2007-07-08

    Re: [HELP] Bonus Flash

    Post by Raziel on Thu Dec 06, 2007 7:40 am

    @WLHack wrote:If I remember right, search these lines in WL_Agent.C:
    Code:

            case 1:
                if (!gamestate.ammo)
                {    // can only happen with chain gun
                    gamestate.attackframe++;
                    break;
                }
                GunAttack (ob);
                gamestate.ammo--;
                DrawAmmo ();
                break;
    Then add the StartBonusFlash(); just underneath
    the "gamestate.ammo--;".

    Wow thanks it's working perfectly! Very Happy
    Thanks alot I really appreciate it!




    STORMING THE FRONT WITH A SCHMEISSER IN HAND!
    Raziel A.

    Sponsored content

    Re: [HELP] Bonus Flash

    Post by Sponsored content Today at 9:54 pm


      Current date/time is Fri Sep 30, 2016 9:54 pm