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

    Start without weapon and melee weapon

    johny4
    johny4
    Freshmen
    Freshmen


    Male
    Number of posts : 14
    Age : 36
    Location : Slovakia
    Job : Magna Slovteca Trnava (BMW)
    Hobbie : PC games,DJ tiesto music, sleeping,FB
    Registration date : 2011-01-30

    Start without weapon and melee weapon Empty Start without weapon and melee weapon

    Post by johny4 Tue Feb 01, 2011 5:30 am

    Hi.

    I would like to start a game without a weapon and a knife. Later , I will look for some weapon.
    I don't know How I write the source code for start without weapon . I do not know what happens if you delete the wrong rows.
    jayngo26
    jayngo26
    Spear of Destiny
    Spear of Destiny


    Male
    Number of posts : 643
    Age : 144
    Location : Random
    Job : Partime Evil Semi-Genius Plotting To Take Over Half The World. Partime Undead Charged With Keeping the Darkness Dark
    Hobbie : Staying Out Of Sunlight
    Message : Wolfenstein:Umbrella Beginnings Episode 2 released! Download now!

    Registration date : 2008-08-09

    Start without weapon and melee weapon Empty Re: Start without weapon and melee weapon

    Post by jayngo26 Wed Feb 02, 2011 6:06 am

    Here, try this: Poet's Start Game With Knife Tutorial

    His tutorials have always helped me in the past..



    http://jayngoware.com/
    johny4
    johny4
    Freshmen
    Freshmen


    Male
    Number of posts : 14
    Age : 36
    Location : Slovakia
    Job : Magna Slovteca Trnava (BMW)
    Hobbie : PC games,DJ tiesto music, sleeping,FB
    Registration date : 2011-01-30

    Start without weapon and melee weapon Empty Re: Start without weapon and melee weapon

    Post by johny4 Wed Feb 02, 2011 6:56 am

    What happens when I remove this line:
    Code:

    gamestate.choseweapon = wp_knife
    or I create object no weapon.(wp_nowp)


    and question

    Will be operational source code from Borland C++ to DevC++?
    jayngo26
    jayngo26
    Spear of Destiny
    Spear of Destiny


    Male
    Number of posts : 643
    Age : 144
    Location : Random
    Job : Partime Evil Semi-Genius Plotting To Take Over Half The World. Partime Undead Charged With Keeping the Darkness Dark
    Hobbie : Staying Out Of Sunlight
    Message : Wolfenstein:Umbrella Beginnings Episode 2 released! Download now!

    Registration date : 2008-08-09

    Start without weapon and melee weapon Empty Re: Start without weapon and melee weapon

    Post by jayngo26 Wed Feb 02, 2011 8:34 am

    If you comment out that line, I'm pretty sure it won't compile correctly. I'm not quite sure how to code it, so that you start the game with NO weapons. You would also need to make some more sprites showing no weapons in the player's hands. That code/link is to start the game with knife only (which pretty much means no weapon at all).

    As far as transferring code from Borland to Dev....if you mean will that code work for SDL version? I don't see why it wouldn't.

    It's always good to try it and see what happens (as long as you have a backup made)! Try commenting out that line and then compiling. The compiler will tell you if there's an error or not.



    http://jayngoware.com/
    johny4
    johny4
    Freshmen
    Freshmen


    Male
    Number of posts : 14
    Age : 36
    Location : Slovakia
    Job : Magna Slovteca Trnava (BMW)
    Hobbie : PC games,DJ tiesto music, sleeping,FB
    Registration date : 2011-01-30

    Start without weapon and melee weapon Empty Re: Start without weapon and melee weapon

    Post by johny4 Wed Feb 02, 2011 9:18 am

    Make I will new weapon with sprites but without damage and sound .

    I'll have to fix a gun with zero energy coefficient of damage and no sound.

    What happens when I approached the enemy with my invisible weapon and wounded him?

    I will have to adjust the source code for functions False or gamestate--.

    Sponsored content


    Start without weapon and melee weapon Empty Re: Start without weapon and melee weapon

    Post by Sponsored content


      Current date/time is Thu Nov 21, 2024 12:47 am