Skip to content

HL Weapon Physics Plugin

Adds physics to the game, which makes your server more realistic. Supported mods: Half-Life, CStrike1.6, CZero (tested to work) win & linux Demo: Attention! Before compiling, don't forget to put all files in their directories! All plugin settings are in the…

PluginCounter-Strike 1.6v0.6 [23.07.2012]Views:119Downloads:20

Description

Description:

Adds physics to the game, which makes your server more realistic.
Supported mods: Half-Life, CStrike1.6, CZero (tested to work) win & linux

Demo:

Attention!
Before compiling, don't forget to put all files in their directories! All the plugin's settings are in the includes!

Settings:

Cvars
hl_ArmouryEntityCount 1 // Не для HL. Кол-во энтитей в "armoury_entity"
hl_PhysicsDefaultGravity 2.0 // Гравитация для зарегистрированных классов (может быть разной у каждого предмета, если менять перед созданием нового)
hl_ThrowSpeedMultiple 13 // Мультипликатор скорости брошенного предмета при зажатой "e"

Macros (excluding/including code fragments)
When the plugin is attached, a class blocking file is created automatically (addons/amxmodx/configs/hl_weapon_physics.ini). It lists the classes that should be ignored ... A single line must not contain more than one class!

Pawn
#define Half_Life // hl || cs/csz	
#define BREAKABLE_REFLECT "func_breakable" // активирует рефлект класса на монстров и игроков
#define PUSH_MONSTERS // Толкает игроков(монстров) при прикосновении к ним физических придметов + наносит урон
#define ADMIN_FLAGS ADMIN_IMMUNITY // Флаги для доступа к меню "armoury_entity" - (ADMIN_IMMUNITY | ADMIN_BAN) ...
#define SOUNDS_ON // Включить звуки
#define WEAPON_THROWING_ON // Включить броски вооружения (RECOMMENDED! :D)
#define SPRITE "sprites/arrow1.spr" // спрайт - WEAPON_THROWING_ON
#define TRAILS_ON // Добавлять следы за брошенными предметами (при использовании "e") - WEAPON_THROWING_ON

// Настройки ниже только для CS / CSZ

#define zBot_on_server // Включите если у вас на сервере есть zBot (works on "cs/csz" ONLY!) Нужен плагин - "hamsandwich_zBot_FIX"
#define CLCMD_COMMAND "hl_WeaponPhysics_Menu" // Консольная команда - вызов меню
#define ARMOURY_ENTITY_RANDOMIZER // Включить рандомизатор для "armoury_entity"
#define PHYSICS_RENDERING // Включить рендеринг
#define SHOOT_GRENADES_ON // Включить стрельбу по гранатам, работает только в -> Cs/Csz
#define MESSAGE_ON // Включить сообщения о сбитых гранатах Cs - Csz Only! (shoot grenades)

Constants

Pawn
#define VECTOR_SUB 2.5 // Вычитаемый вектор при проверке "угла" земли - [2]
#define SEARCHING_RADIUS 5.0 // Поиск энтитей(физических) в этом радиусе
#define MAX_REFLECT_A_VELOCITY 192.0 // [0] && [2]
#define MAX_VELOCITY_MULTIPLE 2.5 // [0] && [1] - Мультипликатор скорости по осям [0] && [1] в момент получения урона, если предмет находится на наклонной поверхности
#define MAX_DAMAGE_RECEIVED 255.0
#define AVAILABLE_MOVETYPE (1 << MOVETYPE_TOSS) // Может быть - (1 << MOVETYPE_TOSS | 1 << MOVETYPE_FLY) ...
#define MAX_REFLECT_VELOCITY 192.0 // Максимальное ускорение при отскоке по оси - [2]
#define DAMAGE_DIVIDER 0.032 // Мультипликатор повреждений, при получении урона от выстрела
#define SOUND_HIT 0.5 // Громкость
#define SOUND_TOUCH 0.25 // Громкость
#define GROUND_TRACE_RESULT 0.65 // Угол повергности определяймый как - "Высокий уклон" Ось -> [2]
#define BLOCK_SOUND_BY_SPEED 128.0 // Минимальная скорость предмета, для эмитации звука 
#define COUNTS_TO_RESET 6 // Кол-во соударений предмета для активации кода -> hl_extensions (physics reflect)
#define PEV_DATA_SLOT pev_iuser2 // hl_extensions -> data, contain touch counts
#define PEV_GROUND_TYPE pev_iuser3 // ground type info -> '4' values, look -> // Ground type
#define PEV_JUMP_REDUCE pev_iuser4 // add velocity or not, depend from: 1)ground type 2)attacker
#define PEV_GROUND_DATA pev_vuser3 // entity ground data - contain ground trace result -> TR_vecPlaneNormal

Version history

v0.1 - v0.1c [02.08.2011]
1) first release + fixes

v0.2 - [04.08.2011]
1) added: realistic positioning relative to an inclined surface

v0.3 - [26.08.2011]
1) added a reaction to damage
2) added sounds
3) removed the "spin" cvar
4) fixed the "jump" cvar

v0.4 - [17.10.2011]
1) removed the sound cvar
2) added a reaction to shots

v0.4a - [23.10.2011]
1) added rotation of items around the axes

v0.4b - [08.11.2011]
1) added new sounds
2) added sparks

v0.4b1 - [09.11.2011]
1) added macro - SOUNDS
2) fixed macro - SPARKS
3) added macro - DEBUG

v0.4b2 - [17.11.2011]
1) fixed grenades! In cstrike :D
2) added functionality

v0.4b3 - [21.11.2011]
1) fixed the "stuck" bug
2) fixed class registration in - hl
3) added the ability to shoot at grenades in cs/csz

v0.5 - [9.12.2011]
1) added a macro that blocks messages about shot-down grenades (in cs/csz)
2) minor fix to shooting at grenades
3) fixed looping sounds
4) fixed a bug with the "sys_ticrate" cvar
5) changed cvars (damage, shoot)
6) now shooting at items and grenades can be excluded separately
7) new system for catching "stuck" items (realistic bounce effect)

v0.6 - [27.07.2012]
1) rewrote the code
2) added a fix for "armoury_entity": in a new round they appear in their original place
3) added reaction of physical items (currently basic, will be improved in the future)
4) added reaction: monsters / players / breakable items -> physical
5) added a menu for adjusting "armoury_entity"; all changes are automatically saved to the config(s) and loaded when the map loads, otherwise changes take effect in the new round
6) bug fixes

Source: http://amx-x.ru/viewtopic.php?f=12&t=5648

Credits

Authors: Turanga_Leela

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…