Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- -- Creator: Peter
- -- Created for: Next Generation Gaming TTT
- -- Website: http://ng-gaming.net/
- -- Credits to: Creator of the model, myself, Facepunch forums
- -- Original: http://www.garrysmod.org/downloads/?a=view&id=94580
- -- Purpose: Change default Detective model in TTT to a cop.
- ]]--
- local function AddPlayerModel( name, model )
- list.Set( "PlayerOptionsModel", name, model )
- player_manager.AddValidModel( name, model )
- player_manager.AddValidModel( "CS:GO Variant A Leet Enhanced", "models/arachnit/csgooldleet/tm_leet_variantaplayer.mdl" );
- player_manager.AddValidHands( "CS:GO Variant A Leet Enhanced", "models/arachnit/weapons/c_arms_t_leet.mdl", 0, "00000000" )
- player_manager.AddValidModel( "CS:GO Variant B Leet Enhanced", "models/arachnit/csgooldleet/tm_leet_variantbplayer.mdl" );
- player_manager.AddValidHands( "CS:GO Variant B Leet Enhanced", "models/arachnit/weapons/c_arms_t_leet.mdl", 0, "00000000" )
- player_manager.AddValidModel( "CS:GO Variant C Leet Enhanced", "models/arachnit/csgooldleet/tm_leet_variantcplayer.mdl" );
- player_manager.AddValidHands( "CS:GO Variant C Leet Enhanced", "models/arachnit/weapons/c_arms_t_leet.mdl", 0, "00000000" )
- player_manager.AddValidModel( "CS:GO Variant D Leet Enhanced", "models/arachnit/csgooldleet/tm_leet_variantdplayer.mdl" );
- player_manager.AddValidHands( "CS:GO Variant D Leet Enhanced", "models/arachnit/weapons/c_arms_t_leet.mdl", 0, "00000000" )
- player_manager.AddValidModel( "CS:GO Variant E Leet Enhanced", "models/arachnit/csgooldleet/tm_leet_varianteplayer.mdl" );
- player_manager.AddValidHands( "CS:GO Variant E Leet Enhanced", "models/arachnit/weapons/c_arms_t_leet.mdl", 0, "00000000" )
- player_manager.AddValidModel( "CS:GO Variant F Leet Enhanced", "models/arachnit/csgooldleet/tm_leetfunusedplayer.mdl" );
- player_manager.AddValidHands( "CS:GO Variant F Leet Enhanced", "models/arachnit/weapons/c_arms_t_leet.mdl", 0, "00000000" )
- end
- AddPlayerModel( "Cop", "models/player/elispolice/police.mdl" )
- AddPlayerModel( "Cs1", "models/arachnit/csgooldleet/tm_leet_variantaplayer.mdl" )
- AddPlayerModel( "Cs2", "models/arachnit/csgooldleet/tm_leet_variantbplayer.mdl" )
- AddPlayerModel( "Cs3", "models/arachnit/csgooldleet/tm_leet_variantcplayer.mdl" )
- AddPlayerModel( "Cs4", "models/arachnit/csgooldleet/tm_leet_variantdplayer.mdl" )
- AddPlayerModel( "Cs5", "models/arachnit/csgooldleet/tm_leet_varianteplayer.mdl" )
- AddPlayerModel( "Cs6", "models/arachnit/csgooldleet/tm_leetfunusedplayer.mdl" )
- if (SERVER) then
- resource.AddFile( "models/player/elispolice/police.mdl" )
- resource.AddFile( "models/elispolice/police.mdl" )
- resource.AddFile( "materials/vgui/entities/npc_epoliceally.vmt" )
- resource.AddFile( "materials/vgui/entities/npc_epoliceenemy.vmt" )
- resource.AddFile( "materials/vgui/entities/npc_epoliceenemy.vtf" )
- resource.AddFile( "materials/models/player/elis/po/cleaner_face_e.vmt" )
- resource.AddFile( "materials/models/player/elis/po/cleaner_face_e.vtf" )
- resource.AddFile( "materials/models/player/elis/po/cleaner_face_e_n.vtf" )
- resource.AddFile( "materials/models/player/elis/po/estuche.vmt" )
- resource.AddFile( "materials/models/player/elis/po/estuche.vtf" )
- resource.AddFile( "materials/models/player/elis/po/hand_white_a.vmt" )
- resource.AddFile( "materials/models/player/elis/po/hand_white_a.vtf" )
- resource.AddFile( "materials/models/player/elis/po/hand_white_a_n.vtf" )
- resource.AddFile( "materials/models/player/elis/po/nypd_body_a_coat.vmt" )
- resource.AddFile( "materials/models/player/elis/po/nypd_body_a_coat.vtf" )
- resource.AddFile( "materials/models/player/elis/po/nypd_body_a_coat_n.vtf" )
- resource.AddFile( "materials/models/player/elis/po/nypd_legs_a.vmt" )
- resource.AddFile( "materials/models/player/elis/po/nypd_legs_a.vtf" )
- resource.AddFile( "materials/models/player/elis/po/nypd_legs_a_n.vtf" )
- end
- hook.Add("TTTBeginRound", "BeginRoundDetectiveSkin", function()
- for k,v in pairs(player.GetAll()) do
- v:SetModel("models/arachnit/csgooldleet/tm_leet_variantaplayer.mdl")
- v:SetModel("models/arachnit/csgooldleet/tm_leet_variantbplayer.mdl")
- v:SetModel("models/arachnit/csgooldleet/tm_leet_variantcplayer.mdl")
- v:SetModel("models/arachnit/csgooldleet/tm_leet_variantdplayer.mdl")
- v:SetModel("models/arachnit/csgooldleet/tm_leet_varianteplayer.mdl")
- v:SetModel("models/arachnit/csgooldleet/tm_leetfunusedplayer.mdl")
- if v:IsActiveDetective() then
- v:SetModel("models/player/elispolice/police.mdl")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement