Missions

This documentation explains the structure of the missions.json file used in the K4Seasons plugin. This file defines the missions available in the system and their corresponding configurations.

Mission Object Structure

Name
Description
Example

Event

"EventPlayerDeath"

Target

The target property of the event used for mission tracking (e.g., the player responsible for the action).

"Userid"

EventProperties

Additional properties to filter or specify the event's conditions.

{ "Weapon": "ak47", "Headshot": true }

Map

Specifies the map where the mission is applicable. If null, it applies to all maps.

"de_dust2"

Type

The type of the mission (either personal or community-based).

"Personal" or "Community"

Name

The name or description of the mission.

Die 3 times on Dust2

AmountToComplete

The number of actions required to complete the mission.

3

RewardExperience

The amount of experience points awarded upon completing the mission.

1500

BattlePassOnly

Indicates whether the mission is exclusive to Battle Pass users.

false

Example Mission Objects

Personal Mission

{
  "Event": "EventPlayerDeath",
  "Target": "Userid",
  "Map": "de_dust2",
  "Type": "Personal",
  "Name": "Die 3 times on Dust2",
  "AmountToComplete": 3,
  "RewardExperience": 1500,
  "BattlePassOnly": true
}

Community Mission

{
  "Event": "EventPlayerJump",
  "Target": "Userid",
  "Type": "Community",
  "Name": "Jump 500,000 times as a community",
  "AmountToComplete": 500000,
  "RewardExperience": 60000,
}

Special Cases

If EventProperties is specified, the mission is only valid when the event properties match the provided criteria. You can find all property of any event at https://cs2.poggu.me/dumped-data/game-events/

{
    "Event": "EventPlayerDeath",
    "Target": "Attacker",
    "EventProperties": {
      "Weapon": "ak47",
      "Headshot": true
    },
    "Type": "Personal",
    "Name": "Kill 10 with AK47 headshots",
    "AmountToComplete": 10,
    "RewardExperience": 2000,
    "BattlePassOnly": true
  }

Last updated