File tree Expand file tree Collapse file tree 5 files changed +10
-1
lines changed
entities/roles/ttt_role_base Expand file tree Collapse file tree 5 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
1313- Added support for "toggle_zoom" binds to trigger the radio commands menu (by @TW1STaL1CKY )
1414- Added option to use right click to enable/disable roles in the role layering menu (by @TimGoll )
1515- Added option to enable team name next to role name on the HUD (by @milkwxter )
16+ - Added score event for winning with configurable role parameter (by @MrXonte )
1617
1718### Fixed
1819
Original file line number Diff line number Diff line change @@ -40,9 +40,12 @@ ROLE.score = {
4040 -- round ended with nobody winning, usually a negative number.
4141 timelimitMultiplier = 0 ,
4242
43- -- The amount of points gained by killing yourself. Should be a
43+ -- The amount of score points gained by killing yourself. Should be a
4444 -- negative number for most roles.
4545 suicideMultiplier = - 1 ,
46+
47+ -- The amount of score points gained when your team wins.
48+ winMultiplier = 3 ,
4649}
4750
4851ROLE .karma = {
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ function EVENT:CalculateScore()
122122 score_timelimit = wintype == WIN_TIMELIMIT and math.ceil (
123123 otherAlivePlayers * roleData .score .timelimitMultiplier
124124 ) or 0 ,
125+ score_win = wintype == team and roleData .score .winMultiplier ,
125126 })
126127 end
127128end
Original file line number Diff line number Diff line change @@ -1170,13 +1170,15 @@ L.tooltip_karma_gained = "Karmaänderungen für diese Runde:"
11701170L .tooltip_score_gained = " Punkteänderungen für diese Runde:"
11711171L .tooltip_roles_time = " Rollenwechsel für diese Runde:"
11721172
1173+ L .tooltip_finish_score_win = " Gewinner: {score}"
11731174L .tooltip_finish_score_alive_teammates = " Lebende Teammitglieder: {score}"
11741175L .tooltip_finish_score_alive_all = " Lebende Spieler: {score}"
11751176L .tooltip_finish_score_timelimit = " Zeit vorbei: {score}"
11761177L .tooltip_finish_score_dead_enemies = " Tote Gegner: {score}"
11771178L .tooltip_kill_score = " Mord: {score}"
11781179L .tooltip_bodyfound_score = " Leichenfund: {score}"
11791180
1181+ L .finish_score_win = " Gewinner:"
11801182L .finish_score_alive_teammates = " Lebende Teammitglieder:"
11811183L .finish_score_alive_all = " Lebende Spieler:"
11821184L .finish_score_timelimit = " Zeit vorbei:"
Original file line number Diff line number Diff line change @@ -1170,13 +1170,15 @@ L.tooltip_karma_gained = "Karma changes for this round:"
11701170L .tooltip_score_gained = " Score changes for this round:"
11711171L .tooltip_roles_time = " Role changes for this round:"
11721172
1173+ L .tooltip_finish_score_win = " Win: {score}"
11731174L .tooltip_finish_score_alive_teammates = " Alive teammates: {score}"
11741175L .tooltip_finish_score_alive_all = " Alive players: {score}"
11751176L .tooltip_finish_score_timelimit = " Time is up: {score}"
11761177L .tooltip_finish_score_dead_enemies = " Dead enemies: {score}"
11771178L .tooltip_kill_score = " Kill: {score}"
11781179L .tooltip_bodyfound_score = " Body found: {score}"
11791180
1181+ L .finish_score_win = " Win:"
11801182L .finish_score_alive_teammates = " Alive teammates:"
11811183L .finish_score_alive_all = " Alive players:"
11821184L .finish_score_timelimit = " Time is up:"
You can’t perform that action at this time.
0 commit comments