Mads' Resource Documentation
  • 📺Youtube
  • 🤝Discord
  • ⭐Tebex
  • 👨‍💻GitHub
  • 👋Welcome!
  • General Info
    • ❓Questions and Answers
      • Is X script locked/encrypted?
      • I need support, where can I reach out?
      • How do I update my server artifacts?
      • How do I transfer a script from one account to another?
      • How do I set my game build?
    • ⚠️Common Problems
      • You lack the required entitlement
      • Failed to verify protected resource
      • Could not find dependency /assetpacks for resource
  • Resources
    • 🪑Sit Anywhere
      • Adding Custom Models
      • Falling Through the Map
      • Exports
      • Events
    • 🚁Helicopter Camera
      • Adding custom helicopters
      • Moving the UI above the minimap
      • Adding controller inputs
      • Controls
      • Exports
      • Events
    • 🚙Slash Tires
      • Exports
      • Events
    • 🕶️Stungrenade
      • Adding the Stungrenade as an item
      • Measures Against Cheaters
      • Exports
      • Events
    • 🪖CS Styled Killfeed
      • General Information
      • Exports - Client Side
      • Exports - Server Side
      • Examples
      • Adding Messages to the feed
      • Weapons List / Death Reasons
      • Changing the position if the killfeed
    • Crouch & Crawl
      • Exports
    • 🔫Taser Effect
    • 🔭Telescopes
    • 🩺Crutches
      • How to make the script compatible with ps-walkstyle
    • ⛽No Exploding Pumps
    • 👠Hookers
Powered by GitBook
On this page
  • Options
  • Adding Custom Death Reasons
  1. Resources
  2. CS Styled Killfeed

Weapons List / Death Reasons

In client.lua there is a table called "weapons". This list contains the options for each weapon/death reason. This is where the script goes when it decides for example whether or not the weapon can show headshots, noscopes etc.

Options

Here is a list of all options available for weapon/death reasons. All of the following need to be boolean values. It will fall back to the default if it is not specified.

  • image; the image of the death reason (image must be a .png file). (default: none, must be specified!)

  • ignoreDeath; if true it will be ignored the death and not show it in the feed. (default: false)

  • canHeadshot; if true it can show headshots (default: true)

  • canDriveBy; if true, it can show the drive-by icon (default: false)

  • canNoScope; if true, it can show the no-scope icon (default: false)

  • showDist; if true, it shows the distance between the killer in meters or feet (see config file) (default: false)

  • canSelf; if true, then the victim can also be displayed as the killer. (default: true)

Adding Custom Death Reasons

Adding custom death reasons is pretty easy. This can be used in combination with for example the OverwriteNextDeath function.

Example

['starvation'] = { image = "starvation", canSelf = false },

canSelf in this example is used so it will show that you starved to death, rather than that you "killed yourself" with starvation.

You can also add custom weapons to the list.

Example

[`WEAPON_HUNTINGRIFLE`] = { image = "hunting_rifle", canNoScope = true, showDist = true },
PreviousAdding Messages to the feedNextChanging the position if the killfeed

Last updated 1 year ago

🪖