mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-09 20:36:15 +00:00
Merge branch 'main' of https://github.com/IonicCheese/simple-shooter-game-fork
This commit is contained in:
commit
2926e6330e
6 changed files with 37 additions and 36 deletions
|
|
@ -75,6 +75,7 @@ function set_player_mode(player, mode) -- Set player mode (spectator, pre-match,
|
||||||
healthbar = true,
|
healthbar = true,
|
||||||
breathbar = true,
|
breathbar = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
elseif mode == "spectator" then
|
elseif mode == "spectator" then
|
||||||
privs.noclip, privs.fast, privs.fly, privs.interact, privs.debug = true, true, true, false, true
|
privs.noclip, privs.fast, privs.fly, privs.interact, privs.debug = true, true, true, false, true
|
||||||
|
|
||||||
|
|
@ -245,7 +246,6 @@ function end_match() -- End the match
|
||||||
listring[current_player;main]
|
listring[current_player;main]
|
||||||
]])
|
]])
|
||||||
|
|
||||||
|
|
||||||
player:set_properties({pointable = false})
|
player:set_properties({pointable = false})
|
||||||
|
|
||||||
set_player_mode(player, "normal")
|
set_player_mode(player, "normal")
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ core.register_on_joinplayer(function(player)
|
||||||
list[current_player;main;0,1.25;8,3;8]
|
list[current_player;main;0,1.25;8,3;8]
|
||||||
listring[current_player;main]
|
listring[current_player;main]
|
||||||
]])
|
]])
|
||||||
|
|
||||||
player:set_properties({pointable = false})
|
player:set_properties({pointable = false})
|
||||||
|
|
||||||
player:hud_set_flags({
|
player:hud_set_flags({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue