Jump to content

Recommended Posts

Posted

๐Ÿ“‹ Description

Plugin for Counter-Strike 1.6 that allows players to launch fireworks at the end of winning rounds. Fireworks can be launched automatically or manually by pressing a button, providing a fun way to celebrate team victory.


๐Ÿ“ฆ Installation

1. Required Files

Place the compiled plugin in:

cstrike/addons/amxmodx/plugins/

2. Plugin Activation

Add to addons/amxmodx/configs/plugins.ini:

amx_fireworks.amxx

3. Translation File

Place amx_fireworks.txt in:

cstrike/addons/amxmodx/data/lang/

4. Required Sprites

The plugin uses the following sprites (included in CS 1.6):

  • sprites/3dmflared.spr - firework model
  • sprites/laserbeam.spr - colored trail
  • sprites/fireworks.spr - explosion effect

โš™๏ธ Configuration

Method 1: Dedicated File (Recommended)

Create addons/amxmodx/configs/amx_fireworks.cfg:

// ========================================
//     FIREWORKS PLUGIN - CONFIGURATION
// ========================================

// Enable/Disable plugin
// 0 = Disabled | 1 = Enabled
amx_fireworks_enable "1"

// Fireworks for admins only
// 0 = Everyone | 1 = Admins only
amx_fireworks_admin_only "0"

// Required admin flag (if admin_only = 1)
// Available flags: a-z (example: "b" = reservation flag)
amx_fireworks_admin_flag "b"

// Fireworks launch type
// 0 = Automatic launch (every 0.6 seconds)
// 1 = E button (IN_USE)
// 2 = Attack/shoot button (IN_ATTACK) - RECOMMENDED
amx_fireworks_type "2"

// Chat messages
// 0 = Disabled | 1 = Enabled
amx_fireworks_message_enable "1"

Then add to addons/amxmodx/configs/amxx.cfg:

exec amx_fireworks.cfg

Method 2: Direct in amxx.cfg

Add the CVars directly at the end of addons/amxmodx/configs/amxx.cfg


๐ŸŽฎ How It Works

When Does It Activate?

  • Fireworks become available when a round ends
  • Only the winning team can launch fireworks
  • Automatically disabled at the start of the next round

Launch Modes

Mode 0 - Automatic

amx_fireworks_type "0"
  • Fireworks launch automatically from player's position
  • Interval: 0.6 seconds between each firework
  • Players don't need to do anything

Mode 1 - E Button (IN_USE)

amx_fireworks_type "1"
  • Players press E key to launch
  • Firework launches in the direction player is looking
  • Full control over launch timing

Mode 2 - Attack (IN_ATTACK) โญ RECOMMENDED

amx_fireworks_type "2"
  • Players shoot (left click) to launch
  • Firework launches in the direction player is looking
  • Most intuitive usage mode

๐ŸŽจ Visual Effects

Firework

  • Sprite: 3dmflared.spr (glowing orb)
  • Speed: 700 units/second
  • Trail: Random colored laser (random RGB)
  • Trail Duration: 0.9 seconds

Explosion

  • Sprite: fireworks.spr
  • Position: +200 units above impact point
  • Random Offset: ยฑ5 units on X/Y axis
  • Size: 15
  • Brightness: 200

๐Ÿ‘ฅ Admin Restrictions

Enable Restriction

amx_fireworks_admin_only "1"

Set Flag

amx_fireworks_admin_flag "b"

Common Flags:

  • a - immunity (kick/ban protection)
  • b - reservation (reserved slot)
  • c - amx_kick command
  • d - amx_ban command
  • e - amx_slay command
  • z - user (basic user access)

Example: For admins with full access, use flag "a" or "z"


๐Ÿ’ฌ Chat Messages

Displayed Messages:

On Activation (round end):

[Fireworks] Fireworks are now available!
[Fireworks] Press IN_ATTACK to launch! (or E (IN_USE) for mode 1)

On Deactivation (round start):

[Fireworks] Fireworks have been disabled!

Disable Messages:

amx_fireworks_message_enable "0"

๐Ÿ”ง Admin Commands (Console)

Change Settings Live:

amx_cvar amx_fireworks_enable 1
amx_cvar amx_fireworks_admin_only 0
amx_cvar amx_fireworks_type 2
amx_cvar amx_fireworks_message_enable 1

Check Current Settings:

amx_cvar amx_fireworks_enable

๐Ÿ“ Default Values

If you DON'T configure CVars, the plugin uses:

CVar Value Description
amx_fireworks_enable 1 Enabled
amx_fireworks_admin_only 0 Everyone
amx_fireworks_admin_flag "b" Reservation flag
amx_fireworks_type 2 Attack launch
amx_fireworks_message_enable 1 Messages enabled

๐Ÿ› ๏ธ Technical Requirements

Required AMXX Modules:

  • amxmodx - Core module
  • fakemeta - Entity manipulation

Check Modules:

In server console:

amxx modules

Should show:

[AMXX] Module: fakemeta loaded

AMXX Version:

  • Minimum: AMX Mod X 1.8.2
  • Recommended: AMX Mod X 1.8.3+ (for client_print_color)

๐Ÿ› Troubleshooting

Fireworks Don't Appear

โœ… Check:

  1. Plugin is in plugins.ini and is activated
  2. amx_fireworks_enable is set to 1
  3. fakemeta module is loaded
  4. Sprites exist in sprites/ folder

Only Admins Can Use (Unwanted)

โœ… Solution:

amx_cvar amx_fireworks_admin_only 0

Messages Don't Appear

โœ… Check:

  1. amx_fireworks_message_enable "1"
  2. amx_fireworks.txt file exists in data/lang/

Fireworks Won't Launch with Button

โœ… Check:

  • Are you on the winning team?
  • Has the round ended?
  • Does the type setting (amx_fireworks_type) match the button pressed?

๐Ÿ“Š Performance

Server Impact:

  • Minimal - uses native CS 1.6 sprites
  • Temporary entities - automatically deleted after impact
  • Optimized - autorelease interval prevents spam

Recommendations:

  • For servers with 20+ players: use type "1" or "2" (manual)
  • For small servers: type "0" (automatic) works perfectly

๐Ÿ“œ License and Credits

Author: [P]erfec[T] cr[@]s[H]
Version: 1.3
Compatibility: Counter-Strike 1.6 / AMX Mod X


๐ŸŽฏ Recommended Configurations

Maximum Fun (Public Servers):

amx_fireworks_enable "1"
amx_fireworks_admin_only "0"
amx_fireworks_type "2"          // Attack launch
amx_fireworks_message_enable "1"

Automatic Show:

amx_fireworks_enable "1"
amx_fireworks_admin_only "0"
amx_fireworks_type "0"          // Automatic launch
amx_fireworks_message_enable "1"

VIP/Premium Only:

amx_fireworks_enable "1"
amx_fireworks_admin_only "1"    // Admins only
amx_fireworks_admin_flag "b"    // Reservation flag
amx_fireworks_type "2"
amx_fireworks_message_enable "1"

๐Ÿ“ž Support

For questions or issues:

  1. Check this documentation
  2. Test with default settings
  3. Check logs: addons/amxmodx/logs/

Example to check if plugin is active:

amxx list

Should show: amx_fireworks.amxx


๐ŸŽ† Have fun with the fireworks! ๐ŸŽ†

round end fireworks.zip

  • alex changed the title to Round End Fireworks
×
×
  • Create New...