• Prophunters - Change player models for hunters and props
    0 replies, posted
Hi ! I've already made a similar topic here: Prophunters But I would like to get some help from here too ______________________________________________ I use the gamemode Prophunters for my server : https://steamcommunity.com/sharedfiles/filedetails/?id=260275546 I would like to change default player models and have a specific skin for hunters and a specific skin for props but I don't know how to do it (I'm a beginner with lua). Among all the files, sv_player.lua is probably the one to edit: prophunters_260275546/sv_player.lua at master · Naosys/prophunte.. You can find the full code here: GitHub (If necessary, you can find here the original sv_teams.lua that I changed to have only one hunter every game: GitHub In sv_player.lua, there is this list: addModel("male03", "male") addModel("male04", "male") addModel("male05", "male") addModel("male07", "male") addModel("male06", "male") addModel("male09", "male") addModel("male01", "male") addModel("male02", "male") addModel("male08", "male") addModel("female06", "female") addModel("female01", "female") addModel("female03", "female") addModel("female05", "female") addModel("female02", "female") addModel("female04", "female") addModel("refugee01", "male") addModel("refugee02", "male") addModel("refugee03", "male") addModel("refugee04", "male") You can change player models directly from here, for example: addModel( "HUNK_cvp", "male") addModel( "R6S - Fuze", "male") function GM:PlayerSetModel( ply ) local cl_playermodel = ply:GetInfo( "cl_playermodel" ) local playerModel = table.Random(playerModels) cl_playermodel = playerModel.model local modelname = player_manager.TranslatePlayerModel( cl_playermodel ) util.PrecacheModel( modelname ) ply:SetModel( modelname ) ply.ModelSex = playerModel.sex net.Start("player_model_sex") net.WriteString(playerModel.sex) net.Send(ply) end Hunters (orange team) and props (blu team) are going to pick a skin randomly from that list. addModel( "HUNK_cvp", "male") With only one model indicated, hunters (orange) and props (blu) are going to share it. https://files.facepunch.com/forum/upload/487327/233741cf-dc3d-4646-9dbe-5eceba07bc24/image.png https://files.facepunch.com/forum/upload/487327/765883d1-eb43-46c6-bc1f-d8417811e15a/image.png As you can see, this specific model took the color of its team. But it's not the case for every models. https://files.facepunch.com/forum/upload/487327/ed928fbe-a268-48b3-b55a-60e7a7b39623/image.png Therefore, I would like to use these skins --> For hunters: https://steamcommunity.com/sharedfiles/filedetails/?id=166239934 For props: https://steamcommunity.com/sharedfiles/filedetails/?id=170910643 I've also asked the owner of the gamemode but he doesn't seem to answer anymore :/ Thank you for your help!
Sorry, you need to Log In to post a reply to this thread.