Hello,
this is my first plugin.
It's based on RPG mode, but it isn't similar anymore.
I removed all job skills, they were too imbalanced, but maybe I will add some in future ;)
From now on it's a RPG kit, you can create your own jobs with different skills (watch install notes)
Only works for Left 4 Dead 2
Recommend:
Use this with plugin Back Pack (store unlimited items)
Use this with plugin Unlock Weapons (fix no damage bug with weapons awp,mp5,...)
Tested with plugin Multi Tanks
Tested with plugin Super Versus
Tested with extension L4D Toolz & Left 4 Downtown
Tested on Gamemodes: Versus, Survival, Coop
Players: 12+ (???)
Commands:
!rpgmenu (
rpgmenu in console) //Shows up RPGMenu (MainMenu)
!jobmenu or
!jobs (
jobmenu or
jobs in console) //Show up JobMenu
!rpgskills (
rpgskills in console) //Shows your current skills in chat
!buyshop or
!buy or
!shop or
!buymenu (
buyshop or
buy or
shop or
buymenu in console) //Shows up BuyMenu
Admin Commands:
rpgkit_spy [nick/userid] //Show skills, level, etc ...
NEW!
rpgkit_givelevel [nick/userid] [amount of level to give]
rpgkit_givecash [nick/userid] [amount of cash to give]
rpgkit_giveexp [nick/userid] [amount of exp to give]
rpgkit_givestr [nick/userid] [amount of strength to give]
rpgkit_giveagi [nick/userid] [amount of agility to give]
rpgkit_giveend [nick/userid] [amount of endurance to give]
rpgkit_givehp [nick/userid] [amount of health to give]
Features:
Have a look into my convar list to see all features with description!
/* Jobs*/
You can add your own Jobs.
My release includes 13 jobs but there is no limit!
Example Jobs:
-0- Civilian (isn't a job - no levelup)
-1- Rookie
-2- Scout
-3- Soldier
-4- Medic
-5- Pain Master
-6- Sniper
-7- Weapon Dealer
-8- Firebug
-9- Witch Hunter
-10- Tank Buster
-11- Task Force
-12- General
-13- Mighty Master!!
/* Skills */
Basis Health: Job basis health, on job select
Bonus Health: Gives additional hp, reset on spawn
Agility: Gives more movement speed and jump high
Endurance: Gives you a shield and or damage reflect
Strength: Gives more damage
/* Buy-shop */
Get cash on level up and buy items.
Install-Notes:
Only works for Left 4 Dead 2!
Balance all skills if you change modes!
step 1: If you don't like to add your own Job just
download the
current version of my plugin (
l4d2_BattleRPG_2.x.x.smx) and
place it in (
sourcemod/plugins).
step 2: Change cvars in the
auto generated cfg "
l4d2_battle_rpg_2.x.x.cfg"
Log:
Code:
Battle-RPG 2.2.4: (09/11/13)
- added shield only option
- added a cvar to disable buy menu
Battle-RPG 2.2.3: (07/11/10)
- optimized code (credits: chu1720)
- added witch survived exp
- renamed a few jobs
Battle-RPG 2.2.2: (07/06/10 - views 78)
- code cleanup
- fixed reflect of endurance skill
- fixed strength skill
- changed default convar values
- added job Rookie
- change Drug Dealer to Pain Master
Battle-RPG 2.2.1: (07/04/10 - views 52)
- added admin spy command
- fixed reset of agility during jockey ride finally
- code cleanup
- fixed bug in ExpInfectedKilled()
Rebuild: (07/03/10 - views 41)
- new cvar added: rpgkit_cfg_skill_endurance_shield_limit
Battle-RPG 2.2.0: (07/03/10 - views 2)
- added save to file (credits: chu1720)
- invalid client bug fix
- changed save mode
- removed exp save (useless and cause bugs on exp mode 2 & 3)
- fixed timers
- added admin commands (give cash & exp)
Battle-RPG 2.1.6: (06/27/10 - views 123)
- fixed JocRide & JocRideEnd()
- added exp given by healing another survivor
Battle-RPG 2.1.5: (06/27/10 - views 39)
- fixed tank exp spam of version 2.1.3 & 2.1.4
- added new tank survived cvar and a 3rd tank exp mode
Battle-RPG 2.1.4: (06/27/10 - views 10)
- added EXP modes
Battle-RPG 2.1.3: (06/27/10 - views 11)
- added admin commands to give skills
- added tank EXP mode
Battle-RPG 2.1.2: (06/24/10 - views 70)
- clean up code (fixed cvars)
- fixed bug in IsPlayerTank()
Rebuild: (06/23/10 - views 19)
- added cvar to create a access button for BackPack in RPG-Menu
Battle-RPG 2.1.1: (06/23/10 - views 27)
- fixed bug in JocRideEnd() //fixed in 2.2.1
Battle-RPG 2.1.0: (06/22/10 - 53 views)
- added limits (cash,speed,gravity,endurance,health,strength )
- added damage reflect only mode
- added cash save modes
- added level save modes
- added 2 new job item modes
- added menu pop up timer
- added joblevel
- added buy shop
- fixed bug in ExpInfectedKilled()
Battle-RPG 2.0.9: (06/19/10 - 90 views)
- added 3 health modes
- added 2 skill modes
Battle-RPG 2.0.8: (06/18/10 - 36 views)
- if a jockey rides a player movement speed change back to normal until jockey ride ends (don't work) // fixed in v2.2.1
Battle-RPG 2.0.7: (06/17/10 - 31 views)
- if a jockey rides a player gravity change back to normal until jockey ride ends // fixed in v2.2.1
- optimized code
Battle-RPG 2.0.6: (06/15/10 - 62 views)
- fixed some invalid client errors
Battle-RPG 2.0.5: (06/15/10 - 8 views)
- added admin give level command
- added jobinfo command
Battle-RPG 2.0.4: (06/14/10 - 45 views)
- fixed plugin spams on infected side
Battle-RPG 2.0.3: (06/14/10 - 17 views)
- public release
OLDER VERSIONS NEVER RELEASED
ConVars:
Code:
// This file was auto-generated by SourceMod (v1.4.0-dev)
// ConVars for plugin "l4d2_BattleRPG_2.2.2.smx"
// 0: Disable; X: Limit players cash
// -
// Default: "100000"
rpgkit_cfg_cash_limit "100000"
// EXP that Boomer gives
// -
// Default: "150"
rpgkit_cfg_exp_boomer_killed "150"
// EXP that Charger gives
// -
// Default: "240"
rpgkit_cfg_exp_charger_killed "240"
// 0: Disable; 1: Prints chat message to player if he/she got EXP
// -
// Default: "1"
rpgkit_cfg_exp_chat_enable "1"
// EXP that Common Zombie gives
// -
// Default: "25"
rpgkit_cfg_exp_common_killed "25"
// EXP when you succeed to heal someone with first aid kit
// -
// Default: "300"
rpgkit_cfg_exp_heal_teammate "300"
// EXP that Hunter gives
// -
// Default: "220"
rpgkit_cfg_exp_hunter_killed "220"
// EXP that Jockey gives
// -
// Default: "210"
rpgkit_cfg_exp_jockey_killed "210"
// Needed EXP to become a level up
// -
// Default: "500"
rpgkit_cfg_exp_levelup "500"
// 1: Subtract EXP on level up; 2: Keep EXP on level up and multiply required EXP by job level; 3: SubtractEXP on level up and multiply required EXP by job level
// -
// Default: "3"
rpgkit_cfg_exp_mode "3"
// EXP when you succeed to revive someone with defibrillator
// -
// Default: "600"
rpgkit_cfg_exp_reanimate_teammate "600"
// EXP when you succeed setting someone up
// -
// Default: "400"
rpgkit_cfg_exp_revive_teammate "400"
// EXP that Smoker gives
// -
// Default: "190"
rpgkit_cfg_exp_smoker_killed "190"
// EXP that Spitter gives
// -
// Default: "170"
rpgkit_cfg_exp_spitter_killed "170"
// EXP that Tank gives on tank exp mode 1: (killer) & mode 3: (killer)
// -
// Default: "900"
rpgkit_cfg_exp_tank_killed "900"
// 1: Give EXP only tank killer tank kill EXP; 2: Give all alive players tank survive EXP 3: give killer tankk kill EXP & other survivors tank survive EXP
// -
// Default: "3"
rpgkit_cfg_exp_tank_mode "3"
// EXP that Tank gives on tank exp mode 2 (all) & mode 3 (other)
// -
// Default: "650"
rpgkit_cfg_exp_tank_survived "650"
// 0.0: Disable; X.x : Enable Timer: Check players exp for level up every X.x seconds
// -
// Default: "1.0"
rpgkit_cfg_exp_timer "1.0"
// EXP that Witch gives
// -
// Default: "350"
rpgkit_cfg_exp_witch_killed "350"
// 0: Disable; 1: Enable job items & give Items after job selected
// -
// Default: "1"
rpgkit_cfg_items_job_enable "1"
// 0: Disable; 1: Give job items on level up
// -
// Default: "0"
rpgkit_cfg_items_job_onlevelup "0"
// 0.0: Disable; X.x: Create Timer: Give job items every X.x sec
// -
// Default: "0.0"
rpgkit_cfg_items_job_timer "0.0"
// 0: Disable; 1: Enable Timer: Give job items
// -
// Default: "0"
rpgkit_cfg_items_job_timer_enable "0"
// Cost of Ammo in Shop
// -
// Default: "10"
rpgkit_cfg_items_shop_cost_0 "10"
// Cost of Molotov 1 in Shop
// -
// Default: "50"
rpgkit_cfg_items_shop_cost_1 "50"
// Cost of Pipe Bomb 2 in Shop
// -
// Default: "35"
rpgkit_cfg_items_shop_cost_2 "35"
// Cost of Vomitjar in Shop
// -
// Default: "30"
rpgkit_cfg_items_shop_cost_3 "30"
// Cost of First Aid Kit in Shop
// -
// Default: "75"
rpgkit_cfg_items_shop_cost_4 "75"
// Cost of Pain Pills in Shop
// -
// Default: "50"
rpgkit_cfg_items_shop_cost_5 "50"
// Cost of Adrenaline in Shop
// -
// Default: "35"
rpgkit_cfg_items_shop_cost_6 "35"
// Cost of Defibrillator in Shop
// -
// Default: "100"
rpgkit_cfg_items_shop_cost_7 "100"
// Cost of Explosive Pack in Shop
// -
// Default: "125"
rpgkit_cfg_items_shop_cost_8 "125"
// Cost of Incendiary Pack in Shop
// -
// Default: "150"
rpgkit_cfg_items_shop_cost_9 "150"
// Agility of Civilian
// -
// Default: "0"
rpgkit_cfg_job_agility_0 "0"
// Agility of Rookie
// -
// Default: "1"
rpgkit_cfg_job_agility_1 "1"
// Agility of Tank Buster
// -
// Default: "4"
rpgkit_cfg_job_agility_10 "4"
// Agility of Ninja
// -
// Default: "5"
rpgkit_cfg_job_agility_11 "5"
// Agility of General
// -
// Default: "6"
rpgkit_cfg_job_agility_12 "6"
// Agility of F**k Me IM FAMOUS
// -
// Default: "7"
rpgkit_cfg_job_agility_13 "7"
// Agility of Scout
// -
// Default: "4"
rpgkit_cfg_job_agility_2 "4"
// Agility of Soldier
// -
// Default: "2"
rpgkit_cfg_job_agility_3 "2"
// Agility of Medic
// -
// Default: "2"
rpgkit_cfg_job_agility_4 "2"
// Agility of Pain Master
// -
// Default: "2"
rpgkit_cfg_job_agility_5 "2"
// Agility of Sniper
// -
// Default: "2"
rpgkit_cfg_job_agility_6 "2"
// Agility of Weapon Dealer
// -
// Default: "3"
rpgkit_cfg_job_agility_7 "3"
// Agility of Pyrotechnical
// -
// Default: "3"
rpgkit_cfg_job_agility_8 "3"
// Agility of Witch Hunter
// -
// Default: "4"
rpgkit_cfg_job_agility_9 "4"
// Cash/Payout of Civilian
// -
// Default: "0"
rpgkit_cfg_job_cash_0 "0"
// Cash/Payout of Rookie
// -
// Default: "3"
rpgkit_cfg_job_cash_1 "3"
// Cash/Payout of Tank Buster
// -
// Default: "14"
rpgkit_cfg_job_cash_10 "14"
// Cash/Payout of Ninja
// -
// Default: "15"
rpgkit_cfg_job_cash_11 "15"
// Cash/Payout of General
// -
// Default: "20"
rpgkit_cfg_job_cash_12 "20"
// Cash/Payout of F**k Me IM FAMOUS
// -
// Default: "30"
rpgkit_cfg_job_cash_13 "30"
// Cash/Payout of Scout
// -
// Default: "4"
rpgkit_cfg_job_cash_2 "4"
// Cash/Payout of Soldier
// -
// Default: "5"
rpgkit_cfg_job_cash_3 "5"
// Cash/Payout of Medic
// -
// Default: "4"
rpgkit_cfg_job_cash_4 "4"
// Cash/Payout of Pain Master
// -
// Default: "6"
rpgkit_cfg_job_cash_5 "6"
// Cash/Payout of Sniper
// -
// Default: "7"
rpgkit_cfg_job_cash_6 "7"
// Cash/Payout of Weapon Dealer
// -
// Default: "10"
rpgkit_cfg_job_cash_7 "10"
// Cash/Payout of Pyrotechnical
// -
// Default: "9"
rpgkit_cfg_job_cash_8 "9"
// Cash/Payout of Witch Hunter
// -
// Default: "12"
rpgkit_cfg_job_cash_9 "12"
// 0: Disable; 1: Enable timer: rpgkit_cfg_chat_remindjob_timer
// -
// Default: "1"
rpgkit_cfg_job_chat_remindjob_enable "1"
// 0.0: Disable; X.x : Create Timer: Remind player choose a job every X.x seconds
// -
// Default: "10.0"
rpgkit_cfg_job_chat_remindjob_timer "10.0"
// Endurance of Civilian
// -
// Default: "0"
rpgkit_cfg_job_endurance_0 "0"
// Endurance of Rookie
// -
// Default: "1"
rpgkit_cfg_job_endurance_1 "1"
// Endurance of Tank Buster
// -
// Default: "6"
rpgkit_cfg_job_endurance_10 "6"
// Endurance of Ninja
// -
// Default: "7"
rpgkit_cfg_job_endurance_11 "7"
// Endurance of General
// -
// Default: "8"
rpgkit_cfg_job_endurance_12 "8"
// Endurance of F**k Me IM FAMOUS
// -
// Default: "10"
rpgkit_cfg_job_endurance_13 "10"
// Endurance of Scout
// -
// Default: "2"
rpgkit_cfg_job_endurance_2 "2"
// Endurance of Soldier
// -
// Default: "1"
rpgkit_cfg_job_endurance_3 "1"
// Endurance of Medic
// -
// Default: "1"
rpgkit_cfg_job_endurance_4 "1"
// Endurance of Pain Master
// -
// Default: "2"
rpgkit_cfg_job_endurance_5 "2"
// Endurance of Sniper
// -
// Default: "3"
rpgkit_cfg_job_endurance_6 "3"
// Endurance of Weapon Dealer
// -
// Default: "4"
rpgkit_cfg_job_endurance_7 "4"
// Endurance of Pyrotechnical
// -
// Default: "5"
rpgkit_cfg_job_endurance_8 "5"
// Endurance of Witch Hunter
// -
// Default: "5"
rpgkit_cfg_job_endurance_9 "5"
// Basis Health of Civilian
// -
// Default: "100"
rpgkit_cfg_job_health_basis_0 "100"
// Basis Health of Rookie
// -
// Default: "100"
rpgkit_cfg_job_health_basis_1 "100"
// Basis Health of Tank Buster
// -
// Default: "220"
rpgkit_cfg_job_health_basis_10 "220"
// Basis Health of Ninja
// -
// Default: "250"
rpgkit_cfg_job_health_basis_11 "250"
// Basis Health of General
// -
// Default: "280"
rpgkit_cfg_job_health_basis_12 "280"
// Basis Health of F**k Me IM FAMOUS
// -
// Default: "300"
rpgkit_cfg_job_health_basis_13 "300"
// Basis Health of Scout
// -
// Default: "120"
rpgkit_cfg_job_health_basis_2 "120"
// Basis Health of Soldier
// -
// Default: "130"
rpgkit_cfg_job_health_basis_3 "130"
// Basis Health of Medic
// -
// Default: "140"
rpgkit_cfg_job_health_basis_4 "140"
// Basis Health of Pain Master
// -
// Default: "150"
rpgkit_cfg_job_health_basis_5 "150"
// Basis Health of Sniper
// -
// Default: "160"
rpgkit_cfg_job_health_basis_6 "160"
// Basis Health of Weapon Dealer
// -
// Default: "170"
rpgkit_cfg_job_health_basis_7 "170"
// Basis Health of Pyrotechnical
// -
// Default: "180"
rpgkit_cfg_job_health_basis_8 "180"
// Basis Health of Witch Hunter
// -
// Default: "200"
rpgkit_cfg_job_health_basis_9 "200"
// Bonus Health of Civilian
// -
// Default: "0"
rpgkit_cfg_job_health_bonus_0 "0"
// Bonus Health of Rookie
// -
// Default: "1"
rpgkit_cfg_job_health_bonus_1 "1"
// Bonus HP of Tank Buster
// -
// Default: "10"
rpgkit_cfg_job_health_bonus_10 "10"
// Bonus HP of Ninja
// -
// Default: "11"
rpgkit_cfg_job_health_bonus_11 "11"
// Bonus HP of General
// -
// Default: "12"
rpgkit_cfg_job_health_bonus_12 "12"
// Bonus HP of F**k Me IM FAMOUS
// -
// Default: "13"
rpgkit_cfg_job_health_bonus_13 "13"
// Bonus Health of Scout
// -
// Default: "2"
rpgkit_cfg_job_health_bonus_2 "2"
// Bonus Health of Soldier
// -
// Default: "3"
rpgkit_cfg_job_health_bonus_3 "3"
// Bonus Health of Medic
// -
// Default: "4"
rpgkit_cfg_job_health_bonus_4 "4"
// Bonus Health of Pain Master
// -
// Default: "5"
rpgkit_cfg_job_health_bonus_5 "5"
// Bonus Health of Sniper
// -
// Default: "6"
rpgkit_cfg_job_health_bonus_6 "6"
// Bonus Health of Weapon Dealer
// -
// Default: "7"
rpgkit_cfg_job_health_bonus_7 "7"
// Bonus Health of Pyrotechnical
// -
// Default: "8"
rpgkit_cfg_job_health_bonus_8 "8"
// Bonus Health of Witch Hunter
// -
// Default: "9"
rpgkit_cfg_job_health_bonus_9 "9"
// ReqLevel of Civilian
// -
// Default: "0"
rpgkit_cfg_job_reqlevel_0 "0"
// ReqLevel of Rookie
// -
// Default: "0"
rpgkit_cfg_job_reqlevel_1 "0"
// Tank Buster
// -
// Default: "75"
rpgkit_cfg_job_reqlevel_10 "75"
// ReqLevel of Ninja
// -
// Default: "100"
rpgkit_cfg_job_reqlevel_11 "100"
// ReqLevel of General
// -
// Default: "150"
rpgkit_cfg_job_reqlevel_12 "150"
// ReqLevel of F**k Me IM FAMOUS
// -
// Default: "200"
rpgkit_cfg_job_reqlevel_13 "200"
// ReqLevel of Scout
// -
// Default: "5"
rpgkit_cfg_job_reqlevel_2 "5"
// ReqLevel of Soldier
// -
// Default: "5"
rpgkit_cfg_job_reqlevel_3 "5"
// ReqLevel of Medic
// -
// Default: "5"
rpgkit_cfg_job_reqlevel_4 "5"
// ReqLevel of Pain Master
// -
// Default: "15"
rpgkit_cfg_job_reqlevel_5 "15"
// ReqLevel of Sniper
// -
// Default: "15"
rpgkit_cfg_job_reqlevel_6 "15"
// ReqLevel of Weapon Dealer
// -
// Default: "25"
rpgkit_cfg_job_reqlevel_7 "25"
// ReqLevel of Pyrotechnical
// -
// Default: "35"
rpgkit_cfg_job_reqlevel_8 "35"
// ReqLevel of Witch Hunter
// -
// Default: "50"
rpgkit_cfg_job_reqlevel_9 "50"
// Strength of Civilian
// -
// Default: "0"
rpgkit_cfg_job_strength_0 "0"
// Strength of Rookie
// -
// Default: "2"
rpgkit_cfg_job_strength_1 "2"
// Strength of Tank Buster
// -
// Default: "7"
rpgkit_cfg_job_strength_10 "7"
// Strength of Ninja
// -
// Default: "8"
rpgkit_cfg_job_strength_11 "8"
// Strength of General
// -
// Default: "8"
rpgkit_cfg_job_strength_12 "8"
// Strength of F**k Me IM FAMOUS
// -
// Default: "10"
rpgkit_cfg_job_strength_13 "10"
// Strength of Scout
// -
// Default: "3"
rpgkit_cfg_job_strength_2 "3"
// Strength of Soldier
// -
// Default: "5"
rpgkit_cfg_job_strength_3 "5"
// Strength of Medic
// -
// Default: "3"
rpgkit_cfg_job_strength_4 "3"
// Strength of Pain Master
// -
// Default: "3"
rpgkit_cfg_job_strength_5 "3"
// Strength of Sniper
// -
// Default: "5"
rpgkit_cfg_job_strength_6 "5"
// Strength of Weapon Dealer
// -
// Default: "6"
rpgkit_cfg_job_strength_7 "6"
// Strength of Pyrotechnical
// -
// Default: "6"
rpgkit_cfg_job_strength_8 "6"
// Strength of Witch Hunter
// -
// Default: "7"
rpgkit_cfg_job_strength_9 "7"
// 0: Disable; 1: Show BackPack access button in RPGMenu
// -
// Default: "1"
rpgkit_cfg_menu_rpg_backpack "1"
// 0: Disable; 1: Enable Timer: Show up RPG-Menu & Welcome Msg if job is selected
// -
// Default: "1"
rpgkit_cfg_menu_rpg_enable "1"
// 0.0: Disable; X.x: Create Timer: Show up RPG-Menu once after X.x seconds
// -
// Default: "15.0"
rpgkit_cfg_menu_rpg_timer "15.0"
// 0: Disable; 1: Saved by player's name; 2: Saved by player's SteamID
// -
// Default: "1"
rpgkit_cfg_savetofile_mode "1"
// Limit agiligy skill converted into gravity (MAX: 180?)
// -
// Default: "100"
rpgkit_cfg_skill_agility_gravity_limit "100"
// Limit agiligy skill converted into speed (-1: unlimited)
// -
// Default: "350"
rpgkit_cfg_skill_agility_speed_limit "350"
// 0: Disable; 1: Damage reflect only, no shield
// -
// Default: "0"
rpgkit_cfg_skill_endurance_dmgreflectonly "0"
// 0: Disable; X: Limit endurance skill (-1: unlimited)
// -
// Default: "1000"
rpgkit_cfg_skill_endurance_limit "1000"
// limit shield in percent (>=100: no damage/godmode)
// -
// Default: "50"
rpgkit_cfg_skill_endurance_shield_limit "50"
// 0: Disable; X: Limit players health
// -
// Default: "1000"
rpgkit_cfg_skill_health_limit "1000"
// 0: Disable; Mode1: Incease Only Health on level up; Mode2: Increase Only Max Health on level up; Mode3: Increase Health & Max Health on level up
// -
// Default: "3"
rpgkit_cfg_skill_health_mode "3"
// 0: Disable; Mode1: Add job skills on level up; Mode2: Add job skills on job select; Effects strength, agility & endurance
// -
// Default: "1"
rpgkit_cfg_skill_mode "1"
// 0: Disable; X: Limit strength skill
// -
// Default: "1000"
rpgkit_cfg_skill_strength_limit "1000"
Credits:
Predailien12 (used his code)
chu1720 (added save to file function)
Note- Don't change gravity limit over 180 and shield over 100 (100 -> no damage)!
__________________