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


    Start without weapon and melee weapon

    Share

    johny4
    Freshmen
    Freshmen

    Male
    Number of posts : 14
    Age : 28
    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

    Post by johny4 on 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
    Spear of Destiny
    Spear of Destiny

    Male
    Number of posts : 643
    Age : 136
    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

    Re: Start without weapon and melee weapon

    Post by jayngo26 on 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
    Freshmen
    Freshmen

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

    Re: Start without weapon and melee weapon

    Post by johny4 on 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
    Spear of Destiny
    Spear of Destiny

    Male
    Number of posts : 643
    Age : 136
    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

    Re: Start without weapon and melee weapon

    Post by jayngo26 on 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
    Freshmen
    Freshmen

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

    Re: Start without weapon and melee weapon

    Post by johny4 on 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

    Re: Start without weapon and melee weapon

    Post by Sponsored content Today at 3:08 pm


      Current date/time is Fri Dec 09, 2016 3:08 pm