Skip to content

Commit

Permalink
Update commands.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Yozzaxia1311 committed Nov 13, 2020
1 parent 30b995b commit a3fb584
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions core/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,28 @@ convar["noclip"] = {
convar["etanks"] = {
helptext = "e-tanks in possession",
flags = {"cheat"},
value = 0
value = 0,
fun = function(arg)
convar.setValue("etanks", math.min(numberSanitize(arg), maxETanks), false)
end
}

convar["wtanks"] = {
helptext = "w-tanks in possession",
flags = {"cheat"},
value = 0
value = 0,
fun = function(arg)
convar.setValue("wtanks", math.min(numberSanitize(arg), maxWTanks), false)
end
}

convar["lives"] = {
helptext = "number of lives",
flags = {"cheat"},
value = 2
value = 2,
fun = function(arg)
convar.setValue("lives", math.min(numberSanitize(arg), maxLives), false)
end
}

convar["diff"] = {
Expand Down

0 comments on commit a3fb584

Please sign in to comment.