Raised This Month: $ Target: $400
 0% 

[TF2] MvM Rewards (v1.0 24Dec2022)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
PC Gamer
Veteran Member
Join Date: Mar 2014
Plugin ID:
8337
Plugin Version:
1.0
Plugin Category:
Admin Commands
Plugin Game:
Team Fortress 2
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Gives cash rewards in PvP maps running an MvM Upgrade Station
Old 12-25-2022 , 02:25   [TF2] MvM Rewards (v1.0 24Dec2022)
Reply With Quote #1

Description:
This plugin gives server Administrators the ability to change cash rewards on PvP maps with a MvM Upgrade Station.

Plugin Credits:
Thanks goes to Bacardi for his help with capture rewards
Thanks goes to Tylerst for his cash commands

Dependencies:
This plugin requires TF2Attributes by FlaminSarge. Here's a link: https://github.com/FlaminSarge/tf2attributes

Maps that this was tested on:
CTF 2Fort w/ MvM upgrades - Link: https://steamcommunity.com/sharedfil...28&searchtext=
CTF Turbine w/ MvM Upgrades (Vscript) - Link: https://steamcommunity.com/sharedfil...?id=2902325887


Optional Dependency:
[L4D2/CS:GO/TF2/NMRiH] VScript File Replacer by Silvers Link: https://forums.alliedmods.net/showthread.php?t=318024
This plugin, once installed and configured with a configuration file will allow you to replace the VScript cash given per kill. Since this plugin already gives cash per kill you can set the amount of cash per kill from the VScript map to zero. To do that for the two maps listed above you would create a config file labeled vscripts_override.cfg and put it in your /tf/addons/sourcemod/data directory. The file content would look like this:
PHP Code:
"vscript_replacer"
{
    
"ctf_2fort_mvmupgrades"
    
{
        
"nepjr_ctf_2fort_mvmupgrades"
        
{
            
"cash = 75"                "cash = 0"
        
}
    }
    
"ctf_turbine_mvmupgrades"
    
{
        
"mvmupgrade"
        
{
            
"cash = 75"                "cash = 0"
        
}
    }

If you don't do this the amount of cash provided by the map per kill will be added to the amount of cash provided by this plugin per kill. You could also just optionally set the kill amount of this plugin to zero using a Server Console Variable command.

Server Console Variables:
sm_mvm_cash_joinserver_amount Default 200, Amount to give players joining the map
sm_mvm_cash_roundstart_amount Default 200, Amount to give players at round start
sm_mvm_cash_kill_amount Default 60, Amount to give players for each kill
sm_mvm_cash_assist_amount Default 50, Amount to give players for each assist
sm_mvm_cash_capture_amount Default 100, Amount to give players who actually captured the objective or flag
sm_mvm_cash_roundwin_amount Default 300, Amount to give team players for winning the round
sm_mvm_cash_roundloss_amount Default 200, Amount to give team players losing the round

Admin Commands:
sm_showcash <targets> Shows cash amounts of selected target/targets
sm_setcash <targets> <amount> Sets cash of selected target/targets to command amount
sm_addcash <targets> <amount> Increases target/targets cash by command amount
sm_removecash <targets> <amount> Decreases target/targets cash by command amount
sm_wipeall <targets> Immediately removes all upgrades from target(s)

Command Examples:
!addcash 500 (increase your cash amount by 500 credits)
!setcash @red 0 (removes all cash from all players on RED team)
!setcash Tony 800 (forces player named Tony's cash to be 800 credits total)
!wipeall @all (forcefully removes all upgrades from all players)

Installation:
Put mvmrewards.smx into the folder: /sourcemod/plugins/
Change map

Change Log:
v1.0 24Dec2022, Initial Release
Attached Files
File Type: sp Get Plugin or Get Source (mvmrewards.sp - 84 views - 14.9 KB)
File Type: smx mvmrewards.smx (11.1 KB, 65 views)
PC Gamer is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:33.


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