Skip to content

Commit

Permalink
v1.3.2.116 - add CheckPoint goal (github issue #184) - have fun testing!
Browse files Browse the repository at this point in the history
  • Loading branch information
slipcor committed May 18, 2016
1 parent f3299e8 commit 6f246fc
Show file tree
Hide file tree
Showing 8 changed files with 455 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- v1.3.2.116 - add CheckPoint goal (github issue #184) - have fun testing!
- v1.3.2.115 - add "refillforkill" - restocks the inventory with the class items
- v1.3.2.114 - address github issue #191 - prevent NPE due to NULL item in class items
- v1.3.2.113 - add more debug to investigate fire charge ignition issues
Expand Down
1 change: 1 addition & 0 deletions doc/enhancements.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Goal | Description
------------- | -------------
[Beacons](goals/beacons.md) | Stand near beacons and claim them to win!
[BlockDestroy](goals/blockdestroy.md) | Destroy blocks (pre-installed)
[CheckPoints](goals/checkpoints.md) | Reach checkpoints in order to win (pre-installed)
[Domination](goals/domination.md) | Dominate flag positions (pre-installed)
[Flags](goals/flags.md) | Capture flags and bring 'em home (pre-installed)
[Food](goals/food.md) | Cook food and bring it home (pre-installed)
Expand Down
28 changes: 28 additions & 0 deletions doc/goals/checkpoints.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# CheckPoints

## Description

CheckPoints is designed for free for all game mode!

It requires you to set spawns that players have to reach, and in case they get lost, they can get back to the latest checkpoint with /pa checkpoint.

First player to reach every checkpoint up to the last (in order) wins!

## Setup

Spawns have to be added. In order to do that, use `/pa [arenaname] checkpoint [number]`. This sets checkpoint number [number].
Make sure you start with 0 and don't forget to add every single number, or else it will not be possible to win :P

## Config Settings

- cpclaimrange => how near need players to be? (default: 5)
- cplives => goal checkpoint index [0, 1, 2, ...] to reach
- cptickinterval => the amount of ticks to wait before checking for position (default: 20 = 1 second)

## Warnings

This game mode has to check for player's position. Based on the player and checkpoint count this can lag your server. But, how else should I determine a claimed checkpoint? :p

## Supported Game Modes

Free for all - Teams might work but.... no idea
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Users tutorials :

## Changelog

- v1.3.2.115 - add "refillforkill" - restocks the inventory with the class items
- v1.3.2.116 - add CheckPoint goal (github issue #184) - have fun testing!
- [read more](doc/changelog.md)

***
Expand Down
4 changes: 4 additions & 0 deletions src/net/slipcor/pvparena/core/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ public enum CFG {
GOAL_BLOCKDESTROY_BLOCKTYPE("goal.blockdestroy.blocktype", "IRON_BLOCK", false, "BlockDestroy"),
GOAL_BLOCKDESTROY_LIVES("goal.blockdestroy.bdlives", 1, "BlockDestroy"),

GOAL_CHECKPOINTS_CLAIMRANGE("goal.checkpoints.cpclaimrange", 5, "CheckPoints"),
GOAL_CHECKPOINTS_LIVES("goal.checkpoints.cplives", 10, "CheckPoints"),
GOAL_CHECKPOINTS_TICKINTERVAL("goal.checkpoints.cptickinterval", 20, "CheckPoints"),

GOAL_DOM_ANNOUNCEOFFSET("goal.dom.spamoffset", 3, "Domination"),
GOAL_DOM_CLAIMRANGE("goal.dom.claimrange", 3, "Domination"),
GOAL_DOM_LIVES("goal.dom.dlives", 10, "Domination"),
Expand Down
3 changes: 3 additions & 0 deletions src/net/slipcor/pvparena/core/Language.java
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,9 @@ public enum MSG {
GOAL_BLOCKDESTROY_SET("nulang.goal.blockdestroy.setflag", "Block set: %1%"),
GOAL_BLOCKDESTROY_TOSET("nulang.goal.blockdestroy.tosetflag", "Block to set: %1%"),

GOAL_CHECKPOINTS_SCORE("nulang.goal.checkpoints.score", "%1% &ereached checkpoint #%2%!"),
GOAL_CHECKPOINTS_YOUMISSED("nulang.goal.checkpoints.youmissed", "You missed checkpoint #%1%! This is #%2%"),

GOAL_DOMINATION_CLAIMING("nulang.goal.dom.claiming", "&eTeam %1% is claiming a flag!"),
GOAL_DOMINATION_CLAIMED("nulang.goal.dom.claimed", "&eTeam %1% has claimed a flag!"),
GOAL_DOMINATION_SCORE("nulang.goal.dom.score", "&eTeam %1% scored %2% points by holding a flag!"),
Expand Down
Loading

0 comments on commit 6f246fc

Please sign in to comment.