Skip to content

HD-Sprays

AMX Mod X plugin for Counter-Strike.

PluginCounter-Strike 1.6v1.5Views:0Comments:2

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

Comments

2
  1. Реквестую на доработку, хотят поддержку скинов, как я понял http://amx-x.ru/viewtopic.php?f=10&t=38295 1) поддержка скинов 2) выдача рандомного спрея при входе в игру 3) возможность замены звука

    1. если что уже готово, но тестится, так что делать не надо

Related

Данный плагин добавляет костюмы для вашего сервера, модели сжаты в одну дабы не давить на лимит сервера. Так же возможно настроить его для ZombiePlague, для этого раскомментируйте код // #define ZP_SUPPORT в исходнике и скомпилируйте. Использование: /costumes - в чате чтоб открыть меню костюмов…

Pluginv0.6 [23.07.2012]

Плагин HL Weapon Physics

Добавляет физику в игру, что прибавит реалистичности на ваш сервер. Поддерживаемые моды: Half-Life, CStrike1.6, CZero (протестированы на работоспособность) win & linux Демонстрация: Внимание! Перед компиляцией не забываем размещать все файлы по директориям! Все настройки плагина находятся в…

Любителям червей посвящается! С этим плагином Вы сможете разместить специальные спауны, на которых будут сбрасываться ящики с различными бонусами (как в игре Worms 3D). Для вызова меню введите "say /wb_spawn_menu". Что входит в плагин: * Анимированные модели ящиков из игры Worms 3D * Возможность…