v1.0.0-beta.4
Pre-release
Pre-release
-
Added the ability to communicate in game.
- Enter to type and send a message.
- When messages vanish can be set in
config.js
withCHAT_MESSAGE_DURATION
, defaults to 30000 milliseconds (30 seconds). - Comes with a basic moderation addon.
- The basic moderation addon adds:
- A simple rate limit if you send chat messages too quickly,
- A character limit,
- And bad words prevention
- The character limit can be modified in
index.html
andconfig.js
and you can toggle swearing in config - It lets you spam if you have
allowSpam
in your permissions. - It lets you swear if you have
allowBadWords
in your permissions.
-
Added
Events
attribute to the Addon Argument Object.- Includes 2 events:
spawn
,chatMessage
spawn
event fires when an entity of any kind spawns.spawn
's callback argument is the entity that spawned.chatMessage
event fires when a chat message is received from the client.chatMessage
's callback argument is an object which looks like this:{ message, socket, preventDefault }
.message
is the text message that is sent.socket
is the socket object (which containssocket.player
and that containsplayer.body
which is the player entity).preventDefault
is a function that if called, prevents the message from being sent out to everyone.
- Includes 2 events:
-
server/config.js
has been documented and commented.- Settings that do NOTHING have been removed.
- Each setting has been commented.
-
Added
io_stackGuns
controller.- Rotates itself to make the gun that is about to fire aim at
target
. - Has a
timeUntilFire
option, which determines how close a gun has to be to firing before the tank spins for it. - If it is 0, which it is by default, it doesn't do that check.
- Rotates itself to make the gun that is about to fire aim at
-
Updated Siege.
- Added Elite Trap Guard, Elite Spinner, Nest Warden, Nest Guardian and Kronos.
- Fixed a very specific wave generation crash edge case.
-
Fixed YET ANOTHER bug in
domination.js
.- Dominators turn to
TEAM_ROOM
if not killed by a player. - Fixes arena closers crashing the server.
- Dominators turn to
-
Cleaned up some code.
- General smaller code changes.
- Made
canvas.js
'sthis
reference less confusing.