Requires SDK Hooks
Compiled with 1.2.4
Inspired by this
When compiling, you'll need
Credits to Damizean and his Equipment Manager which I have modified slightly for this purpose.
This plugin gives each class 3 skills to advance in. Upon leveling up twice in any skill they'll gain a new wearable. No wearable are hats on purpose: the plugin is not meant to replace the player's ever-so-loved hat.
Make sure to try the plugin first with cce_nosubmit 1. If you like it, you can consider adding saving support.
Soldat's Aim: Hit enemies directly with rockets!
Air Force: Rocket Jump and hurt enemies!
Close Combatant: Hit enemies up close!
Poof Blaster: Reflect objects!
Ambush Academy: Ambush using the backburner or axtinguisher!
Distance Damager: Hurt enemies from a distance!
Meatshot: Hurt enemies badly in one shot with the Scattergun or FaN!
Support Stalker: Hurt and kill enemy support classes!
Air Mobility: Hurt enemies while airborne!
Splash Master: Hit multiple enemies at once with explosives!
Hardhat Harmer: Destroy buildings!
Drunken Royalty: Slay ememies with melee weapons!
Sentry Shooting: Kill enemies using your sentry!
Team Support: Support your team with dispensers and teleporters!
Wacky Wrench: Kill enemies with your wrench (spies are a good target)!
HOW TO MAKE IT WORK IN SQL
Execute the following into your sql database:
CREATE TABLE `<DATABASENAME>`.`mw_skills` (
`id` VARCHAR( 255 ) NOT NULL ,
`steamid` VARCHAR( 255 ) NOT NULL ,
`value` INT( 11 ) NOT NULL ,
PRIMARY KEY ( `id` )
) ENGINE = MYISAM
Replace <DATABASENAME> with the name of your database. It should create a table called mw_skills.
Go to addons/sourcemod/configs/databases.cfg
Add the following after the last database:
Replace the highlighted fields with your sql settings.
Change cce_nosubmit to 0 and it should work after the next map change.
cce_enabled (1): enables/disables the plugin
cce_level_default (1): default level for players when they join
cce_level_max (4): Maximum level in each skill a player can reach
cce_exp_default (150): Default max experience always required for each level
cce_exp_levelup (500): Additional xp required for each skill. I multiplied for each level (ex: level 3, 150 + 500*2 = 1150 xp required).
cce_show_skill_name (1): Show the skill name in hud?
cce_show_rank_name (1): Show the rank name in hud?
cce_equip (1): Use with Damizean's Equipment Manager?
cce_missions (7): Missions maximum roll rate. If 0, missions are disabled. 1 means almost always a new mission.
cce_nosubmit (1): Skills do not get submitted to sql server. Useful if testing features or if you simply don't have one. Note that nothing will be saved.
cce_sprite (1): Indicate a target with a sprite?
cce_db (cce): MySQL Database to use.
cce_version: Current plugin version
Additionally, make sure to download the wearable models:
(credit to the original creators, all I did was recompile them)