AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Cosmetic Class Experience [UPDATED!] (https://forums.alliedmods.net/showthread.php?t=122729)

Mecha the Slag 03-30-2010 05:29

[TF2] Cosmetic Class Experience [UPDATED!]
 
3 Attachment(s)
Requires SDK Hooks
Compiled with 1.2.4
Inspired by this

When compiling, you'll need
colors

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.

THE SKILLS
Soldier
Soldat's Aim: Hit enemies directly with rockets!
Air Force: Rocket Jump and hurt enemies!
Close Combatant: Hit enemies up close!

Pyro
Poof Blaster: Reflect objects!
Ambush Academy: Ambush using the backburner or axtinguisher!
Distance Damager: Hurt enemies from a distance!

Scout
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!

Demoman
Splash Master: Hit multiple enemies at once with explosives!
Hardhat Harmer: Destroy buildings!
Drunken Royalty: Slay ememies with melee weapons!

Engineer
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
STEP 1
Execute the following into your sql database:
Code:

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.

STEP 2
Go to addons/sourcemod/configs/databases.cfg

Add the following after the last database:
Code:

        "cce"
        {     
                "driver"                        "mysql"
                  "host"                                "<HOST>"       
                  "database"                        "<DATABASENAME>"   
                  "user"                                "<USERNAME>"     
                  "pass"                                "<PASSWORD>"     
                "timeout"                                "300"     
                  "port"                                "3306" 
        }

Replace the highlighted fields with your sql settings.
Change cce_nosubmit to 0 and it should work after the next map change.


CVARS
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:
models
(credit to the original creators, all I did was recompile them)

Thrawn2 03-30-2010 07:55

Re: Cosmetic Class Experience
 
everywhere rpg mods keep popping up, which is awesome.
but none is using tlevelmod
this makes me sad. i feel useless ;)

invention of the same wheel over and over :[

nonetheless, thanks for the effort ;)

Sp0rk 03-31-2010 09:02

Re: Cosmetic Class Experience
 
The plugin fails to compile, but I really like the idea.

Mecha the Slag 03-31-2010 10:40

Re: Cosmetic Class Experience
 
requires SDK hooks, as mentioned in the first post.

noodleboy347 03-31-2010 19:25

Re: [TF2] Cosmetic Class Experience
 
Yay, I'm inspiring more people ^_^

Could we get some screenshots of these wearables?

Sp0rk 03-31-2010 23:30

Re: [TF2] Cosmetic Class Experience
 
Actually it was the colors include that was missing, but I worked that out. It seems to work really well and I look forward to testing this on my TF² server! Just one request. Would there be a way to make the skill, rank and experience points smaller or only appear when progress is made? They seem a bit large in the HUD.

alinayg 04-04-2010 02:27

Re: [TF2] Cosmetic Class Experience
 
Quote:

Originally Posted by noodleboy347 (Post 1134952)
Yay, I'm inspiring more people ^_^

Could we get some screenshots of these wearables?

Warcraft Source has been on CS:S for a long long time, your not the first, sorry!

I would love to test these plugins someday tho, when we get more money for more servers!

noodleboy347 04-04-2010 05:41

Re: [TF2] Cosmetic Class Experience
 
Quote:

Originally Posted by alinayg (Post 1138603)
Warcraft Source has been on CS:S for a long long time, your not the first, sorry!

I would love to test these plugins someday tho, when we get more money for more servers!

I mean cosmetic experience mods

lionheart1066 04-05-2010 09:47

Re: [TF2] Cosmetic Class Experience
 
Sounds interesting

Grundy 04-07-2010 13:15

Re: Cosmetic Class Experience
 
Quote:

Originally Posted by [AAA] Thrawn (Post 1133122)
everywhere rpg mods keep popping up, which is awesome.
but none is using tlevelmod
this makes me sad. i feel useless ;)

invention of the same wheel over and over :[

nonetheless, thanks for the effort ;)

Not everybody! :wink:


All times are GMT -4. The time now is 04:59.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.