Jump to content

Recommended Posts

Posted

Plugin Information

Plugin Name: Round End Sounds
Version: 0.0.2
Author: steams.ro
Game: Counter-Strike 1.6
Mod: AMX Mod X


Description

This plugin creates a cinematic experience at the end of each round, inspired by Counter-Strike Online (CSO). It plays a random music track and displays a custom viewmodel animation for all alive players when a round ends.


Features

✓ Multiple random music tracks at round end
✓ Custom viewmodel animation for alive players
✓ Automatic sound precaching
✓ Easy to add/remove songs
✓ Synchronized for all players


Installation

  1. Compile the plugin (.sma file)
  2. Place the compiled .amxx file in: addons/amxmodx/plugins/
  3. Add the plugin name to: addons/amxmodx/configs/plugins.ini
  4. Place the viewmodel file in: cstrike/models/
    • v_round_end.mdl
  5. Place the sound files in: cstrike/sound/round_end/
    • end_sound1.mp3
    • end_sound2.mp3
    • end_sound3.mp3
    • etc.
  6. Restart the server

File Structure

cstrike/
├── addons/amxmodx/plugins/
│   └── round_end_sounds.amxx
├── models/
│   └── v_round_end.mdl
└── sound/round_end/
    ├── end_sound1.mp3
    ├── end_sound2.mp3
    ├── end_sound3.mp3
    ├── end_sound4.mp3
    └── end_sound5.mp3

How to Add More Songs

Simply add new lines to the szSounds array in the source code:

new const szSounds[][] = {
   "round_end/end_sound1.mp3",
   "round_end/end_sound2.mp3",
   "round_end/victory_theme.mp3",     // New song
   "round_end/epic_music.mp3"         // New song
};

The plugin will automatically:

  • Count the number of songs
  • Precache all of them
  • Select randomly at each round end

How It Works

  1. At round end, the plugin detects the "Round_End" event
  2. It randomly selects one music track from the list
  3. For all connected players:
    • Stops any currently playing sounds
    • Plays the selected music track
  4. For alive players only:
    • Changes the viewmodel to v_round_end.mdl
    • Plays animation 0 of the model
    • Sets idle time to 5 seconds

Note: All players hear the same randomly selected song during that round.


Technical Details

  • Uses FakeMeta module for entity manipulation
  • Random selection using random() function
  • Static allocation for viewmodel string (optimization)
  • pev_viewmodel2 for first-person model display
  • SVC_WEAPONANIM message for animation synchronization

Requirements

  • AMX Mod X 1.8.2 or higher
  • FakeMeta module
  • Counter-Strike 1.6

Example Behavior

Round 1 ends → Randomly selects song 3 → All players hear end_sound3.mp3
Round 2 ends → Randomly selects song 1 → All players hear end_sound1.mp3
Round 3 ends → Randomly selects song 5 → All players hear end_sound5.mp3
Round 4 ends → Randomly selects song 2 → All players hear end_sound2.mp3


Credits

Original concept: Dias Pendragon, Freedo.m, OverGame
Multiple songs system: steams.ro


Support

For support or questions, visit: steams.ro


Last updated: November 2025

round_end_sounds.sma round_end_sounds.amxx v_round_end.mdl sound.zip

×
×
  • Create New...