Osker Lee 发表于 2008-1-7 16:55:58

求助:可以改变血花的颜色插件

这里有可以改变血花的颜色插件的下载地址:(GHW_Blood_Color.amxx)
http://www.dt-club.net/forum/thread/71/34354.htm?highlight=%E8%A1%80%E9%A2%9C%E8%89%B2

不过在使用这个插件的时候,我发现了个问题:其实只是血花飞溅部分的颜色变了,但喷到墙壁或者地面上的血花贴图还是红色的。我们知道,血花贴图在cstrike文件夹的decals.wad里(用Wally这个工具可以查看和修改wad类型的贴图文件),在不同的游戏里,血花贴图的颜色也是不尽相同的,如何通过编写代码来自定义decals.wad里血花贴图的颜色呢?(下面的代码是我从AMXX官方网上找到的,好象就是关于修改decals.wad里血花贴图颜色的代码。)
if(equal(modname, "cstrike"))
{
g_blood_decals = {0,190,191,192,193,194,196,197,204,205}
}
else if(equal(modname, "czero"))
{
g_blood_decals = {202,203,204,205,206,207,208,209,216,217}
}
else if(equal(modname, "dod"))
{
g_blood_decals = {203,204,205,206,207,208,209,210,217,218}
}
else if(equal(modname, "tfc"))
{
g_blood_decals = {194,195,196,197,198,199,200,201,208,209}
}
else if(equal(modname, "ts"))
{
g_blood_decals = {204,205,206,207,208,209,210,211,218,219}
}
else
{
g_blood_decals = {19,20,27,28,29,30,31,32,33,34}
}
页: [1]
查看完整版本: 求助:可以改变血花的颜色插件