TheStupidFufel
Участник
- Сообщения
- 9
- Реакции
- 0
Здравствуйте! Поставил я на сервер плагин [TF2] Model Manager 1.0.4.
Все установил, поставил модельки. Однако вместо них были ерорки, после я написал плагин, который будет скачивать нужные материалы для моделей, после этого они приняли нужную форму, но имели эмо-текстурки.
Вот что я начеркал (извините, я в это плохо разбираюсь)
и вот modellist
Модельки качал отсюда — RYTP Model pack - SteamWorkshop.download
По-другому скинуть не могу
Буду очень благодарен за помощь!
Все установил, поставил модельки. Однако вместо них были ерорки, после я написал плагин, который будет скачивать нужные материалы для моделей, после этого они приняли нужную форму, но имели эмо-текстурки.
Вот что я начеркал (извините, я в это плохо разбираюсь)
PHP:
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
public Plugin:myinfo =
{
name = "Dowloader Models",
author = "What?" ,
// description = "What?",
version = "1.0",
};
public OnPluginStart()
{
Download();
}
public OnMapStart()
{
Download();
}
public Action:Download()
{
//pocik
AddFileToDownloadsTable("models/player/pocik.mdl");
AddFileToDownloadsTable("models/player/pocik.vvd");
AddFileToDownloadsTable("models/player/pocik.dx90.vtx");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/coat_blue.vtm");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/coat_blue.vtf");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/coat_blue_invun.vmt");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/coat_blue_invum.vtf");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/coat_normal.vtf");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/coat_red.vtm");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/coat_red.vtf");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/coat_red_invun.vmt");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/coat_red_invum.vtf");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/hat_blue.vtm");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/hat_blue.vtf");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/hat_blue_invun.vmt");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/hat_blue_invum.vtf");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/hat_normal.vtf");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/hat_red.vtm");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/hat_red.vtf");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/hat_red_invun.vmt");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/hat_red_invum.vtf");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/pocik_blue.vtm");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/pocik_blue.vtf");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/posik_blue_invun.vmt");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/posik_blue_invum.vtf");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/pocik_normal.vtf");
AddFileToDownloadsTable("materials/models//rytp/player/pocik/pocik_red.vtm");
AddFileToDownloadsTable("materials/models//rytp/player/pocik/pocik_red.vtf");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/posik_red_invun.vmt");
AddFileToDownloadsTable("materials/models/rytp/player/pocik/posik_red_invum.vtf");
//pahom
AddFileToDownloadsTable("models/player/pahom.mdl");
AddFileToDownloadsTable("models/player/pahom.vvd");
AddFileToDownloadsTable("models/player/pahom.dx90.vtx");
AddFileToDownloadsTable("materials/models/player/pahom_body_blue.vmt");
AddFileToDownloadsTable("materials/models/player/pahom_body_blue.vtf");
AddFileToDownloadsTable("materials/models/player/pahom_body_blue_invun.vmt");
AddFileToDownloadsTable("materials/models/player/pahom_body_normal.vtf");
AddFileToDownloadsTable("materials/models/player/pahom_body_red.vmt");
AddFileToDownloadsTable("materials/models/player/pahom_body_red.vtf");
AddFileToDownloadsTable("materials/models/player/pahom_body_red_invun.vmt");
//popov
AddFileToDownloadsTable("models/player/popov_sport.mdl");
AddFileToDownloadsTable("models/player/popov_sport.vvd");
AddFileToDownloadsTable("models/player/popov_sport.dx90.vtx");
//epifancev
AddFileToDownloadsTable("models/player/epifancev.mdl");
AddFileToDownloadsTable("models/player/epifancev.vvd");
AddFileToDownloadsTable("models/player/epifancev.dx90.vtx");
//maslaev
AddFileToDownloadsTable("models/player/maslaev.mdl");
AddFileToDownloadsTable("models/player/maslaev.vvd");
AddFileToDownloadsTable("models/player/maslaev.dx90.vtx");
//gamaz
AddFileToDownloadsTable("models/player/gamaz.mdl");
AddFileToDownloadsTable("models/player/gamaz.vvd");
AddFileToDownloadsTable("models/player/gamaz.dx90.vtx");
}
и вот modellist
PHP:
//****************************************************************************
// PROPERTIES TABLE
//****************************************************************************
//
// The current maxium of items is 256. This is due the information being saved
// on a fixed array, but guess it's quite a lot.
//
// You can't use valve models, they'll look cruddy, probably even turn all hats invisible
// If you try, you're a loser.
//
// "model": self-explanatory. models/whatever/pants.mdl, for example.
//
// "flags":
// +------------------------+-------------------------------------------------------+
// | FLAGS | DESCRIPTION |
// +------------------------+-------------------------------------------------------+
// | USER_DEFAULT | Sets the wearable as default for common users |
// | ADMIN_DEFAULT | Sets the wearable as the admin default |
// | ADMIN_ONLY | No longer used, see the "admin" key |
// | HIDDEN | Item won't be shown on the list, but will be usable |
// | | through commands. |
// | INVISIBLE | Model isn't rendered. |
// | NO_ANIM | Model doesn't use class animations, and rotates |
// | | with player view yaw. |
// | HIDE_HATS | Hides any hats the player is wearing |
// | HIDE_WEAPONS | Makes weapons mostly invisible for the player |
// +------------------------+-------------------------------------------------------+
//
// "bodygroups": Fairly self-explanatory, probably useless and probably won't work right
// | HIDE_SCOUT_HAT
// | HIDE_SCOUT_HEADPHONES
// | HIDE_SCOUT_FEET
// | HIDE_SCOUT_DOGTAGS
// | SHOW_SOLDIER_ROCKET
// | HIDE_SOLDIER_HELMET
// | HIDE_SOLDIER_GRENADES
// | HIDE_PYRO_HEAD
// | HIDE_PYRO_GRENADES
// | SHOW_DEMO_SMILE //his sticky note
// | HIDE_DEMO_FEET
// | HIDE_HEAVY_HANDS
// | HIDE_ENGINEER_HELMET
// | SHOW_ENGINEER_ROBOTARM
// | HIDE_MEDIC_BACKPACK
// | SHOW_SNIPER_ARROWS
// | HIDE_SNIPER_HAT
// | SHOW_SNIPER_DARTS
// | SHOW_SPY_MASK
//
// "classes":
// +--------------------+
// | SCOUT |
// | SNIPER |
// | SOLDIER |
// | DEMOMAN |
// | MEDIC |
// | HEAVY |
// | PYRO |
// | SPY |
// | ENGINEER |
// +--------------------+
// | ALL |
// +--------------------+
//
// "teams":
// RED, BLU, or ALL
//
// "steamid":
// Put in steamid's separated by spaces to only allow that model to those steamids.
// STEAM_0:1:19100391 is a nice one.
//
// "admin":
// User must have ALL of these admin overrides (look up SourceMod Admin Overrides)
// to use this model.
//
//
//****************************************************************************
"Model Management - Item list"
{
"Pocik"
{
"model" "models/rytp/player/pocik.mdl"
"flags" "USER_DEFAULT REMOVE VALVE"
"classes" "HEAVY"
"teams" "ALL"
}
"Pahom"
{
"model" "models/player/pahom.mdl"
"flags" "USER_DEFAULT REMOVE VALVE"
"classes" "HEAVY"
"teams" "ALL"
}
"Popov sportivniy"
{
"model" "models/player/popov_sport.mdl"
"flags" ""
"classes" "MEDIC"
"teams" "ALL"
}
"Epifancev"
{
"model" "models/player/epifancev.mdl"
"flags" ""
"classes" "SOLDIER"
"teams" "ALL"
}
"Maslaev"
{
"model" "models/player/maslaev.mdl"
"flags" ""
"classes" "ENGINEER"
"teams" "ALL"
}
"Gamaz"
{
"model" "models/player/gamaz.mdl"
"flags" ""
"classes" "SCOUT"
"teams" "ALL"
}
}
Модельки качал отсюда — RYTP Model pack - SteamWorkshop.download
По-другому скинуть не могу
Буду очень благодарен за помощь!