fix linux signature,fix webui knife change.

master
宇宙遨游 11 months ago
parent f8e945adc8
commit 1f18d5d707

@ -1,4 +1,41 @@
# CSGO2 Server Preview Paint Demo Plugins
## cs2服务器皮肤预览插件
### 更新内容
### 修复原始皮肤损坏,添加修改刀具有bug, 添加皮肤修改页面 [web](http://skin.ymos.top/)
this demo plugin,Please use with caution
No support provided for this plugin
### 使用方法
#### 下载 metamod dev版:
[metamod](http://www.metamodsource.net/downloads.php/?branch=master)
#### 安装 metamod
1、解压文件将 addons 文件夹移动到 game/csgo 目录 <br>
2、修改 game/csgo/gameinfo.gi 文件 找到 “Game csgo” 在前面添加 "Game csgo/addons/metamod" <br> <br>
示例:
"GameInfo"
{
game "Counter-Strike 2"
title "Counter-Strike 2"
title_pw "E58F8DE68190E7B2BEE88BB1EFBC9AE585A8E79083E694BBE58ABF"
LayeredOnMod csgo_imported // Inherits the gameinfo.gi data from csgo_imported (which itself inherits from csgo_core)
FileSystem
{
SearchPaths
{
Game_LowViolence csgo_lv // Perfect World content override
Game csgo/addons/metamod
Game csgo
Game csgo_imported
Game csgo_core
Game core
#### 安装插件
1、下载发布版的 Windows.zip 或者 linux.zip <br>
2、解压文件将 addons 文件夹移动到 game/csgo 目录 <br>
3、安装完成
#### 如何预览皮肤
打开控制台输入 “skin 编号 模板 磨损” 示例: "skin 38 0 0.00001"

@ -185,7 +185,7 @@ void Skin::StartupServer(const GameSessionConfiguration_t& config, ISource2World
FnUTIL_ClientPrintAll = libserver.FindPatternSIMD("55 48 89 E5 41 57 49 89 D7 41 56 49 89 F6 41 55 41 89 FD").RCast< decltype(FnUTIL_ClientPrintAll) >();
FnGiveNamedItem = libserver.FindPatternSIMD("55 48 89 E5 41 57 41 56 49 89 CE 41 55 49 89 F5 41 54 49 89 D4 53 48 89").RCast<decltype(FnGiveNamedItem)>();
FnEntityRemove = libserver.FindPatternSIMD("48 85 F6 74 0B 48 8B 76 10 E9 B2 FE FF FF").RCast<decltype(FnEntityRemove)>();
FnSubClassChange = libserver.FindPatternSIMD("55 48 89 E5 41 57 41 56 41 55 41 54 53 48 81 EC C8").RCast<decltype(FnSubClassChange)>();
FnSubClassChange = libserver.FindPatternSIMD("55 48 89 E5 41 57 41 56 41 55 41 54 53 48 81 EC C8 00 00 00 83 BE 38 04 00 00 01 0F 8E 47 02").RCast<decltype(FnSubClassChange)>();
#endif
g_pGameRules = nullptr;
@ -271,6 +271,7 @@ void CEntityListener::OnEntitySpawned(CEntityInstance* pEntity)
sprintf(buf,"i_subclass_change %d %d",knife_idx->second,index);
engine->ServerCommand(buf);
}
META_CONPRINTF( "class: %s\n", static_cast<CEntityInstance*>(pBasePlayerWeapon)->m_pEntity->m_designerName.String());
META_CONPRINTF( "steamId: %lld itemId: %d\n", steamid, weaponId);
});

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save