Skip to content

v1.0.1

Choose a tag to compare

@ALBAN-1776 ALBAN-1776 released this 29 Nov 03:54
· 13 commits to main since this release
5acafe2

๐ŸŽ„ Snow Plugin v1.0.1 - Update

โœจ What's New

๐ŸŒ Localization Support

Added full localization system! The plugin now supports multiple languages with easy-to-edit translation files.

Currently supported languages:

  • ๐Ÿ‡ฌ๐Ÿ‡ง English (en)
  • ๐Ÿ‡ท๐Ÿ‡บ Russian (ru)

Translation files are located in the lang/ folder and can be easily customized or extended with new languages.

๐Ÿ”ง Bug Fixes

Fixed player appearing from the sky

  • Issue: when activating an effect or after a player respawns from the sky
  • Solution: Improved particle creation sequence with proper parent attachment timing
  • Result: Snow particles now appear instantly at the correct position without visual glitches

๐ŸŽจ Code Improvements

  • Removed unnecessary offset_z configuration parameter for cleaner config files
  • Optimized particle creation logic using Server.NextFrame() for better synchronization
  • Enhanced code structure with better error handling

๐Ÿ“ฅ Installation

  1. Download the latest release
  2. Extract to addons/counterstrikesharp/plugins/SnowPluginCS2/
  3. Ensure the lang/ folder contains your desired language files
  4. Restart your server or reload the plugin

File structure:

SnowPluginCS2/
โ”œโ”€โ”€ SnowPluginCS2.dll
โ””โ”€โ”€ lang/
    โ”œโ”€โ”€ en.json
    โ””โ”€โ”€ ru.json

๐ŸŒ Adding New Languages

To add a new language:

  1. Create a new file in lang/ folder (e.g., de.json for German)
  2. Copy the structure from en.json
  3. Translate the messages
  4. Set your server's language in CS# config

Example translation file:

{
  "snow.enabled": "{Green}[Snow]{Default} Effect {Green}enabled",
  "snow.disabled": "{Red}[Snow]{Default} Effect {Red}disabled"
}

Available color tags: {Green}, {Red}, {Blue}, {Yellow}, {Default}, {White}, {Purple}, {Orange}


๐ŸŽฎ Usage

  • Toggle snow effect: !snow or css_snow in console
  • Player preferences are saved automatically
  • Effect persists through map changes and reconnections

๐Ÿ“‹ Changelog

v1.0.1

  • โœ… Added localization support (English & Russian)
  • โœ… Fixed snow particles spawning from sky
  • โœ… Removed offset_z config parameter
  • โœ… Improved particle attachment mechanism
  • โœ… Code optimization and cleanup

v1.0.0

  • ๐ŸŽ‰ Initial release