Он и в ксго работаетДля кс го бы. Что-то совсем мало модулей для ксго в випе и шопе стали делать =(
Поддерживаемые игрыCS: Source , Проверю спасибо.Он и в ксго работает
Как бы все модули первоначально под ксго и идут, т.к уже все уходят с CSS...Смотреть надо внимательнее
дай знать если у тебя работает на ксго, у меня нетПоддерживаемые игрыCS: Source , Проверю спасибо.
{
g_iLaser = PrecacheModel("materials/sprites/laser.vmt");
g_iGlow = PrecacheModel("sprites/redglow1.vmt");
}
{
g_iLaser = PrecacheModel("materials/sprites/laserbeam.vmt");
g_iGlow = PrecacheModel("sprites/redglow1.vmt");
}
//SourceMod Batch Compiler
// by the SourceMod Dev Team
//// shop_laseraim.sp
//
// E:\Desktop\аа\sourcemod\addons\sourcemod\scripting\shop_laseraim.sp(44) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk.
//
//
// E:\Desktop\аа\sourcemod\addons\sourcemod\scripting\shop_laseraim.sp(45) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk.
//
//
// E:\Desktop\аа\sourcemod\addons\sourcemod\scripting\shop_laseraim.sp(51) : warning 234: symbol "FindSendPropOffs" is marked as deprecated: Use FindSendPropInfo instead, or HasEntProp if you just want to check for existence.
//
//
// E:\Desktop\аа\sourcemod\addons\sourcemod\scripting\shop_laseraim.sp(98) : error 180: function return type differs from prototype. expected 'void', but got 'int'
// E:\Desktop\аа\sourcemod\addons\sourcemod\scripting\shop_laseraim.sp(153) : error 180: function return type differs from prototype. expected 'void', but got 'int'
//
// 2 Errors.
//
// Compilation Time: 0,3 sec
// ----------------------------------------
Press enter to exit ...
//// shop_laseraim.sp
//
// shop_laseraim.sp(44) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk.
//
//
// shop_laseraim.sp(45) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk.
//
//
// shop_laseraim.sp(51) : warning 234: symbol "FindSendPropOffs" is marked as deprecated: Use FindSendPropInfo instead, or HasEntProp if you just want to check for existence.
//
//
// shop_laseraim.sp(98) : error 180: function return type differs from prototype. expected 'void', but got 'int'
// shop_laseraim.sp(153) : error 180: function return type differs from prototype. expected 'void', but got 'int'
//
// 2 Errors.
//
// Compilation Time: 0.14 sec
на 98 и 153 строке замените int на voidC-подобный://// shop_laseraim.sp // // shop_laseraim.sp(44) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk. // // // shop_laseraim.sp(45) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk. // // // shop_laseraim.sp(51) : warning 234: symbol "FindSendPropOffs" is marked as deprecated: Use FindSendPropInfo instead, or HasEntProp if you just want to check for existence. // // // shop_laseraim.sp(98) : error 180: function return type differs from prototype. expected 'void', but got 'int' // shop_laseraim.sp(153) : error 180: function return type differs from prototype. expected 'void', but got 'int' // // 2 Errors. // // Compilation Time: 0.14 sec
как скомпилирват >? извините за мой Руский ...я из Болгарии
Сделал, но так же ошибки 44,45,51 остались, что делать, никто не знает?на 98 и 153 строке замените int на void
Проверил, на CSGO не работает, или я криворукий.
Это наверное потому что в исходнике прописан
А по идеи нужноC++:{ g_iLaser = PrecacheModel("materials/sprites/laser.vmt"); g_iGlow = PrecacheModel("sprites/redglow1.vmt"); }
Но это мало вероятно.C++:{ g_iLaser = PrecacheModel("materials/sprites/laserbeam.vmt"); g_iGlow = PrecacheModel("sprites/redglow1.vmt"); }
При компиляции пишет:
C++://SourceMod Batch Compiler // by the SourceMod Dev Team //// shop_laseraim.sp // // E:\Desktop\аа\sourcemod\addons\sourcemod\scripting\shop_laseraim.sp(44) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk. // // // E:\Desktop\аа\sourcemod\addons\sourcemod\scripting\shop_laseraim.sp(45) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk. // // // E:\Desktop\аа\sourcemod\addons\sourcemod\scripting\shop_laseraim.sp(51) : warning 234: symbol "FindSendPropOffs" is marked as deprecated: Use FindSendPropInfo instead, or HasEntProp if you just want to check for existence. // // // E:\Desktop\аа\sourcemod\addons\sourcemod\scripting\shop_laseraim.sp(98) : error 180: function return type differs from prototype. expected 'void', but got 'int' // E:\Desktop\аа\sourcemod\addons\sourcemod\scripting\shop_laseraim.sp(153) : error 180: function return type differs from prototype. expected 'void', but got 'int' // // 2 Errors. // // Compilation Time: 0,3 sec // ---------------------------------------- Press enter to exit ...
это не ошибки, а предупреждения, исправлять желательно, но необязательно.Сделал, но так же ошибки 44,45,51 остались, что делать, никто не знает?
Небольшой мануальчик по ошибкам при компиляцииСделал, но так же ошибки 44,45,51 остались, что делать, никто не знает?
Номер ошибки | Описание ошибки | Решение | Источник |
238 | warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk. | Найти в .sp все FCVAR_PLUGIN и заменить их на 0 | |
234 | warning 234: symbol "GetClientAuthString" is marked as deprecated: Use GetClientAuthId | Найти в .sp все GetClientAuthString и заменить на GetClientAuthId и при этом после первой запятой в скобках добавить аргумент например, AuthId_Engine, | |
241 | warning 241: Array-based enum structs will be removed in 1.11 | предупреждение 241: структуры перечислений на основе массива будут удалены в 1.11 | - |
234 | warning 234 symbol getmaxclients is marked as deprecated: use maxclients variable instead. | GetMaxClients () заменить на MaxClients | - |
234 | warning 234: symbol "FindSendPropOffs" is marked as deprecated: Use FindSendPropInfo instead, or HasEntProp if you just want to check for existence. | FindSendPropOffs заменить на: FindSendPropInfo |
Эта штука создаёт шар на том кто целится, прямо на голове. Что не так координатами? Они оригинальны.это не ошибки, а предупреждения, исправлять желательно, но необязательно.
public void CreateLaser(int client, const char[] item)
{
int iColor[4];
float fLife, fWidth, fDotWidth, vieworigin[3], pos[3], clientpos[3];
if (kv.JumpToKey(item))
{
kv.GetColor4("color", iColor);
if (!iColor[0] && !iColor[1] && !iColor[2] && !iColor[3])
iColor = {255, 0, 0, 255};
fLife = kv.GetFloat("life", 0.1);
fWidth = kv.GetFloat("width", 0.12);
fDotWidth = kv.GetFloat("dot_width", 0.25);
GetClientAbsOrigin(client, vieworigin);
if (GetClientButtons(client) & IN_DUCK)
vieworigin[2] += 40;
else
vieworigin[2] += 60;
GetLookPos(client, pos);
float distance = GetVectorDistance(vieworigin, pos);
float percentage = 0.4 / (distance / 100);
float newPlayerViewOrigin[3];
newPlayerViewOrigin[0] = vieworigin[0] + ((pos[0] - vieworigin[0]) * percentage);
newPlayerViewOrigin[1] = vieworigin[1] + ((pos[1] - vieworigin[1]) * percentage) + 0.08;
newPlayerViewOrigin[2] = vieworigin[2] + ((pos[2] - vieworigin[2]) * percentage);
GetClientEyePosition(client, clientpos); // Получаем позицию головы
А нет версии без привязки к шопу? Чтобы для всех было доступно
У тебя вроде как код вообще другой) И я уже этот поставил, но он немного не такой как я хотел. Не подскажите подобный плагин, чтобы показывал луч без включения прицела
Вот скажите нам и узнаемЧет я запутался для ксго работает или нет?
Описание:
Поддерживаемые игры
- CS: Source (OrangeBox)
качаетеУ тебя вроде как код вообще другой) И я уже этот поставил, но он немного не такой как я хотел. Не подскажите подобный плагин, чтобы показывал луч без включения прицела
после чего удаляете или комментируете строку 90
чем больше тикрейт тем плавнее шлейф@White Wolf, спасибо) А можно как-то этот шлейф убрать? Получается если быстро навестись на цель то лазер пару миллисекунд доводится до цели