Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Innocent Streak Bonus Weight #25

Open
lzinga opened this issue Apr 29, 2020 · 0 comments
Open

Innocent Streak Bonus Weight #25

lzinga opened this issue Apr 29, 2020 · 0 comments

Comments

@lzinga
Copy link
Owner

lzinga commented Apr 29, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant