Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added gridwar/barriers.data
Binary file not shown.
25 changes: 25 additions & 0 deletions gridwar/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
local MAP_NAME = "GridWar"

local enabled = false


ctf_api.register_on_new_match(function ()
if ctf_map.current_map and ctf_map.current_map.name == MAP_NAME then
enabled = true
end
end)

ctf_api.register_on_match_end(function ()
if ctf_map.current_map and ctf_map.current_map.name == MAP_NAME then
enabled = false
end
end)

minetest.register_on_player_hpchange(function(player, hp_change, reason)
if reason and reason.type == "fall" then
if enabled then
return hp_change * 0.5
end
end
return hp_change
end, true)
21 changes: 21 additions & 0 deletions gridwar/map.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
game_modes = return {"classes","nade_fight","classic"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
game_modes = return {"classes","nade_fight","classic"}
game_modes = return {"classes","classic"}

barrier_area = return {pos2={z=222,x=222,y=85},pos1={z=0,x=0,y=0}}
chests = return {{pos2={z=222,x=221,y=83.5},amount=40,pos1={z=114,x=114,y=16.5}},{pos2={z=110,x=110,y=83.5},amount=40,pos1={z=0,x=1,y=16.5}},{pos2={z=221,x=110,y=82.5},amount=40,pos1={z=112,x=0,y=16.5}},{pos2={z=108,x=222,y=83.5},amount=40,pos1={z=1,x=114,y=16.5}}}
phys_jump = 1
phys_gravity = 1
time_speed = 0
enable_shadows = 0.1
phys_speed = 1
skybox = gridwar_new
teams = local _={};_[1]="flag_pos";_[2]="enabled";return {blue={[_[1]]={z=195,x=27,y=30.5},pos2={z=112,x=110,y=-0.5},[_[2]]=true,pos1={z=221,x=1,y=84.5}},purple={[_[1]]={z=195,x=195,y=30.5},pos2={z=112,x=112,y=-0.5},[_[2]]=true,pos1={z=221,x=221,y=84.5}},green={[_[1]]={z=27,x=27,y=30.5},pos2={z=110,x=110,y=-0.5},[_[2]]=true,pos1={z=1,x=1,y=84.5}},orange={[_[1]]={z=27,x=195,y=30.5},pos2={z=110,x=112,y=-0.5},[_[2]]=true,pos1={z=1,x=221,y=84.5}}}
treasures = default:stone_with_mese;1;3;1;0.15;1;default:stone_with_iron;1;5;1;0.2;1;default:glass;50;99;2;0.3;1;more_liquids:enderium_source;1;3;1;0;1;
others =
initial_stuff = return {"default:pick_stone","ctf_ranged:pistol_loaded","default:stick 5","default:cobble 99"}
license = CC BY-SA 4.0
hint =
author = mpixel
start_time = 10000
name = GridWar
enabled = true
size = return {z=222,x=222,y=85}
map_version = 3
Binary file added gridwar/map.mts
Binary file not shown.
Binary file added gridwar/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gridwar/skybox/Back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gridwar/skybox/Down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gridwar/skybox/Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gridwar/skybox/Left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gridwar/skybox/Right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gridwar/skybox/Up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.