Skip to content

Innocent Streak Bonus Weight #25

@lzinga

Description

@lzinga

While looking through the code I believe this should potentially be added into a convar to set if this should be running or not.

-- Phantom139: Added a block here to add additional weight for "streaks" of not being a traitor.
if v:GetRoundsSinceTraitorCount() >= math.random(3, 5) then
	local bonusWeight = math.floor(math.pow(1.75, v:GetRoundsSinceTraitorCount()))
	v:AddWeight( bonusWeight )
	print(v:GetName() .. " was given " .. bonusWeight .. " extra weight for being on a streak of not being the traitor. ( " .. v:GetRoundsSinceTraitorCount() .. " rounds)")
end

This gives the server owner more control of what they want their server to be instead of forcing certain settings on them.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions