Skip to content

Commit

Permalink
Add data types and explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed Feb 10, 2021
1 parent 8b63f24 commit bde142a
Show file tree
Hide file tree
Showing 2 changed files with 326 additions and 105 deletions.
11 changes: 9 additions & 2 deletions docs/Messages.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Messages
========



# API Documentation: Messages

_[Link to NodeCG documentation for reference.](https://www.nodecg.dev/docs/classes/listenFor)_
Expand Down Expand Up @@ -30,6 +35,7 @@ nodecg.listenFor('message-name', 'nodecg-csgo-manager', (data) => {
## newPhase

When the round is in a new phase this will transmit the output as `newPhase:` + the phase name.

_No data is sent with this message_

### Possible messages
Expand All @@ -47,6 +53,7 @@ _No data is sent with this message_
## newBomb

When the bomb is in a new state this will transmit the output as `newBomb:` + the state name.

_No data is sent with this message_

### Possible messages
Expand Down Expand Up @@ -125,7 +132,7 @@ Message sent everytime a player is killed. Used for killfeeds.

## hlae:weaponFire

Used to show weapon fire on the mini map. Remember to not show if the weapon is a knife.
Used to show weapon fire on the mini map. Remember to not show if the weapon is a knife or grenade.

```JSON
{
Expand All @@ -143,4 +150,4 @@ Used to show weapon fire on the mini map. Remember to not show if the weapon is
},
"round": 2
}
```
```
Loading

0 comments on commit bde142a

Please sign in to comment.