mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-09 20:36:15 +00:00
Remove minimap access.. and downgrade the sniper class
This commit is contained in:
parent
7623c786b7
commit
98924f23a9
1 changed files with 10 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ function give_player_items(player)
|
|||
|
||||
if class == "sniper" then
|
||||
inv:add_item("main", "ctf_ranged:m200_loaded")
|
||||
inv:add_item("main", "default:sword_steel")
|
||||
inv:add_item("main", "default:sword_stone")
|
||||
inv:add_item("main", "ctf_ranged:ammo 100")
|
||||
elseif class == "assault" then
|
||||
inv:add_item("main", "ctf_ranged:ak47_loaded")
|
||||
|
|
@ -286,6 +286,11 @@ core.register_on_joinplayer(function(player)
|
|||
]])
|
||||
player:set_properties({pointable = false})
|
||||
|
||||
player:set_hud_flags({
|
||||
minimap = false,
|
||||
minimap_radar = false,
|
||||
})
|
||||
|
||||
if player:get_meta():get_string("class") == "" then
|
||||
player:get_meta():set_string("class", "assault")
|
||||
end
|
||||
|
|
@ -364,6 +369,10 @@ core.register_chatcommand("load", {
|
|||
return false, "-!- You must specify a map name!"
|
||||
end
|
||||
|
||||
if match_state == "pre_match" or match_state == "post_match" or match_state == "in_progress" then
|
||||
return false, "-!- Match is already in progress!"
|
||||
end
|
||||
|
||||
map_data = place_map(param)
|
||||
|
||||
return true, "-!- Map loaded!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue