• sv_gmchanger (Fretta Gamemode changer)
    3 replies, posted
How would I add fretta gamemodes to the vote gamemode list and the gamemodes maps?
fretta13 looks for unique fields in a gamemode's gamemodename.txt file. It looks for whether it is selectable, and if it is, it reads its name, label, description, author, and authorurl, it then looks for the fretta_maps table and optionally fretta_maps_disallow. A good example is extremefootballthrowdown's text file, which is below. [code] "extremefootballthrowdown" { "base" "fretta13" "title" "Extreme Football Throwdown" "menusystem" "1" "maps" "^xft_|^eft_" "workshopid" "104625632" "selectable" "1" "fretta_maps" { "1" "xft_" "2" "eft" } "description" "The only football gamemode you will ever want to play." "author_name" "William 'JetBoom' Moodhe" "author_email" "williammoodhe@gmail.com" "author_url" "http://www.noxiousnet.com" } [/code]
And put [CODE]DeriveGamemode( "fretta13" )[/CODE] inside the shared.lua of your gamemode. Quite a few people have been asking very similar Fretta questions. You guys should try and mess around with the files yourself. You'll learn a lot more if you take a look through the files and figure things out for yourself. A lot more fun, too!
My DeriveGamemode is just fretta which is fretta13 but its called fretta. Would this make any difference? Also I though that the gamemode.txt was the one that made itself pick up in the gamemode changer I just wasn't sure what to put in gamemode.txt to make it pickup. Thanks allot for the help, and I am really getting into Fretta. Its a good base and really has some advantages!
Sorry, you need to Log In to post a reply to this thread.