Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Baker & Famine
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
3.076 MB
29 Jul, 2024 @ 12:14am
9 Aug, 2024 @ 2:45pm
3 Change Notes ( view )

Subscribe to download
[TTT2] Baker & Famine

In 1 collection by DuttBob
krunkttt
101 items
Description
You gonna eat that?

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]. A list of all currently available roles can be found here.

Discord: https://discord.gg/9njYXGY
Source: https://github.com/milkwxter/TTT2BakerFamine



The baker & the famine are two roles in one!

The baker is given a bread baker gadget used to drop 10 pieces of delicious cinnamon bread on the ground. Other players can eat the bread for 25 hp, and save them from any future famines. Once 5 pieces of bread are eaten, the baker turns into the second role, the famine. Alternatively, the baker can use the secondary button on the bread baker to start a famine if players don't want to eat.

The famine gets a base 200 hp, and an extra 25 hp for each eaten piece of bread. The famine also transforms into a skeleton player model, and extra bread will spawn around the map. Any player that didn't eat any bread, start to 'starve' and lose 5 hp every 5 seconds.

The idea is players are given a incentive to eat bread to heal and save them from the famine, but the other famine gets stronger! So be weary of any passionate bakers, their bread comes at a price!


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.

Since the famine spawning is tied to the baker, the role convars are for the baker spawning.

Normal Role Convars (also found in ULX)
# enable or disable this role ttt_baker_enabled [0/1] (default 1) # the percentage of players that are spawned as this role ttt_baker_pct [0.0..1.0] (default 0.15) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_baker_max [0..n] (default 1) # The probability each round of this role being spawned at all ttt_baker_random [0..100] (default 33) # the amount of players needed for this role to spawn ttt_baker_min_players [0..n] (default 6)

Baker & Famine Specific Convars (found in F1 menu)
Baker menu # health gained from eating bread ttt2_bread_health [1...100] (default 25) # amount of bread eaten to start a famine ttt2_role_baker_bread_eaten_threshold [1...20] (default 5) Famine menu # amount of bread that spawns around the map ttt2_role_famine_bread_spawn_amount [5...100] (default 10) # amount of health the famine starts with ttt2_role_famine_starting_health [100...300] (default 200) # health the famine gains when someone eats their bread ttt2_role_famine_bread_health [1...100] (default 25)

--
Credits
milkwater: Coding and Role Idea
cheezbawlz: Coding
Patrick Morrison: Drought icon, from the Noun Project
Pericon Design: Bread icon, from the Noun Project
ArashDesign: Skull icon, from the Noun Project
Valve: Cinnamon bread model