Wolf3d Haven Forum

Please log in or register. Smile

Join the forum, it's quick and easy

Wolf3d Haven Forum

Please log in or register. Smile

Wolf3d Haven Forum

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Wolf3d Haven Forum

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


2 posters

    [HELP] Bonus Flash

    Raziel
    Raziel
    Seasoned Wolfer
    Seasoned Wolfer


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

    [HELP] Bonus Flash Empty [HELP] Bonus Flash

    Post by Raziel 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.



    [HELP] Bonus Flash Banner10
    STORMING THE FRONT WITH A SCHMEISSER IN HAND!
    Raziel A.
    avatar
    WLHack
    Senior Member
    Senior Member


    Male
    Number of posts : 800
    Age : 35
    Location : Finland
    Registration date : 2007-03-26

    [HELP] Bonus Flash Empty Re: [HELP] Bonus Flash

    Post by WLHack 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
    Raziel
    Seasoned Wolfer
    Seasoned Wolfer


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

    [HELP] Bonus Flash Empty Re: [HELP] Bonus Flash

    Post by Raziel 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.



    [HELP] Bonus Flash Banner10
    STORMING THE FRONT WITH A SCHMEISSER IN HAND!
    Raziel A.
    avatar
    WLHack
    Senior Member
    Senior Member


    Male
    Number of posts : 800
    Age : 35
    Location : Finland
    Registration date : 2007-03-26

    [HELP] Bonus Flash Empty Re: [HELP] Bonus Flash

    Post by WLHack 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
    Raziel
    Seasoned Wolfer
    Seasoned Wolfer


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

    [HELP] Bonus Flash Empty Re: [HELP] Bonus Flash

    Post by Raziel 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!



    [HELP] Bonus Flash Banner10
    STORMING THE FRONT WITH A SCHMEISSER IN HAND!
    Raziel A.

    Sponsored content


    [HELP] Bonus Flash Empty Re: [HELP] Bonus Flash

    Post by Sponsored content


      Current date/time is Fri Apr 26, 2024 12:02 pm