Skip to content

HD-Sprays

AMX Mod X plugin for Counter-Strike.

PluginCounter-Strike 1.6v1.5Views:12Downloads:68

Description

AMX Mod X plugin for Counter-Strike.

Adds functionality for players to draw high resolution sprays using models and sprites installed on the server. Plugin features:

  • API for flexible integration
  • display the nickname of the player who drew the spray
  • spray preview
  • support for submodels and skins
  • animation support (skeletal and frame animations)
  • sprite support
  • saving the spray selected by the player to the local nVault database by the steam_id

Settings

Cvars:

Cvar name

Default value

Description

hd_spray_light

0

Enables the spray highlighting.

hd_spray_lifetime

200.0

Time to disappear the drawn spray in seconds.

hd_max_sprays

32

Maximum number of sprays drawn (maximum number of created entities on the map). If the value is exceeded, the oldest drawn spray is deleted.

hd_spray_client_decal

1

Allow players to draw regular sprays (decals).

hd_spray_movable_surface

0

Allow players to draw sprays on moving entities.

hd_spray_intersects

1

Restricts draw sprays on over the other sprays.

hd_spray_show_owner

1

Enable display of player's nickname when aiming at a spray.

hd_spray_round_cleanup

0

Enable removal of all drawn sprays at the start of a round.

hd_spray_print_delay

0

Print the time until a new spray can be drawn. (0 - don't print, 1 - print in the center, 2 - print in the chat)

Spray configuration:

The configuration file is addons/amxmodx/configs/sprays.ini. Example configuration:

Text
; "name"         "model"              type  body  skin  framerate  width  height  scale  cost  access
"spray 1"        "spray_pack.mdl"     "n"   0     0     1.0        45.0   45.0    1.0    150   ""
"spray 2"        "spray_pack.mdl"     "n"   1     0     1.0        45.0   45.0    1.0    300   "t"
"animated spray" "animated_spray.mdl" "a"   0     0     10.0       40.0   45.0    1.0    500   "STEAM_0:1:11111111"

Parameter description:

  • name - spray name.
  • model - model name. Models with .mdl or .spr extension are allowed. Same models can be used on different sprays.
  • type - spray type (n - normal spray, a - animated spray).
  • body - submodel number (sprite frame).
  • skin - skin number.
  • framerate - frame rate for the animated spray.
  • width - spray width.
  • height - spray height.
  • scale - sprite scale.
  • cost - cost. This parameter can only be used via API.
  • access - access flags or player's steam_id. This parameter can only be used via API.

API

API is described in this file. An example with menu implementation is presented in plugin next21_hd_sprays_menu.sma. Open sprays menu is done with the command say /spray.

A menu with AES bonus support is available in plugin next21_hd_sprays_aes_menu.sma. For this to work, you must enable the AMXX module sqlite.

Spray generator

To quickly create sprays from a set of images, it is recommended to use the tool sprays_gen. Detailed description of the tool

Requirements

Authors

Changelog

  1. v1.5current

    • Added access by steam_id option • Added AES menu support • Added hd_spray_print_delay cvar • Added find_spray_by_name and check_spray_access native functions

  2. v1.4
  3. v1.2

Related

Pluginv1.8

Hats

AMX Mod X plugin for Counter-Strike. The plugin allows the player to wear hats on their heads. The main feature of this modification is the player's ability to choose a skin or a submodel of a headgear on his own and set which of them will be available exclusively to VIP players.

Pluginv0.3

Slot Machine

AMX Mod X plugin for Counter-Strike. The plugin allows you to place slot machines on the map and play them. The player places a bet and waits for a winning combination of symbols to appear. A victory is counted when a whole row or diagonal is filled with the same symbols.

Pluginv1.0

Costumes

This plugin adds costumes to your server; the models are compressed into one so as not to hit the server's limit. It can also be set up for ZombiePlague: to do so, uncomment the code // #define ZP_SUPPORT in the source and compile. Usage: /costumes - in chat to open the costumes menu…