Jump to content

Help, if anyone knows.


Go to solution Solved by Asgarath83,

Recommended Posts

  • Solution
Posted

Anyone know how to place in a command text file to place a playermodel npc so that when you start the game in SP in an SP game mod.

you want to set a playermodel directly with the batch file for execute the mod? i not know if is possible. is possible to do by the start menu when you begin your first level mod. simply edit newgame_first menu and add the cvars for customize model, sex and sound before execute the level and loading the first map. this require an editring of the menu files.

folder ui \ newgame_first.menu edit with notepad

the menu files are wrote in a language like html.

 

edit the next button fied like in this way

 

 

// NEXT button
        itemDef
        {
            name                next_glow
            group                mods
            style                WINDOW_STYLE_SHADER
            rect                455 444 130 24
            background            "gfx/menus/menu_buttonback"            // Frame around button
            forecolor            1 1 1 1
            visible            0
            decoration
        }

        itemDef
        {
            name                nextbutton
            group                fade_buttons
            text                @MENUS_NEXT
            descText            @MENUS_NEXT_DESC
            type                ITEM_TYPE_BUTTON
            style                WINDOW_STYLE_EMPTY
            rect                455 444 130 24
            font                3
            textscale            1
            textalignx            65
            textaligny            -1
            textalign            ITEM_ALIGN_CENTER
            textstyle            3
            forecolor            1 .682 0 1
            visible                1
                  action
            {
                                
                play            "sound/interface/button1.wav"
                setcvar         snd "jaden_male"  // put sound folder of your character
                setcvar         g_char_model "character" // put models/player/ name folder of you character
                setcvar         g_char_skin_head "head_a1" // skin file for head
                setcvar         g_char_skin_torso "torso_f1" // skin file for torso
                setcvar         g_char_skin_legs "lower_b1" // skin file for legs. these two files are facoltative.
                setcvar            sex "m" // sex for character. male -> m \ female -> f
                setcvar            g_saber "sword1" //saber name by saber file
                setcvar            g_saber_color "orange" // saber color red blue orange green purple yellow
            uiScript         "updatecharcvars"
                close        all
                play            "sound/weapons/Air_Reaver/airreaver1.mp3" // a sound you want to play when start the game
                exec            "map mapname" // first level map
                exec                  "helpusobi 1" // enable cheats and debug command consoklle
                              exec                  "wait 30"
                              exec                 "playermodel character" // this  auto read an eventually NPC files of your character and set all force powers and weapons like NPC file assign.
            }
            mouseEnter
            {
                show            next_glow
            }
            mouseExit
            {
                hide            next_glow
            }            
        }


    }
}
 
scp_chaos1 likes this

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...