Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //written by FlaminSarge
- //near the top of the plugin
- new String:haleversiontitles[][] = { "1.0", "1.1", "1.11", "1.12", "1.2", "1.22", "1.23", "1.24", "1.25", "1.26", "Christian Brutal Sniper", "1.28", "1.29", "1.30", "1.31", "1.32" };
- //put in your new version numbers at the end of this array
- //put these in OnPluginStart to replace the current ones
- RegConsoleCmd("hale_new", NewPanelCmd);
- RegConsoleCmd("halenew", NewPanelCmd);
- //only one line was changed here
- public HalePanelH(Handle:menu, MenuAction:action, param1, param2)
- {
- if (action == MenuAction_Select)
- {
- switch (param2)
- {
- case 1:
- Command_GetHP(param1, 0);
- case 2:
- HelpPanel(param1, 0);
- case 3:
- HelpPanel2(param1, 0);
- case 4:
- NewPanel(param1, sizeof(haleversiontitles)-1); //this line
- case 5:
- QueuePanel(param1, 0);
- case 6:
- MusicTogglePanel(param1, 0);
- default: return;
- }
- }
- }
- //replaces current NewPanelH
- public NewPanelH(Handle:menu, MenuAction:action, param1, param2)
- {
- if (action == MenuAction_Select)
- {
- switch (param2)
- {
- case 1:
- {
- if (curHelp[param1] <= 0)
- NewPanel(param1, 0);
- else
- NewPanel(param1, --curHelp[param1]);
- }
- case 2:
- {
- if (curHelp[param1] >= sizeof(haleversiontitles)-1)
- NewPanel(param1, sizeof(haleversiontitles)-1);
- else
- NewPanel(param1, ++curHelp[param1]);
- }
- default: return;
- }
- }
- }
- public Action:NewPanelCmd(client, args)
- {
- if (!IsClientInGame(client)) return Plugin_Continue;
- NewPanel(client, sizeof(haleversiontitles)-1);
- return Plugin_Handled;
- }
- public Action:NewPanel(client, versionindex)
- {
- if (!Enabled)
- return Plugin_Continue;
- curHelp[client]=versionindex;
- new Handle:panel = CreatePanel();
- decl String:s[90];
- Format(s,90,"=%t%s:=","whatsnew",haleversiontitles[versionindex]);
- SetPanelTitle(panel, s);
- FindVersionData(panel, versionindex);
- if (versionindex > 0)
- Format(s,90, "%t", "older");
- else
- Format(s,90, "%t", "noolder");
- DrawPanelItem(panel, s);
- if (versionindex < sizeof(haleversiontitles)-1)
- Format(s,90, "%t", "newer");
- else
- Format(s,90, "%t", "nonewer");
- DrawPanelItem(panel, s);
- Format(s,512,"%t","menu_6");
- DrawPanelItem(panel,s);
- SendPanelToClient(panel, client, NewPanelH, 9001);
- CloseHandle(panel);
- return Plugin_Continue;
- }
- stock FindVersionData(Handle:panel, versionindex)
- {
- switch (versionindex)
- {
- //case 16: would be the next version number here
- case 15: //132
- {
- DrawPanelText(panel, "1)Added new Saxton's lines on...");
- DrawPanelText(panel, " a)round start");
- DrawPanelText(panel, " b)jump");
- DrawPanelText(panel, " c)backstab");
- DrawPanelText(panel, " d)destroy Sentry");
- DrawPanelText(panel, " e)kill Scout, Pyro, Heavy, Engineer, Spy");
- DrawPanelText(panel, " f)last man standing");
- DrawPanelText(panel, " g)killing spree");
- DrawPanelText(panel, "2)Fixed bugged count of CBS' arrows.");
- DrawPanelText(panel, "3)Reduced Hale's damage versus DR by 20 HPs.");
- DrawPanelText(panel, "4)Now two specials can not be at a stretch.");
- DrawPanelText(panel, "v1.32_1 1)Fixed bug with replay.");
- DrawPanelText(panel, "v1.32_1 2)Fixed bug with help menu.");
- }
- case 14: //131
- DrawPanelText(panel, "1)Now \"replay\" will not change team.");
- case 13: //130
- DrawPanelText(panel, "1)Fixed bugs, associated with crushes, error logs, scores.");
- case 12: //129
- {
- DrawPanelText(panel, "1)Fixed random crushes associated with CBS.");
- DrawPanelText(panel, "2)Now Hale's HP formula is ((760+x-1)*(x-1))^1.04");
- DrawPanelText(panel, "3)Added hale_special0. Use it to change next boss to Hale.");
- DrawPanelText(panel, "4)CBS has 9 arrows for bow-rage. Also he has stun rage, but on little distantion.");
- DrawPanelText(panel, "5)Teammates gets 2 scores per each 600 damage");
- DrawPanelText(panel, "6)Demoman with Targe has crits on his primary weapon.");
- DrawPanelText(panel, "7)Removed support of non-Arena maps, because nobody wasn't use it.");
- DrawPanelText(panel, "8)Pistol/Lugermorph has crits.");
- }
- case 11: //128
- {
- DrawPanelText(panel, "VS Saxton Hale Mode is back!");
- DrawPanelText(panel, "1)Christian Brutal Sniper is a regular character.");
- DrawPanelText(panel, "2)CBS has 3 melee weapons and bow-rage.");
- DrawPanelText(panel, "3)Added new lines for Vagineer.");
- DrawPanelText(panel, "4)Updated models of Vagineer and HHH jr.");
- }
- case 10: //999
- DrawPanelText(panel, "Attachables are broken. Many \"thx\" to Valve.");
- case 9: //126
- {
- DrawPanelText(panel, "1)Added the second URL for auto-update.");
- DrawPanelText(panel, "2)Fixed problems, when auto-update was corrupt plugin.");
- DrawPanelText(panel, "3)Added a question for the next Hale, if he want to be him. (/haleme)");
- DrawPanelText(panel, "4)Eyelander and Half-Zatoichi was replaced with Claidheamh Mor.");
- DrawPanelText(panel, "5)Fan O'War replaced with Bat.");
- DrawPanelText(panel, "6)Dispenser and TP won't be destoyed after Engineer's death.");
- DrawPanelText(panel, "7)Mode uses the localization file.");
- DrawPanelText(panel, "8)Saxton Hale will be choosed randomly for the first 3 rounds (then by queue).");
- }
- case 8: //125
- {
- DrawPanelText(panel, "1)Fixed silent HHHjr's rage.");
- DrawPanelText(panel, "2)Now bots (sourcetv too) do not will be Hale");
- DrawPanelText(panel, "3)Fixed invalid uber on Vagineer's head.");
- DrawPanelText(panel, "4)Fixed other little bugs.");
- }
- case 7: //124
- {
- DrawPanelText(panel, "1)Fixed destroyed buildables associated with spy's fake death.");
- DrawPanelText(panel, "2)Syringe Gun replaced with Blutsauger.");
- DrawPanelText(panel, "3)Blutsauger, on hit: +5 to uber-charge.");
- DrawPanelText(panel, "4)Removed crits from Blutsauger.");
- DrawPanelText(panel, "5)CnD replaced with Invis Watch.");
- DrawPanelText(panel, "6)Fr.Justice replaced with shotgun");
- DrawPanelText(panel, "7)Fists of steel replaced with fists.");
- DrawPanelText(panel, "8)KGB replaced with GRU.");
- DrawPanelText(panel, "9)Added /haleclass.");
- DrawPanelText(panel, "10)Medic gets assist damage scores (1/2 from healing target's damage scores, 1/1 when uber-charged)");
- }
- case 6: //123
- {
- DrawPanelText(panel, "1)Added Super Duper Jump to rescue Hale from pit");
- DrawPanelText(panel, "2)Removed pyro's ammolimit");
- DrawPanelText(panel, "3)Fixed little bugs.");
- }
- case 5: //122
- {
- DrawPanelText(panel, "1.21)Point will be enabled when X or less players be alive.");
- DrawPanelText(panel, "1.22)Now it's working :) Also little optimize about player count.");
- }
- case 4: //120
- {
- DrawPanelText(panel, "1)Added new Hale's phrases.");
- DrawPanelText(panel, "2)More bugfixes.");
- DrawPanelText(panel, "3)Improved super-jump.");
- }
- case 3: //112
- {
- DrawPanelText(panel, "1)More bugfixes.");
- DrawPanelText(panel, "2)Now \"(Hale)<mapname>\" can be nominated for nextmap.");
- DrawPanelText(panel, "3)Medigun's uber gets uber and crits for Medic and his target.");
- DrawPanelText(panel, "4)Fixed infinite Specials.");
- DrawPanelText(panel, "5)And more bugfixes.");
- }
- case 2: //111
- {
- DrawPanelText(panel, "1)Fixed immortal spy");
- DrawPanelText(panel, "2)Fixed crashes associated with classlimits.");
- }
- case 1: //110
- {
- DrawPanelText(panel, "1)Not important changes on code.");
- DrawPanelText(panel, "2)Added hale_enabled convar.");
- DrawPanelText(panel, "3)Fixed bug, when all hats was removed...why?");
- }
- case 0: //100
- {
- DrawPanelText(panel, "Released!!!");
- DrawPanelText(panel, "On new version you will get info about changes.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement