Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

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


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
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 - 14.9 KB)
File Type: smx mvmrewards.smx (11.1 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...