Dissolve ctf_pvp_engine modpack into other modpacks
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 9 KiB After Width: | Height: | Size: 9 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 545 B After Width: | Height: | Size: 545 B |
Before Width: | Height: | Size: 542 B After Width: | Height: | Size: 542 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 601 B |
Before Width: | Height: | Size: 598 B After Width: | Height: | Size: 598 B |
Before Width: | Height: | Size: 776 B After Width: | Height: | Size: 776 B |
Before Width: | Height: | Size: 732 B After Width: | Height: | Size: 732 B |
Before Width: | Height: | Size: 666 B After Width: | Height: | Size: 666 B |
Before Width: | Height: | Size: 676 B After Width: | Height: | Size: 676 B |
Before Width: | Height: | Size: 618 B After Width: | Height: | Size: 618 B |
Before Width: | Height: | Size: 625 B After Width: | Height: | Size: 625 B |
Before Width: | Height: | Size: 549 B After Width: | Height: | Size: 549 B |
Before Width: | Height: | Size: 571 B After Width: | Height: | Size: 571 B |
Before Width: | Height: | Size: 826 B After Width: | Height: | Size: 826 B |
Before Width: | Height: | Size: 775 B After Width: | Height: | Size: 775 B |
Before Width: | Height: | Size: 632 B After Width: | Height: | Size: 632 B |
Before Width: | Height: | Size: 635 B After Width: | Height: | Size: 635 B |
Before Width: | Height: | Size: 690 B After Width: | Height: | Size: 690 B |
Before Width: | Height: | Size: 688 B After Width: | Height: | Size: 688 B |
Before Width: | Height: | Size: 622 B After Width: | Height: | Size: 622 B |
Before Width: | Height: | Size: 616 B After Width: | Height: | Size: 616 B |
Before Width: | Height: | Size: 812 B After Width: | Height: | Size: 812 B |
Before Width: | Height: | Size: 874 B After Width: | Height: | Size: 874 B |
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 544 B |
Before Width: | Height: | Size: 567 B After Width: | Height: | Size: 567 B |
Before Width: | Height: | Size: 657 B After Width: | Height: | Size: 657 B |
Before Width: | Height: | Size: 671 B After Width: | Height: | Size: 671 B |
215
mods/ctf_pvp_engine/.gitignore
vendored
|
@ -1,215 +0,0 @@
|
|||
#################
|
||||
## Eclipse
|
||||
#################
|
||||
|
||||
*.pydevproject
|
||||
.project
|
||||
.metadata
|
||||
bin/
|
||||
tmp/
|
||||
*.tmp
|
||||
*.bak
|
||||
*.swp
|
||||
*~.nib
|
||||
local.properties
|
||||
.classpath
|
||||
.settings/
|
||||
.loadpath
|
||||
|
||||
# External tool builders
|
||||
.externalToolBuilders/
|
||||
|
||||
# Locally stored "Eclipse launch configurations"
|
||||
*.launch
|
||||
|
||||
# CDT-specific
|
||||
.cproject
|
||||
|
||||
# PDT-specific
|
||||
.buildpath
|
||||
|
||||
|
||||
#################
|
||||
## Visual Studio
|
||||
#################
|
||||
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
|
||||
# User-specific files
|
||||
*.suo
|
||||
*.user
|
||||
*.sln.docstates
|
||||
|
||||
# Build results
|
||||
|
||||
[Dd]ebug/
|
||||
[Rr]elease/
|
||||
x64/
|
||||
build/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
|
||||
# MSTest test Results
|
||||
[Tt]est[Rr]esult*/
|
||||
[Bb]uild[Ll]og.*
|
||||
|
||||
*_i.c
|
||||
*_p.c
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.tmp_proj
|
||||
*.log
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
*.pidb
|
||||
*.log
|
||||
*.scc
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
*.cachefile
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*/
|
||||
*.[Rr]e[Ss]harper
|
||||
|
||||
# TeamCity is a build add-in
|
||||
_TeamCity*
|
||||
|
||||
# DotCover is a Code Coverage Tool
|
||||
*.dotCover
|
||||
|
||||
# NCrunch
|
||||
*.ncrunch*
|
||||
.*crunch*.local.xml
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress/
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish/
|
||||
|
||||
# Publish Web Output
|
||||
*.Publish.xml
|
||||
*.pubxml
|
||||
|
||||
# NuGet Packages Directory
|
||||
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
|
||||
#packages/
|
||||
|
||||
# Windows Azure Build Output
|
||||
csx
|
||||
*.build.csdef
|
||||
|
||||
# Windows Store app package directory
|
||||
AppPackages/
|
||||
|
||||
# Others
|
||||
sql/
|
||||
*.Cache
|
||||
ClientBin/
|
||||
[Ss]tyle[Cc]op.*
|
||||
~$*
|
||||
*~
|
||||
*.dbmdl
|
||||
*.[Pp]ublish.xml
|
||||
*.pfx
|
||||
*.publishsettings
|
||||
|
||||
# RIA/Silverlight projects
|
||||
Generated_Code/
|
||||
|
||||
# Backup & report files from converting an old project file to a newer
|
||||
# Visual Studio version. Backup files are not needed, because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
UpgradeLog*.htm
|
||||
|
||||
# SQL Server files
|
||||
App_Data/*.mdf
|
||||
App_Data/*.ldf
|
||||
|
||||
#############
|
||||
## Windows detritus
|
||||
#############
|
||||
|
||||
# Windows image file caches
|
||||
Thumbs.db
|
||||
ehthumbs.db
|
||||
|
||||
# Folder config file
|
||||
Desktop.ini
|
||||
|
||||
# Recycle Bin used on file shares
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# Mac crap
|
||||
.DS_Store
|
||||
|
||||
|
||||
#############
|
||||
## Python
|
||||
#############
|
||||
|
||||
*.py[co]
|
||||
|
||||
# Packages
|
||||
*.egg
|
||||
*.egg-info
|
||||
dist/
|
||||
build/
|
||||
eggs/
|
||||
parts/
|
||||
var/
|
||||
sdist/
|
||||
develop-eggs/
|
||||
.installed.cfg
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
.coverage
|
||||
.tox
|
||||
|
||||
#Translations
|
||||
*.mo
|
||||
|
||||
#Mr Developer
|
||||
.mr.developer.cfg
|
|
@ -1,23 +0,0 @@
|
|||
CTF PvP Engine
|
||||
==============
|
||||
|
||||
A highly modular framework for the Minetest game engine, in order to allow
|
||||
the development of Capture the Flag / City vs City games. Good for any
|
||||
sort of game where players can join teams - flags are optional, everything
|
||||
is highly configurable.
|
||||
|
||||
Licenses
|
||||
========
|
||||
|
||||
Created by: [rubenwardy](http://rubenwardy.com/).
|
||||
Copyright (c) 2013 - 2015
|
||||
**Code:** LGPL 2.1 or later.
|
||||
**Textures:** CC-BY-SA 3.0
|
||||
|
||||
ctf_flag/sounds/trumpet* by tobyk, license: CC-BY 3.0
|
||||
from: http://freesound.org/people/tobyk/sounds/26198/
|
||||
|
||||
Documentation
|
||||
=============
|
||||
|
||||
See the doc_* files, starting with doc_project_overview.md
|
|
@ -1 +0,0 @@
|
|||
ctf
|
|
@ -1,28 +0,0 @@
|
|||
-- This mod is used to protect nodes in the capture the flag game
|
||||
ctf.register_on_init(function()
|
||||
ctf.log("chat", "Initialising...")
|
||||
|
||||
-- Settings: Chat
|
||||
ctf._set("node_ownership", true)
|
||||
end)
|
||||
|
||||
local old_is_protected = minetest.is_protected
|
||||
|
||||
function minetest.is_protected(pos, name)
|
||||
if not ctf.setting("node_ownership") then
|
||||
return old_is_protected(pos, name)
|
||||
end
|
||||
|
||||
local team = ctf.get_territory_owner(pos)
|
||||
|
||||
if not team or not ctf.team(team) then
|
||||
return old_is_protected(pos, name)
|
||||
end
|
||||
|
||||
if ctf.player(name).team == team then
|
||||
return old_is_protected(pos, name)
|
||||
else
|
||||
minetest.chat_send_player(name, "You cannot dig on team "..team.."'s land")
|
||||
return true
|
||||
end
|
||||
end
|
|
@ -1,52 +0,0 @@
|
|||
## Players
|
||||
|
||||
Commonly called tplayer (may be called data or player in old code).
|
||||
Player name is commonly called name (but may be called other things in older code).
|
||||
|
||||
```lua
|
||||
ctf.players = {
|
||||
username = (player_table)
|
||||
}
|
||||
|
||||
(player_table) = {
|
||||
name = "username",
|
||||
team = "teamname",
|
||||
auth = false
|
||||
-- true if the player is a team admin. Team admins can change team settings.
|
||||
-- See ctf.can_mod()
|
||||
-- Note that priv:ctf_admin can also change team settings
|
||||
}
|
||||
```
|
||||
|
||||
## Teams
|
||||
|
||||
Commonly called team.
|
||||
Team name is commonly called tname (but may be called team in old code).
|
||||
|
||||
```lua
|
||||
ctf.teams = {
|
||||
teamname = (team_table)
|
||||
}
|
||||
|
||||
(team_table) = {
|
||||
data = {
|
||||
name = "teamname",
|
||||
color = "teamcolor" -- see ctf_colors
|
||||
},
|
||||
flags = {
|
||||
(flag_table), (flag_table)
|
||||
},
|
||||
players = {
|
||||
username1 = (player_table),
|
||||
username2 = (player_table)
|
||||
},
|
||||
spawn = { x=0, y=0, z=0 }
|
||||
-- fallback team spawn. Read by ctf.get_spawn() and overriding functions
|
||||
-- Don't use directly, instead call ctf.get_spawn("teamname")
|
||||
}
|
||||
|
||||
(flag_table) = {
|
||||
x=0, y=0, z=0,
|
||||
flag_name = "Capital" -- human readable name
|
||||
}
|
||||
```
|
|
@ -1,70 +0,0 @@
|
|||
# Welcome
|
||||
|
||||
The aim of CTF_PvP_Engine is to provide a base to any subgame which uses the
|
||||
concepts of teams. Flags are a plugin mod, so it isn't CTF as such.
|
||||
|
||||
# Modules in CTF_PvP_Engine
|
||||
|
||||
## hudkit
|
||||
|
||||
A support library to make the HUD API nicer.
|
||||
WTFPL.
|
||||
|
||||
## ctf
|
||||
|
||||
Requires hudkit. Support for chatplus.
|
||||
Core framework, players, teams, diplomacy, hud and gui.
|
||||
|
||||
* core - adds saving, loading and settings. All modules depend on this.
|
||||
* teams - add the concepts of teams and players. All modules except core depend on this.
|
||||
* diplomacy - adds inter team states of war, peace and alliances.
|
||||
* gui - adds the team gui on /team. Allows tabs to be registered.
|
||||
* hud - adds the name of the team in the TR of the screen, and sets the color
|
||||
|
||||
## ctf_chat
|
||||
|
||||
Requires ctf. Support for chatplus.
|
||||
Chat commands and chat channels.
|
||||
|
||||
## ctf_colors
|
||||
|
||||
Requires ctf. Support for 3d_armor.
|
||||
Adds player colors.
|
||||
|
||||
* gui - settings form
|
||||
* hud - team name color, player skin color, nametag color
|
||||
* init - table of colors
|
||||
|
||||
## ctf_flag
|
||||
|
||||
Requires ctf and ctf_colors. Support for chatplus.
|
||||
Adds flags and flag taking.
|
||||
|
||||
* api - flag callbacks, flag management (adding, capturing, updating), flag checking (asserts)
|
||||
* flag_func - functions for flag node definitions.
|
||||
* flags - flag node definitions.
|
||||
* gui - flag naming GUI, flag teleport GUI.
|
||||
* hud - waypoints, alerts ("Punch the enemy flag!" etc in top right)
|
||||
* init - get nearest flag, overrides ctf.get_spawn(), minimum build range, pick up sound, flag capture timeout.
|
||||
|
||||
## ctf_protect
|
||||
|
||||
Adds node ownership / protection to teams.
|
||||
Requires ctf_flag.
|
||||
|
||||
# Past/Other Mods
|
||||
|
||||
Please look
|
||||
|
||||
## ctf_turret
|
||||
|
||||
Adds auto-firing turrets that fire on enemies.
|
||||
See git history.
|
||||
|
||||
## Capture the flag
|
||||
|
||||
more mods available in [capture the flag](http://github.com/rubenwardy/capturetheflag/).
|
||||
|
||||
* ctf_match - adds the concept of winning, match build time,
|
||||
and reseting the map / setting up a new game.
|
||||
Requires ctf_flag
|
|
@ -1,60 +0,0 @@
|
|||
# ctf
|
||||
|
||||
| name | default value | description |
|
||||
| -------------------------- | ------------- | ---------------------------------------------------------------- |
|
||||
| allocate_mode | 0 | 0=off, 1=firstnonfullteam, 2=RandomOfSmallestTwo, 3=SmallestTeam |
|
||||
| autoalloc_on_joinplayer | true | Trigger auto alloc on join player |
|
||||
| default_diplo_state | "war" | "war", "alliance" or "peace" |
|
||||
| diplomacy | true | Is diplomacy enabled |
|
||||
| friendly_fire | true | True if players can't hit other players on their team |
|
||||
| maximum_in_team | -1 | Player cap |
|
||||
| players_can_change_team | true | |
|
||||
| hud | true | Enable HUD |
|
||||
| gui | true | Enable GUI |
|
||||
| gui.team | true | Whether to show team gui (/team) |
|
||||
| gui.team.initial | "news" | Initial tab |
|
||||
| gui.tab.diplo | true | Show diplo tab |
|
||||
| gui.tab.news | true | Show news tab |
|
||||
| gui.tab.settings | true | Show settings tab |
|
||||
| spawn_offset | {x=0, y=0, z=0} | Offset of static spawn-point from team-base |
|
||||
|
||||
# ctf_chat
|
||||
|
||||
| name | default value | description |
|
||||
| -------------------------- | ------------- | ---------------------------------------------------------------- |
|
||||
| chat.default | "global" | "global" or "team" |
|
||||
| chat.global_channel | true | |
|
||||
| chat.team_channel | true | |
|
||||
|
||||
# ctf_colors
|
||||
|
||||
| name | default value | description |
|
||||
| -------------------------- | ------------- | ---------------------------------------------------------------- |
|
||||
| colors.nametag | true | Whether to colour the name tagColour nametag |
|
||||
| colors.nametag.tcolor | false | Base nametag colour on team colour |
|
||||
| colors.skins | false | Team skins are coloured |
|
||||
|
||||
# ctf_flag
|
||||
|
||||
| name | default value | description |
|
||||
| -------------------------- | ------------- | ---------------------------------------------------------------- |
|
||||
| flag.alerts | true | Prompts like "X has captured your flag" |
|
||||
| flag.alerts.neutral_alert | true | Show prompt in neutral state, ie: "attack and defend!" |
|
||||
| flag.allow_multiple | true | Teams can have multiple flags |
|
||||
| flag.capture_take | false | Whether a player needs to return flag to base to capture |
|
||||
| flag.drop_time | 420 | Time in seconds before a player drops the flag they're holding |
|
||||
| flag.drop_warn_time | 60 | Warning time before drop |
|
||||
| flag.nobuild_radius | 3 | Area around flag where you can't build |
|
||||
| flag.names | true | Enable naming flags |
|
||||
| flag.protect_distance | 25 | Area protection distance |
|
||||
| flag.waypoints | true | Enable waypoints to flags |
|
||||
| flag.crafting | false | Enable the crafting of flags |
|
||||
| gui.tab.flags | true | Show flags tab |
|
||||
| gui.team.teleport_to_flag | true | Enable teleport to flag button in flags tab |
|
||||
| gui.team.teleport_to_spawn | false | Enable teleport to spawn button in flags tab |
|
||||
|
||||
# ctf_protect
|
||||
|
||||
| name | default value | description |
|
||||
| -------------------------- | ------------- | ---------------------------------------------------------------- |
|
||||
| node_ownership | true | Whether node protection per team is enabled |
|