Code Monkey home page Code Monkey logo

abcenchance's Introduction

ABCEnchance

A MetaHookSV plugin that introduces more instability and possible enhancements to the Sven Co-op.

"Enchance" means "Enchantment", look the icon 👉

Codacy Badge Downloads Repo Size Last Commit


⚠️ This plugin introduces more potential risks of instability to the game. and, due to ongoing development, may have a large difference between the screenshots and real plugin ⚠️

💥 USE AT YOUR OWN RISK 💥


🖥️ Install

  1. Download and install MetahookSV

  2. Install

    Automatic:

    1. Double Click ABCEnchanceInstaller.exe,then run game

    2. Edit svencoop/abcenchance/ABCEnchance.res files as you like.

    Manual:

    1. Download Build directory, put svencoop and svencoop_addon directory into game root. The results will be as follows:
        Sven Coop
        ├─svencoop
        │  ├─abcenchance
        │  │  ├─localize
        │  │  ├─mdl
        │  │  ├─shader
        │  │  ├─spr
        │  │  ├─tga
        │  │  ├─....
        │  │  ABCEnchance.res
        │  └─metahook
        │     └─plugins
        │       └─ABCEnchance.dll
        ├─svencoop_addon
        │  └─resource
        │     └─.....
        svencoop.exe
    
    1. Open svencoop/metahook/configs/plugins.lst, add ABCEnchance.dll as a new line. Please load the plugin before CaptionMod.

    2. Edit the res file in svencoop/abcenchance/ to your liking.

🏗️ Build

  1. clone or download MetahookSV

  2. clone or download repository

  3. copy ABCEnchance-master into MetaHookSv-master/Plugins

    Automatic:

    1. Run build-ABCEnchance.ps1 in PowerShell

    Manual:

    1. build glew or glew-debug

    2. Create NeteaseApi.h and NeteaseApi.cpp

    3. build repository


📤 Command

Command usage
+scaleradar Start scaling radar
-scaleradar Stop scaling radar
+ducktap Start ducktap
-ducktap Stop ducktap
models search player models

📊 CVars

CVar uses default range
hud_dynamic_background use dynamic background 1 0/1
--- --- --- ---
cl_autojump enable auto bhop 0 0/1
--- --- --- ---
hud_deathnotice use new death message 1 0~1
hud_deathnotice_time the death message keep time 6 0~9999
--- --- --- ---
cl_rainbowmenu Draw weapon menu in rainbow 0 0/1/2
--- --- --- ---
cl_itemhighlight Draw item high light 1 0/1
cl_itemhighlightrange Item high light range 344 0~500
--- --- --- ---
cl_dangerhealth Danger health value 45 0~9999
cl_dangerarmor Danger armor value 45 0~9999
cl_damageshock Enable shock pain indicator 0 0/1
cl_damageshock_factor shock pain indicator strong 0.015 0~99999
cl_damageshock_base min damage to show shock pain indicator 30 0~99999
--- --- --- ---
cl_radar Radar 1 0/1/2
cl_radarzoom Radar Zoom 2.5 0.0001~9999
cl_radarupdateint Radar image update interval 1 0-9999
--- --- --- ---
cl_playertitle Show Player name 1 0/1/2
cl_playertitle_danger Set danger health 30 any shit
--- --- --- ---
cl_crosshair Show dynamic crosshair 1 0/1
cl_crosshairautohide Auto hide crosshair when zoomed 1 0/1
cl_crosshairsize Size 24 0-999
cl_crosshairthickness Thickness 2 0-999
cl_crosshairgap Gap 16 0-999
cl_crosshairmultiple punch angle feedback multipiler 3 0-999
cl_crosshairalpha A 200 0-255
cl_crosshaircolor_r R 50 0-255
cl_crosshaircolor_g G 250 255
cl_crosshaircolor_b B 50 50
cl_crosshair_outline_draw Draw outline or not 1 0/1
cl_crosshair_outline Outline thickness 1 0-999
cl_crosshair_t T shape 0 0/1
cl_crosshairdot Draw center dot or not 0 0/1
--- --- --- ---
abc_bloodefx Enable blood efx 1 0/1
abc_bloodsprite_speed Efx bloodsprite speed 128 0-9999
abc_bloodsprite_num Efx new bloodsprite number 32 0-9999
abc_gaussefx Enable gauss efx 1 0/1
--- --- --- ---
cl_sideenable Enable side text panel for speed, score, etc. 1 0/1
cl_eccomenu Enable Ecco buymenu enhance 1 0/1
--- --- --- ---
cl_modellag View model lag 1 0/1
cl_modellag_value View model lag value 1.0 0-9999
cl_modelslide View model rotate when crouch 1 0/1
cl_modelslide_length View model rotate left offset 12 0-9999
cl_modelslide_height View model rotate down offset 12 0-9999
cl_modelslide_angle View model rotate degree 24 0-360
--- --- --- ---
cam_idealheight Change thirdperson camera height 0 -9999-9999
cam_idealright Change thirdperson camera right 0 -9999-9999
--- --- --- ---
hud_scoreboard_xxxxx scoreboard thing xxx xxx
hud_motd -1 close Motd, 0 vanillia motd, 1 new motd 1 0

🖼️ Images

🛑 These pictures contain old version images, which may be inconsistent with the actual version 🛑

👮 CSGO like Hud 🗿 Player name title and hp/ap bar
🛒 Enhanced Ecco buy menu 🔺 Dynamic indicator and dynamic crosshair
🗺️ Radar 🗳️ Voting menus that don't come out and gross you out when you're bunnyhopping
💀 Player death message ☢️ BMS style gauss laser
🪔 Item high light 😗 And some useless efx enchance

Acknowledgements:

This repository uses code from the following repositories:

  1. PrimeXT
  2. BugfixedHL-Rebased
  3. OpenAG
  4. CaptionMod
  5. CKF3
  6. hl1_source_sdk
  7. libvpx
  8. qrgen

abcenchance's People

Contributors

drabcofficial avatar gayd0n avatar hzqst avatar nooblch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

abcenchance's Issues

Radar doesn't show the map

It happens with the 3 latest releases (v20240309, v20240309a, v20240307) with Metahooksv latest release (v20240315a)
Doesn't work in any maps, even public and private (localhost) servers
Tried reinstalling ABCEnchance, Metahooksv, and Svencoop itself, didn't work
I don't know what causing it
cl_radar 1
cl_radar 2

listensever changelevel崩溃尚未真正修复

pull request #69 #70 是为了规避 [listenserver下使用changelevel会100%游戏崩溃的问题] 的临时方案。
changelevel爆炸的原因当时看是playertrace update报访问冲突(野指针?)的问题
~B 9F I8LH6UAQ{~XPW3T1U

目前临时方案为在PlayerTracer::Update()中增加local orgin判断为(0, 0, 0)时直接return:
AS2G$9FGU`)2SAYL}}AVM4T

这虽然暂时规避掉了changelevel爆炸,但这会让trace一直跑不仅去导致雷达、Egon effect、第三人称准星等功能全部损坏。
故需要找到其它方案从根本上解决listenserver changlevel必定崩溃的问题

CVar to hide $ in csgo hud

A CVar to hide $ (money) in the csgo hud.

Or maybe enable eccocheck by default and only show it when ecco was detected.

English localization for HUD DeathMsg

"Language" "English" in Localize.txt is actually Chinese.

Quick attempt on translating:

"lang"
{
"Language" "English"
"Tokens"
{
"DeathMsg_ConsolePrint" "%s was killed by %s (%s)\n"
"DeathMsg_Suicide" "suicide"
"DeathMsg_MonsterKill" "killed"
"DeathMsg_DMGType_0" "killed"
"DeathMsg_DMGType_1" "crushed"
"DeathMsg_DMGType_2" "shot"
"DeathMsg_DMGType_4" "chopped"
"DeathMsg_DMGType_8" "burned"
"DeathMsg_DMGType_16" "frozen"
"DeathMsg_DMGType_32" "fell"
"DeathMsg_DMGType_64" "blown up"
"DeathMsg_DMGType_128" "clubbed"
"DeathMsg_DMGType_256" "shocked"
"DeathMsg_DMGType_512" "sonic pulse"
"DeathMsg_DMGType_1024" "zapped"
"DeathMsg_DMGType_67108864" "launched"
"DeathMsg_DMGType_16384" "drowned"
"DeathMsg_DMGType_32768" "paralyzed"
"DeathMsg_DMGType_65536" "gassed"
"DeathMsg_DMGType_131072" "poisoned"
"DeathMsg_DMGType_262144" "irradiated"
"DeathMsg_DMGType_1048576" "toxified"
"DeathMsg_DMGType_2097152" "roasted"
"DeathMsg_DMGType_4194304" "frozen"
"DeathMsg_DMGType_8388608" "shelled"
"DeathMsg_DMGType_16777216" "snipered"

"Vote_DefaultMessage" "A vote was cast"
"Vote_DefaultYes" "Yes"
"Vote_DefaultNo" "No"

"Ecco_MessagePrefix" "$"
"Ecco_MessagePostfix" ""
"Ecco_DifferMessagePrefix" "$"
"Ecco_DifferMessagePostfix" ""
}
}

[BUG]计分栏偶尔会丢失某些人信息

2082ffb74f96543f212efec138a3dc44
上图图一,玩家信息(Robo Grunt)未进入计分板中

6a44f689e9635613623f42b1c1b4e44f
上图图而,玩家信息(暮光闪闪)未进入计分板中

这是很早就有的问题了。长时间观察下来触发条件依然不明。
测试服务器为:Null真伤服

[BUG]侧边栏的文字显示不完全

image
首先说明,cl_sideenable 0/1 已尝试过,无用
在Null真伤服使用"fireworks"指令会出现这样的情况,在老梦的经验服加点也会出现这样的情况。

[BUG]设置菜单出错

使用目前最新版metahook (v20230919b) 和 最新版ABCEnhance (v20230921)进行测试。
在主界面点击"设置-音频"及"设置-视频"中"高级..."选项,会导致菜单出错。
image

[BUG]使用滚轮进行切换武器操作时,无法跳过空的武器大类

背景:
拥有武器:撬棍、手枪、狙击枪
滚轮使用:只用滚轮下(但实际上滚轮上效果一样,但是在此处是为了控制变量)

具体流程及对比:
分支一:
按下数字键1(指选定目标武器大类,通常1为近战组)后,使用滚轮。
原版进行滚轮切换时,可以用滚轮从撬棍切换到手枪、再从手枪切换到狙击枪。
安装该插件后(保证cl_hud_csgo 1),可以用滚轮切换至手枪,但无法从手枪切换到狙击枪。
分支二:
不按下数字键1,直接使用滚轮。
则无论手持什么武器都会从撬棍开始选起。
继续使用滚轮,原版可以从撬棍切换至手枪,从手枪切换至狙击枪。
使用插件后,无法从手枪切换至狙击枪。

结论:
当cl_hud_csgo 1时,滚轮切换时无法跳过空的武器类(没有冲锋枪之类的话就没法用滚轮切换到狙击枪了)

Compatibility: HUD_fastswitch CVAR

Having HUD_fastswitch enabled combined with using the mod, the weapon menu still shows up when switching weapons – e.g., mouse wheel up/down.

This means that when the user presses Fire (e.g., mouse button 1), they'll instead switch weapon – again – when they intend to fire their weapon.

[BUG]物品发光范围疑似失效

物品高亮应当如READMECN.md中所示,但并不行。

确保cl_hud_csgo 1,且cl_itemhighlight 1

另外进行了自定义调整,但应该不会影响cl_wmenustyle 0;cl_hud_healthammo_style 0;cl_radar 0;cl_crosshair 0;cl_eccoenable 0

运行插件:

ABCEnchance.dll
CaptionMod.dll
Renderer.dll
BulletPhysics.dll
StudioEvents.dll
CommunicationDemo.dll
SCModelDownloader.dll
SteamScreenshots.dll

测试环境分支一:

服务器:Null服-RPG
地图:sc_titans
测试方式:
自然生成的武器并没有框,通过/buy购买的自定义武器没有框,通过/buy购买的原版SvenCoop的武器没有框,通过/buy购买的弹药没有框。

测试环境分支二:

服务器:本地服务器
地图:hl_c02_a2
测试方式:
寻找自然生成的物品,升降机前巴尼尸体周围的两个弹药没有框。

测试环境分支三:

服务器:贴吧服(注意头蟹)
地图:sc_egypt2
测试方式:
自然生成的武器并没有框,自然生成的弹药没有框,通过/buy购买的自定义武器没有框,通过/buy购买的原版SvenCoop的武器没有框,通过/buy购买的弹药没有框。

测试环境分支四:

服务器:Null服-真伤服
地图:leprechaun2
测试方式:
自然生成的医疗包和弹药没有框,`通过/buy购买的'各种武器和弹药没有框。


经过上述测试,判定物品发光失效。
推测应该和metahook的更新有关,还请检查。(因为在不久前,我还能通过购买多余的武器的方式看到发光框;虽说只要离远'丢失发光框'就算再靠近也看不见)

[BugAndSuggestion]一些无伤大雅的问题

无伤大雅的原因:在不使用目标功能时才会出错,而大部分人选择这个插件也是因为有那个功能。


一、准心

动态准心开启cl_crosshair 1的时候,将cl_hud_csgo调整为0会导致游戏自带的准心消失。
动态准心关闭后,cl_hud_csgo 0时不会导致原来的准心消失。

二、死亡提示

在另外做了一个死亡提示后,大概是为了避免雷达的干扰,又或是用时出现两个死亡提示过于累赘,所以将原游戏的死亡提示关闭了,这很好。
但cl_hud_csgo 0时,原游戏的死亡提示也不会出现,这令人难过。
推荐:再做一个死亡提示的开关,默认关闭即可。

还有个Echo问题,这个在[BUG]物品发光范围疑似失效 #21已进行阐述,不再重复。


总之是个相当优秀的模组,另外要是这个血条长度能够再匹配一些就更好了(我猜测是因为没有添加底纹,所以没有对照物,会感觉血条长度和实际血量大小不一样)

%language%.txt

They told me that the solution to this problem was to copy english.txt and rename it to %language%, but the problem has not been resolved.

I attach screenshots so you can see.

image

image

未能正常进入游戏

image
在装上Metahook和ABCEnchance后出现如上图情况,将ABCEnchance.dll从插件列表里移除后能正常打开,故推测为该插件问题。

安装的过程:
首先安装Metahook,利用其文件的"install-to-SvenCoop.bat"的一键安装,自动弹出插件列表,在第一行写入"ABCEnchance.dll"。
此后将abcenchance文件夹复制到目录steamapps\common\Sven Co-op\svencoop下,将ABCEnchance.dll复制到目录steamapps\common\Sven Co-op\svencoop\metahook\plugins下,将vpx.dll复制到目录steamapps\common\Sven Co-op下。(看了好几遍应该是和readme一样的)

打开游戏的过程:
从Steam打开Sven Co-op,进入游戏后黑屏,可以点击一些按钮,但在尝试连接服务器 或者 退出游戏时,将进行报错。

目录下出现mdmp为后缀的报错文件,不清楚其是否对debug有用,暂不上传。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.