civilnetworks-projects / SCP_Public_Development

1 stars 2 forks source link

Investigation Tool #627

Open auburncivilnetworks opened 4 months ago

auburncivilnetworks commented 4 months ago

Feature description

A SWEP that a player can use on a corpse after another player died. Provides information about the death.

Specification

Possible method of implementation:

A list of a fixed length (64, 128, etc) that stores entries created when players due under specific circumstances. For example, a structure similar to the JSON table below

[
  {
    "deathLocation": [
      "int",
      "int",
      "int"
    ],
    "timestamp": "int",
    "corpseName": "string",
    "corpseJobID": "int",
    "vwarReg": "string",
    "vwarRank": "string",
    "causeOfDeath": "string",
    "corpseEquipment": [   // A table of the items most recently used by the player on death
      "string",
      "string",
      "string"
    ],
    "killerName": "string",
    "killerJobID": "int"
  }
]

When generating the entries, the information gained should follow the tables below, with the first being the info gained from the corpse upon investigation, and the second being the information gained on the murderer(s) if done in view of a CCTV camera

Image

Image

As the tool will be mainly used by IA, many death events will go ignored, instead filling up the entry list with unneeded data and clearing valid entries earlier. Ignore the following player death events when generating entries:

Information used when populating the entry should be calculated on death and stored in the table. Each entry should have an expiry timer (e.g. 10 minutes) beyond which it is removed from the list. If the list is at max capacity, the oldest entries should be removed to make room for newer ones.

auburncivilnetworks commented 3 months ago

@KaptianCore