1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Viomi's Plugin Pack

Discussion in 'Plugins' started by Viomi, Aug 5, 2013.

  1. Viomi

    Viomi Running ArchLinux

    Re: Viomi's Quick Fixes

    No, thank YOU for showing me the origins so I don't go around acting like a moron xD

    Edit: There, gave credit and also changed the name to "Viomi's Quick Fix PACK", as to not claim that I made the code.
     
  2. Dub

    Dub Guest

    Re: Viomi's Quick Fix Pack

    Bumping for future use. :)
     
  3. KimJongUn

    KimJongUn Canadian Communist

    Re: Viomi's Quick Fix Pack

    Excellent!
    I plan to use the handfix on my server, thanks ^.^
     
  4. kurozael

    kurozael Cloud Sixteen Director Staff Member Administrator Investor

    Re: Viomi's Quick Fix Pack

    Dunno why people don't do a pull request on the repo for these fixes.
     
  5. RJ

    RJ no pay Legend Clockwork Customer

    Re: Viomi's Quick Fix Pack

    Because they don't get looked at:
    https://github.com/CloudSixteen/Clockwork/pulls

    Those have been sitting there for 2+ months now.
     
    • Like Like x 1
  6. Viomi

    Viomi Running ArchLinux

    Re: Viomi's Quick Fix Pack

    ~Bump~

    This is a bit older but I believe it still works; I had a major malfunction on my server and lost all my server files, and my dropbox doesn't seem to have the download link working anymore.

    If anyone just /happens/ to still have these, I'd love to get them back. Otherwise I'll just re-do em real quick. EDIT2: I've redone em already.

    EDIT: Already re-did the MetroPolice v5 Animations Fix, and also made a new plugin for changing which MPF ranks get what skins, and also adding ranks easily etc.

    However, I had to override some scheme functions, which I really /didn't/ want to do.

    Code:
    -- Set models for ranks here!
    ghostmodel = "models/eliteghostcp.mdl"
    ofcmodel = "models/policetrench.mdl"
    epumodel = "models/leet_police2.mdl"
    dvlmodel = "models/eliteshockcp.mdl"
    cmdmodel = "models/dpfilms/metropolice/police_fragger.mdl"
    secmodel = "models/dpfilms/metropolice/tribal_police.mdl"
    eowmodel = "models/combine_super_soldier.mdl"
    
    function Schema:GetPlayerDefaultModel(player)
    	local faction = player:GetFaction();
    	
    	if (self:IsCombineFaction(faction)) then
    		if (self:IsPlayerCombineRank(player, "GHOST")) then
    			return ghostmodel;
    		elseif (self:IsPlayerCombineRank(player, "OfC")) then
    			return ofcmodel;
    		elseif (self:IsPlayerCombineRank(player, "DvL")) then
    			return dvlmodel;
    		elseif (self:IsPlayerCombineRank(player, "CmD")) then
    			return cmdmodel;
    		elseif (self:IsPlayerCombineRank(player, "SeC")) then
    			return secmodel;
    		end;
    	end;
    end;
    
    function Schema:PlayerNameChanged(player, previousName, newName)
    	if (self:PlayerIsCombine(player)) then
    		local faction = player:GetFaction();
    		
    		if (faction == FACTION_OTA) then
    			if (!self:IsStringCombineRank(previousName, "OWS") and self:IsStringCombineRank(newName, "OWS")) then
    				Clockwork.class:Set(player, CLASS_OWS);
    			elseif (!self:IsStringCombineRank(previousName, "EOW") and self:IsStringCombineRank(newName, "EOW")) then
    				Clockwork.class:Set(player, CLASS_EOW);
    			end;
    		elseif (faction == FACTION_MPF) then
    			if (!self:IsStringCombineRank(previousName, "SCN") and self:IsStringCombineRank(newName, "SCN")) then
    				Clockwork.class:Set(player, CLASS_MPS, true);
    				self:MakePlayerScanner(player, true);
    
    			elseif (!self:IsStringCombineRank(previousName, "RCT") and self:IsStringCombineRank(newName, "RCT")) then
    				Clockwork.class:Set(player, CLASS_MPR);
    			elseif (!self:IsStringCombineRank(previousName, "EpU") and self:IsStringCombineRank(newName, "EpU")) then
    				Clockwork.class:Set(player, CLASS_EMP);
    			elseif (!self:IsStringCombineRank(previousName, "OfC") and self:IsStringCombineRank(newName, "OfC")) then
    				player:SetModel(ofcmodel);
    			elseif (!self:IsStringCombineRank(previousName, "DvL") and self:IsStringCombineRank(newName, "DvL")) then
    				player:SetModel(dvlmodel);
    			elseif (!self:IsStringCombineRank(previousName, "CmD") and self:IsStringCombineRank(newName, "CmD")) then
    				player:SetModel(cmdmodel);
    			elseif (!self:IsStringCombineRank(previousName, "SeC") and self:IsStringCombineRank(newName, "SeC")) then
    				player:SetModel(secmodel);
    			elseif (!self:IsStringCombineRank(newName, "RCT")) then
    				if (player:Team() != CLASS_MPU) then
    					Clockwork.class:Set(player, CLASS_MPU);
    				end;
    			end;
    			
    			if (!self:IsStringCombineRank(previousName, "GHOST") and self:IsStringCombineRank(newName, "GHOST")) then
    				player:SetModel(ghostmodel);
    			end;
    		end;
    	end;
    end;
    
    function Schema:PlayerAdjustCharacterScreenInfo(player, character, info)
    	if (character.data["permakilled"]) then
    		info.details = "This character is permanently killed.";
    	end;
    	
    	if (info.faction == FACTION_OTA) then
    		if (self:IsStringCombineRank(info.name, "EOW")) then
    			info.model = eowmodel;
    		end;
    	elseif (self:IsCombineFaction(info.faction)) then
    		if (self:IsStringCombineRank(info.name, "SCN")) then
    			if (self:IsStringCombineRank(info.name, "SYNTH")) then
    				info.model = "models/shield_scanner.mdl";
    			else
    				info.model = "models/combine_scanner.mdl";
    			end;
    		elseif (self:IsStringCombineRank(info.name, "SeC")) then
    			info.model = secmodel;
    		elseif (self:IsStringCombineRank(info.name, "CmD")) then
    			info.model = cmdmodel;
    		elseif (self:IsStringCombineRank(info.name, "DvL")) then
    			info.model = dvlmodel;
    		elseif (self:IsStringCombineRank(info.name, "EpU")) then
    			info.model = epumodel;
    		elseif (self:IsStringCombineRank(info.name, "OfC")) then
    			info.model = ofcmodel;
    		end;
    		
    		if (self:IsStringCombineRank(info.name, "GHOST")) then
    			info.model = ghostmodel;
    		end;
    	end;
    	
    	if (character.data["customclass"]) then
    		info.customClass = character.data["customclass"];
    	end;
    end;
    This works fine until I change "Schema:" to "PLUGIN:", even with PLUGIN = PLUGIN; at the top and whatnot. It gives me an error for the first call of the "IsCombineFaction" function. Any tips as to what I'm doing wrong? Thankies c:

    EDIT2: Done the hands fix as well. Will upload soon.
     
  7. Re: Viomi's Plugin Pack - Mostly Fixes

    Very good! Thank you, tovarisch!
     
  8. Adler

    Adler cwSexySaveData:SaveSomePieceOfShit() Clockwork Customer

    Re: Viomi's Plugin Pack - Mostly Fixes

    Great job. Done!
     
  9. Viomi

    Viomi Running ArchLinux

    Re: Viomi's Plugin Pack - Mostly Fixes

    Thank you, and you're welcome! I hope you enjoy them; If you have any problems with these fixes or my mini-plugin, please feel free to ask- I'm sure I can help c:
     
  10. Adler

    Adler cwSexySaveData:SaveSomePieceOfShit() Clockwork Customer

    Re: Viomi's Plugin Pack - Mostly Fixes

    Thank you
     
  11. Re: Viomi's Plugin Pack - Mostly Fixes

    wow these sound really cool! :D
     
  12. MrSky

    MrSky player:NotifyAll("hitler is best") Clockwork Customer

    Re: Viomi's Plugin Pack - Mostly Fixes

    Good job Viomi
     
  13. Viomi

    Viomi Running ArchLinux

    Re: Viomi's Plugin Pack - Mostly Fixes

    Thanks guys. Adding a new plugin now if I get permission from RJ;

    It basically puts together functionality of a similar plugin that allows you to rename the MetroPolice Faction on your scoreboard, and the want for one that allows you to hide them from basically everyone not MPF or Admin. Code from RJ, I was just wanting to put it into a small plugin for ease of use, for people who don't want to go through sorting it out themselves.

    EDIT: New mini-plugin added for ease of use. Full credit to RJ

    EDIT2: Solved MetroPolice Rank Models overriding original schema hooks, re-uploading now. Please re-download!
     
  14. Viomi

    Viomi Running ArchLinux

    Re: Viomi's Plugin Pack - Mostly Fixes

    ~BUMP~

    Updating hands fix in a moment. It will now detect if you are combine or citizen, and change the model of your hands accordingly.

    EDIT: Updated

    Also, I am now working on a large plugin that combines the small mini-plugin of allowing you to change the name of MPF on the scoreboard, my current MPF Rank skin changer, and some new functionality to change model depending on rank AND division, along with changing / adding divisions it recognizes, and more. I will be naming it "MetroPolice Full Customization"; It will be uploaded as soon as I am done with the final testing stages.
     
  15. Re: Viomi's Plugin Pack - Mostly Fixes

    Thank you for the animations fix! Haven't tested it yet but still. Pre-thank you.
     
  16. Viomi

    Viomi Running ArchLinux

    Re: Viomi's Plugin Pack - Mostly Fixes

    No problem!

    Sno and I just worked together to make another plugin, which is better fists. They work the same as the current fists, but have better registry, sound, combos, and work with our hand fix.

    I've done a lot more with my MP Full Customization as well, allowing you to change the MPF's prefix;
    MPF.RCT.332
    can become CPA.RCT.332

    You can even change the names of ranks, from i5 to 05, etc. And set models for each. You can set models for all these ranks, and even set different models for different divisions. E.G. i4 UNION can look different from i4 GRID, and i5 UNION could look different from both, etc.

    You can also change / add / remove divisions, etc.

    Thirdly, I made a plugin that allows admins to change their own data.

    I really hope you guys enjoy! I'll upload these three after some more testing.

    EDIT: Updating with new download links and new plugins now!
     
  17. Viomi

    Viomi Running ArchLinux

    Re: Viomi's Plugin Pack - Mostly Fixes

    Bumpy bump for large update with two new plugins! Please enjoy!
     
  18. diablo1675

    diablo1675 Guest

    Re: Viomi's Plugin Pack - Mostly Fixes

    Truly good work.

    Keep it up!
     
  19. Viomi

    Viomi Running ArchLinux

    Re: Viomi's Plugin Pack - Mostly Fixes

    Thank you very much! c:
     
  20. diablo1675

    diablo1675 Guest

    Re: Viomi's Plugin Pack - Mostly Fixes

    I hope to see more of you.
     

Previous Readers (Total: 0)