Garry's Mod

Garry's Mod

Custom Roles for TTT Jingle Jam 2021 Roles Pack
8 Comments
Malivil  [author] 2 Feb, 2023 @ 6:11pm 
Pootispocalypse: What do you mean where are the hooks added? Are you trying to modify the Santa?

Modding questions for CR for TTT stuff is probably better done on our discord server so we can share code samples. You can join here: https://discord.gg/BAPZrykC3F
Pootispocalypse 2 Feb, 2023 @ 4:00pm 
Hello again, sorry if it's a bit basic but where/how are the hooks for the Santa role added? I'm having trouble finding it online. Thanks!
Malivil  [author] 5 Sep, 2022 @ 7:45pm 
Continued....

The Santa can only send out one gift at a time. Their credit is refunded (or their cannon reloaded, in the case of random presents) when someone opens the present, though each person can only open one gift per-Santa, per-Round.
If the Santa shoots a coal, their credit will be automatically refunded (or their cannon reloaded, in the case of random presents) when the person killed by the coal is "naughty" (traitors are always naughty, jesters and independents can be naught if they are configured to be so). If the person killed by the coal is "nice" (e.g. not "naughty") then the Santa's cannon is not reloaded and is effectively unusable for the remainder of the round.
Malivil  [author] 5 Sep, 2022 @ 7:45pm 
The Santa's tutorial page in the F1 menu should explain more than our quick blurb here, but to answer your questions:

- The Santa Cannon is used to give gifts
- By default, the Santa can only gift the things available in their shop. There is an option to have random gifts instead, in which case the shop is not used.
- If you choose to send a gift, you have to "buy" it from the shop and then use MOUSE1 on the Santa Cannon to shoot it (if random gifts is enabled, simply press MOUSE1. The shop is not needed). If you choose to shoot coal instead, you use MOUSE2 on the Santa Cannon without buying a gift
- The coal will kill anyone it hits
Cpt.Haxray 5 Sep, 2022 @ 7:10pm 
Heyo, im a bit curious as to how the Santa role works, but the description given here is a bit vague. Its a pain to get people together to test stuff so im wondering if you could answer a few questions:

-How does the gift giving work?
- What kind of gifts can the Santa give?
- Does it choose if someone gets a naughty Gift, or is it automatically decided based on their role?
- What does the coal gifts do?
Pootispocalypse 29 Mar, 2022 @ 3:14pm 
Thank you very much!
Malivil  [author] 23 Mar, 2022 @ 2:02pm 
You'll need to set the "enabled" convar to "1" for any of the roles you'd like to use. They can go anywhere in your listenserver.cfg as long as each one is on its own line, like:

ttt_boxer_enabled 1
ttt_santa_enabled 1
Pootispocalypse 23 Mar, 2022 @ 11:48am 
Do the convars in listenserver.cfg need to be modified to use this mod? If so, where should the new convars in this pack go in the file?