CollisionHook

Ядро плагина CollisionHook 1.0.0

Поддерживаемые игры
  1. CS: GO
Плагин предоставляет API для работы с коллизией между сущностями. Отсутствует зависимость от расширения в отличие от CollisionHook с AlliedModders.

В комплекте 2 модуля:
  1. [CH] Round End Collision - отключается коллизия у игроков в конце раунда. Пули пролетают сквозь игроков.
  2. [CH] [ZR] Humans Collision - отключается коллизия у людей.

C-подобный:
// note: any code in this forwards should be very performant, the game will use many filtered traces per player per game frame

/**
 * Called when the game is performing vphysics collision checks between entities
 * return something other than Plugin_Continue to have the game use the result parameter
 *
 * @param iEnt1                    Entity 1 index.
 * @param iEnt2                    Entity 2 index.
 * @param &bResult                Return value.
 *
 * @return                        Something other than Plugin_Continue
 *                                 to have the game use the result parameter
 */
forward Action CH_ShouldCollide(int iEnt1, int iEnt2, bool &bResult);

/**
 * Called when the game performs collision checks through traces (only for traces using filters)
 * return something other than Plugin_Continue to have the game use the result parameter
 *
 * @param iEnt1                    Entity 1 index. (client)
 * @param iEnt2                    Entity 2 index. (entity)
 * @param &bResult                Return value.
 *
 * @return                        Something other than Plugin_Continue
 *                                 to have the game use the result parameter
 */
forward Action CH_PassFilter(int iEnt1, int iEnt2, bool &bResult);
Требования
SM 1.11+
Установка
  1. Содержимое папки core => /sourcemod
  2. Скомпилировать необходимые модули => /plugins
Автор
xstage
Скачивания
139
Просмотры
1,613
Первый выпуск
Обновление
Оценка
0.00 звёзд 0 оценок

Другие ресурсы пользователя xstage

Сверху Снизу