Comments (3)
我一直设为 0 的...
你会改的话欢迎 PR 我懒
from soucemodplugins.
改我是不会改.
我游戏都才刚玩一百多小时.
不过我看到
类似这种黑白检查的插件里面有黑白判断.
https://forums.alliedmods.net/showthread.php?t=317956
他单独写了一个函数看上去是取虚血.
float GetTemporaryHealth(int client)
{
float fTempHP = GetEntPropFloat(client, Prop_Send, "m_healthBuffer");
fTempHP -= (GetGameTime() - GetEntPropFloat(client, Prop_Send, "m_healthBufferTime")) * fPillsDecayRate;
return (fTempHP >= 0.0) ? fTempHP : 0.0;
}
然后
if (GetEntProp(victim, Prop_Send, "m_iHealth") + RoundToCeil(GetTemporaryHealth(victim)) >= GetEntProp(victim, Prop_Send, "m_iMaxHealth") / 2)
{
//正常的
}
else
{
//黑白了
}
from soucemodplugins.
另外window开服务器服务器名字.
不需要插件就可以支持中文.
我是之前开过AS:RD这个游戏的服务器,之前改过.
有两种办法.
1, 控制台启动服务器,
批处理启动(保存为unicode编码)
后面跟着服务器名字
srcds.exe -console -usegh -nomessagebox -nocrashdialog -game left4dead2 -tickrate 100 +map c1m2_streets +maxplayers 4 +hostport 27015 +hostname "楠趽電腦笨地測S"
然后装一个注册表补丁.
作用就是将服务器的控制台的编码强制修改为UNICODE.
https://www.yge.me/show/42.html
在游戏服务器列表中也是中文的了.
方法2就是
可以用notepad+ 这种工具,本地新建一个unicode编码的文件.
写入你要改成的服务器中文名字.
然后用notepad+的编码转换,转成简体中文GB2312编码,转换后,文字会变成乱码.没关系,
众所周知,乱乱得正.
然后插入服务器名字.(在不打前面方法一说的注册表补丁的情况下.)
服务器名字这样也支持中文.
建议方法一.比较方便.一劳永逸.
好处就是,我可以开多个服务器,每个服务器名字都可以不一样.
from soucemodplugins.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soucemodplugins.