MattFiler Posted January 24, 2016 Share Posted January 24, 2016 Hi, I'm confused about adding models to the menus. I'd like to add two models of different characters, but all I've been able to do so far is call/set the player's in-game character and show that.I'd like two different characters. I tried calling them from asset_model with no success, even changing the animation from model_g2anim always seems to create a walking animation. Any help would be appreciated! Link to comment
Lancelot Posted January 24, 2016 Share Posted January 24, 2016 @@skew has something like that in his Jedi Fighter mod. Maybe he can help you with that. Link to comment
Asgarath83 Posted January 24, 2016 Share Posted January 24, 2016 Hi, I'm confused about adding models to the menus. I'd like to add two models of different characters, but all I've been able to do so far is call/set the player's in-game character and show that.I'd like two different characters. I tried calling them from asset_model with no success, even changing the animation from model_g2anim always seems to create a walking animation. Any help would be appreciated! I remember that in escape of yavin 4 the lost map there are some UI menu file that are setted for show models of characters into menu, also wjith description of the charactersthemselves. i used that configuration for making a menu that showing models also for my mod.basically it's something like that: // ELEMENTALE D'ACQUA itemDef { name waterelemental group droids style WINDOW_STYLE_EMPTY type ITEM_TYPE_BUTTON rect 325 130 100 15 text "Golem d'Acqua" descText " " font 3 textscale .75 textaligny 0 textalign ITEM_ALIGN_LEFT textstyle 1 textalignx 0 forecolor 1 .682 0 1 visible 0 mouseEnter { show button_glow setitemrect button_glow 325 130 150 12 setcvar "ui_char_model" water_elemental uiScript "characterchanged" uiScript "resetcharacterlistboxes" setcvar "UI_HOME" "Laghi. Forgia di Nebbia." setcvar "UI_RACE" "Elementale" setcvar "UI_POSITION" "Guardiano d'Acqua" setcvar "UI_HEALTH" "400" setcvar "UI_FORCE" "100" setcvar "UI_STRENGTHS" "Rigenerazione. Resistenza magica." setcvar "UI_WEAKNESSES" "Armi esplosive di Fuoco." setcvar "UI_WEAPON_PREF" "Glifo d'Acqua." setcvar "UI_INFO" @CHARS_WATERELEMENTAL show information } mouseExit { hide button_glow setcvar "ui_char_model" none uiScript "characterchanged" uiScript "resetcharacterlistboxes" } } //---------------------------------------------------------------------------------------------- // // CHARACTER MENU specific stuff // //---------------------------------------------------------------------------------------------- // CREATION title itemDef { name character group models type ITEM_TYPE_MODEL rect 360 84 300 340 model_g2anim "BOTH_WALK1" asset_model "ui_char_model" model_angle 180 model_g2mins -10 -15 -10 model_g2maxs 20 15 30 model_rotation 28 model_fovx 50 model_fovy 55 isCharacter 1 visible 1 decoration } more important, here there is the specific ui code istruction for display a model of a character into a menu. .this itemdef is called for every button or textstring that show the ui models so you can see multiple models, that make the walking animation. you can decide dimension, angle, animation of models, and also the model itself is displayed. skew likes this Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now