TTT-2 / ttt2-role_inf

This is the "Infected" role for TTT2
2 stars 5 forks source link

Modify roles table of rolesetup addon #4

Closed Blaubeeree closed 5 years ago

Blaubeeree commented 5 years ago

Please add `if SERVER then -- modify roles table of rolesetup addon hook.Add("TTTAModifyRolesTable", "ModifyRoleInfToInno", function(rolesTable) local infected = rolesTable[ROLE_INFECTED]

    if not infected then return end

    rolesTable[ROLE_INNOCENT] = rolesTable[ROLE_INNOCENT] + infected
    rolesTable[ROLE_INFECTED] = 0
end)

end` that you don't see if there is an infected if you are using the rolesetup addon

Alf21 commented 5 years ago

This is automatically improved in the next update (this weekend). But ty anyway!