Training Mode

Results 1 to 11 of 11
  1. #1
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Training Mode

    NOTE: This will make Training game mode obsolete because this allows the same effects to happen in any game mode. Also this is a stage setting.

    -- THEESE CODES ARE IN THE GUNZ SOLUTION --

    ZStageSetting.cpp Ln 122.
    Spoiler:

    Code:
    #define STAGESETTING_TRAINING_MAX        2
    #define STAGESETTING_TRAINING_DEFAULT    0
    static struct _STAGESETTING_TRAINING
    {
        bool    Value;
        char    szText[32];
    } StageSetting_StageTraining[STAGESETTING_TRAINING_MAX] = 
    { {true, "ON"}, {false, "OFF"} };


    ZStageSetting.cpp Ln 277.
    Spoiler:

    Code:
        BUILD_STAGESETTING_ITEM("StageTraining", pOutNode->bTraining,
                                StageSetting_StageTraining, STAGESETTING_TRAINING_MAX);


    ZStageSetting.cpp Ln 416.
    Spoiler:

    Code:
        SHOWSTAGESETTING_ITEM("StageTraining", pStageSetting->bTraining,
            STAGESETTING_TRAINING_MAX, StageSetting_StageTraining);


    ZStageSetting.cpp Ln 518.
    Spoiler:

    Code:
        strcpy( StageSetting_StageTraining[0].szText, ZMsg(MSG_WORD_ON));
        strcpy( StageSetting_StageTraining[1].szText, ZMsg(MSG_WORD_OFF));
        INITSTAGESETTING_ITEM("StageTraining", pStageSetting->bTraining,
            STAGESETTING_TRAINING_MAX, StageSetting_StageTraining, STAGESETTING_TRAINING_DEFAULT);


    -- THEESE CODES ARE IN THE CSCOMMON SOLUTION --

    MMatchStageSetting.h Ln 96.
    Spoiler:

    Code:
    #define MMATCH_DEFAULT_STAGESETTING_ISTRAINING            false    // global training


    MMatchStageSetting.cpp Ln 35.
    Spoiler:

    Code:
    m_StageSetting.Ref().bTraining = MMATCH_DEFAULT_STAGESETTING_ISTRAINING;


    MMatchStageSetting.h Ln 72.
    Spoiler:

    Code:
    bool                bTraining;


    MMatchStageSetting.h Ln 157.
    Spoiler:

    Code:
    bool                        GetIsTraining()                { return m_StageSetting.Ref().bTraining; }


    MMatchServer_Stage.cpp Ln 1955.
    Spoiler:

    Code:
        if(pStage->GetStageSetting()->GetStageSetting()->bTraining == true)
        {
            *poutAttackerExp = 0;
            *poutVictimExp = 0;
            return;
        }


    -- THEESE CODES ARE IN THE MATCHSERVER SOLUTION --

    MBMatchServer_Stage.cpp Ln 186.
    Spoiler:

    Code:
    if (pStage->GetStageSetting()->GetStageSetting()->bTraining == true) return;


    -- THEESE CODES ARE XML --
    XML Interface/default/StageSettingFrame.xml
    Spoiler:

    Code:
        <LABEL item="Label" parent="StageSettingFrame">
            <BOUNDS>
                <X>20</X>
                <Y>292</Y>
                <W>150</W>
                <H>24</H>
            </BOUNDS>
            <TEXT>Training</TEXT>
        </LABEL>    
    
        <COMBOBOX item="StageTraining" parent="StageSettingFrame">
            <LISTBOXLOOK>CustomListBoxLook</LISTBOXLOOK>
            <BUTTONLOOK>ListBoxButtonLook</BUTTONLOOK>
            <TEXTALIGN>
                <HALIGN>center</HALIGN>
                <VALIGN>center</VALIGN>
            </TEXTALIGN>
            <ITEMHEIGHT>18</ITEMHEIGHT>
            <BOUNDS>
                <X>137</X>
                <Y>292</Y>
                <W>150</W>
                <H>24</H>
            </BOUNDS>
            <DROPSIZE>210</DROPSIZE>
            <COMBOTYPE>1</COMBOTYPE>
            <COMBOFIRSTSIZE>51</COMBOFIRSTSIZE>
            <ENABLE>true</ENABLE>
        </COMBOBOX>


    Position the XML for your client.
    Last edited by ThunderZ; 27-09-12 at 08:42 AM.


  2. #2
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Training Mode

    Thanks, how about ping limiter now :) ?

  3. #3
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Re: Training Mode

    Quote Originally Posted by qet123 View Post
    Thanks, how about ping limiter now :) ?
    maybe later when i code a proper one the way Vusion did it was bad and depended on users shooting each other -.-

  4. #4
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Training Mode


  5. #5
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Re: Training Mode

    Quote Originally Posted by qet123 View Post
    I was going to make it a stage setting and have it tick every few seconds to check ping to server.

    Instead of going by players i think it would be better this way just because some players could have a small spike and dc someone.

    This way it would check every 3 seconds or so and if the ping is constantly high after so many ticks = kick from stage.

  6. #6
    Hakuna Matata bulli10 is offline
    MemberRank
    Feb 2011 Join Date
    697Posts

    Re: Training Mode

    What the point of this if i can put Training Mode?

  7. #7
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Training Mode

    Quote Originally Posted by bulli10 View Post
    What the point of this if i can put Training Mode?
    To be honest, it's useless. Make a new game mode called (Traning Mode(NoDamage)) would be better!

  8. #8
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Re: Training Mode

    Quote Originally Posted by qet123 View Post
    To be honest, it's useless. Make a new game mode called (Traning Mode(NoDamage)) would be better!
    why?

    making new game modes is useless when you can just have an option for it lol.

  9. #9
    Aristrum Mark is offline
    MemberRank
    Aug 2007 Join Date
    United KingdomLocation
    474Posts

    Re: Training Mode

    This is what I did at EG. It allows for things such as Traning Beserker, without actually having to have a mode for it.

  10. #10
    Hakuna Matata bulli10 is offline
    MemberRank
    Feb 2011 Join Date
    697Posts

    Re: Training Mode

    Quote Originally Posted by Mark View Post
    This is what I did at EG. It allows for things such as Traning Beserker, without actually having to have a mode for it.
    ahhh now i understand it :) XD Quest Training

  11. #11
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Training Mode

    Nvm delete comment.
    Last edited by qet123; 04-05-12 at 07:16 PM.



Advertisement