Garry's Mod

Garry's Mod

29 ratings
[TTT2] Cupid [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Gamemode
File Size
Posted
Updated
723.703 KB
24 Apr, 2020 @ 12:46pm
7 Feb, 2023 @ 11:51pm
34 Change Notes ( view )

Subscribe to download
[TTT2] Cupid [ROLE]

In 1 collection by SilverLous
TTT Collection
154 items
Description
Cupid is the role of love. Spread love in this Traitor infested World!

You have to use TTT2 in order to use this role. Additionally, using ULX for TTT2 is recommended. Report bugs concerning this role here[github.com] and submit new role ideas here[github.com]. A list of all currently available roles can be found here.

Discord: https://discord.gg/Npcbb4W
GitHub: https://github.com/SilverLous/ttt2-role-cupid



Cupid:
Cupid starts the round with his crossbow. The crossbow will be invisible to other players. "Shooting" it only makes particles on Cupids end and lets two Players fall in love. Using Cupid's crossbow after someone already died will nullify the effect without warning to prevent abuse.Other than that Cupid is a standard Innocent.

Lovers:
After falling in Love the Lovers get notified of their fate and their team and split all their damage between eachother! If a lover miraculously survives the damage split they will die of a broken heart in 5 seconds! When the lovers are in opposite Teams i.e. Innocent and Traitor they will form their own Team and win when everyone else is dead. They can also see their loved one through walls and get notified if their significant other died, before them leaving this world as themself.

Plays best with:
  • Serialkiller --falling in love with a Serialkiller has never been more thrilling!


Convars are variables that are introduced to allow server owners to customize the gameplay without changing the code. There are always a handful of convars automatically created by TTT2, that define the spawn parameters of this role and are found in ULX. Additionally, there might be some role specific convars, which have to be set in the server config file.


Normal Role Convars (also found in ULX):
# enable or disable this role ttt_cup_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_cup_pct [0.0..1.0] (default: 0.15) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_cup_max [0..n] (default: 1) # the probability each round of this role being spawned at all ttt_cup_random [0..100] (default: 15) # the amount of players needed for this role to spawn ttt_cup_min_players: [0..n] (default: 6)


Role specific Convars (also found in ULX):
# whether or not the lovers split their damage ttt_cupid_damage_split_enabled [0/1] (default: 1) # whether or not the old weapon is used ttt_cupid_old_weapon [0/1] (default: 0) # whether or not the cupid has to be one of the Lovers ttt_cupid_forced_selflove [0/1] (default: 0) # whether or not lovers will always be in their own team ttt_cupid_lovers_force_own_team [0/1] (default: 0) # whether or not cupid will join the loved ones ttt_cupid_joins_team_lovers [0/1] (default: 0) # how long cupid should be able to use his crossbow ttt_cupid_timelimit_magic [0/999] (default:60)


--
Credits:
Alf21, Mineotopia, Tobse, LeBroomer: Creators of the required addon TTT2
Translation by Tekiad and Blueberryy
Artwork by Mineotopia
93 Comments
Racpy 7 Feb, 2023 @ 5:40pm 
Thanks for your quick help! There is also a string problem
Is the "ev_win..." string deprecated?
I can't find the relevant string on ttt2, don't see this notification in game
But other roles and independent teams can also see this string.

If the string is not deprecated.
L[ "ev_win_"..CUPID.name.."s" ] should be
L["ev_win_lovers"]

on github. de and en translation strings are out of sync between L["lovers"] (one more line or less).

and translation of de
L["win_" .. CUPID.name .."s"]
can delete.
SilverLous  [author] 7 Feb, 2023 @ 1:33am 
Implemented the fixes. L["lovers"] to change the name in the scoreboard text.
L["win_lovers"] for the popup
Racpy 29 Jan, 2023 @ 6:47am 
1. Is there a way to change scoreboard text for lovers team ? for translate use.

2. If the lovers win, at the end of the round, "win_lovers" will be displayed in the top-right.
seems not translate it too.

i think it should be same with other role can modify these notification text easily.

example
L["win_" ..CUPID.name .."s"] = can't correctly show what i type here. in game show "win_lovers".
L["win_lovers"] = "can correctly show what i type here"

example for Jackal
L["win_" .. JACKAL.defaultTeam] = "blah blah blah..." it can correctly show.
SilverLous  [author] 27 Oct, 2021 @ 2:41am 
No, Cupid just loses the crossbow when enough time passed.
AelitaStonks 27 Oct, 2021 @ 2:31am 
@SilverLous Thanks! The timer is shown to Cupid?
SilverLous  [author] 26 Oct, 2021 @ 8:39am 
I removed the "everyone alive" requirement and replaced it with a configurable timelimit. (ttt_cupid_timelimit_magic)
SilverLous  [author] 26 Oct, 2021 @ 4:19am 
I thought about that, but I did not want to give cupid the ability to know that someone is already dead.
I'll think about changing it to a timer instead with an error notification after it
Tim | Mineotopia 26 Oct, 2021 @ 3:52am 
maybe add a notification then that opos up whith the reason why it failed?
KillerfoxyLP 26 Oct, 2021 @ 1:47am 
ohhh! i didnt know that thank you very much!
SilverLous  [author] 25 Oct, 2021 @ 9:19pm 
Both of your problems is probably the fail-safe. Cupid cannot use his powers after at least one player died to prevent him from making any informed decision.