Short Pallet

Short Pallet 1.1

Нет прав для скачивания

MayroN

Моделлер
Проверенный
Сообщения
42
Реакции
21
Баллы
8
C-подобный:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN "Short Pallet"
#define VERSION "1.1"
#define AUTHOR "www.effexo.net"

new const g_szPalletModel[] = "models/pallet.mdl"

public plugin_precache() {
    register_plugin(PLUGIN, VERSION, AUTHOR)

    new szMapName[9]
    get_mapname(szMapName, charsmax(szMapName))
    if(equal(szMapName, "de_dust2")) {
        precache_model(g_szPalletModel)

        createPalletEntity()
    }
}

createPalletEntity() {
    new iPalletEntityIndex = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"));

    if(!pev_valid(iPalletEntityIndex))
        return

    set_pev(iPalletEntityIndex, pev_classname, "short_pallet"); // exclude from the def ents

    new const Float: fPalletOrigin[3] = {578.92, 2367.28, 74.03}
    engfunc(EngFunc_SetOrigin, iPalletEntityIndex, fPalletOrigin)

    engfunc(EngFunc_SetModel, iPalletEntityIndex, g_szPalletModel)

    set_pev(iPalletEntityIndex, pev_solid, SOLID_BBOX)

    new const Float:fPalletAngle[3] = {0.0, 90.0, 45.0};
    set_pev(iPalletEntityIndex, pev_angles, fPalletAngle)

    new const Float: fMins[3] = {-30.0, -23.0, -25.0}
    new const Float: fMaxs[3] = {10.0, 20.0, 6.0}
    engfunc(EngFunc_SetSize, iPalletEntityIndex, fMins, fMaxs)
}
 

Вложения

@Kurtis,
Понял Вас Сер
Минимализм приветствуется,будем переоформлять
Но...уже завтра
 

Кто просматривает тему

Назад
Верх