1.此乃我天朝一13岁少年之笔~~
------分割线神马的最可爱啦------------
相信有许多许多许多(我说。。你到底有多少。。)的猴子都比较渴望自己能修改ZP插件,从而达到适合自己的愿望,但由于一些限制(反正不是18+神马的)导致不会修改
今天我就要教大家咋修改
如果我没记错的话。。貌似每个ZP4.3的插件都会附带他的源码。。就算没也没所谓。。反正我会发上来我自己修改的一个源码。。
下面是教程
-----我是分割线啦,看你妹啊----------
打开源码,我们会看见里面一大堆一大堆的英文,但是不鸟他。。直到找到这些为止
// Max BP ammo for weapons
new const MAXBPAMMO[] = { -1, 180, -1, 180, 1, 180, 1, 180, 180, 1, 180, 180, 180, 180, 180, 180, 180, 180,
180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, -1, 180 }
// Max Clip for weapons
new const MAXCLIP[] = { -1, 13, -1, 10, -1, 7, -1, 30, 30, -1, 30, 20, 25, 30, 35, 25, 12, 20,
10, 30, 120, 8, 30, 30, 20, -1, 7, 30, 30, -1, 50 }
// Amount of ammo to give when buying additional clips for weapons
new const BUYAMMO[] = { -1, 13, -1, 30, -1, 8, -1, 12, 30, -1, 30, 50, 12, 30, 30, 30, 12, 30,
10, 30, 30, 8, 30, 30, 30, -1, 7, 30, 30, -1, 50 }
// Ammo IDs for weapons
new const AMMOID[] = { -1, 9, -1, 2, 12, 5, 14, 6, 4, 13, 10, 7, 6, 4, 4, 4, 6, 10,
1, 10, 3, 5, 4, 10, 2, 11, 8, 4, 2, -1, 7 }
// Ammo Type Names for weapons
new const AMMOTYPE[][] = { "", "357sig", "", "762nato", "", "buckshot", "", "45acp", "556nato", "", "9mm", "57mm", "45acp",
"556nato", "556nato", "556nato", "45acp", "9mm", "338magnum", "9mm", "556natobox", "buckshot",
"556nato", "9mm", "762nato", "", "50ae", "556nato", "762nato", "", "57mm" }
// Weapon IDs for ammo types
new const AMMOWEAPON[] = { 0, CSW_AWP, CSW_SCOUT, CSW_M249, CSW_AUG, CSW_XM1014, CSW_MAC10, CSW_FIVESEVEN, CSW_DEAGLE,
CSW_P228, CSW_ELITE, CSW_FLASHBANG, CSW_HEGRENADE, CSW_SMOKEGRENADE, CSW_C4 }
// 武器名称
new const WEAPONNAMES[][] = { "", "P228 小手木仓", "", "Schmidt 小狙", "", "XM1014 连喷散弹木仓", "", "MAC-10 微型机关木仓", "AUG 步木仓",
"", "Dual Elite 双木仓", "FiveseveN 手木仓", "UMP 45", "SG-550 连狙", "Galil 步木仓", "Famas 步木仓",
"USP[警察]手木仓", "Glock[土匪]小木仓", "AWP 大狙", "MP5 微型机关木仓", "M249 重机关木仓",
"M3 单喷散弹木仓", "M4A1[警察] 机木仓", "TMP 微型机关木仓", "G3SG1 连狙", "", "Desert Eagle 沙漠之鹰",
"SG-552 步木仓", "AK-47 [土匪]机木仓", "", "P90 微型机关木仓" }
当然。。中文部分你可以无视。。
我们可以看到这里
// Max BP ammo for weapons
new const MAXBPAMMO[] = { -1, 180, -1, 180, 1, 180, 1, 180, 180, 1, 180, 180, 180, 180, 180, 180, 180, 180,
180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, -1, 180 }
max bp ammo for weapons的意思是武器的最大后备子弹数
你可以看到我这里全部设置了180。。也就代表全部武器都是180为最大后备子弹数
PS -1和1那些不用去鸟他们
只要把除了-1和1的数字都改成你想改的数就可以了。。
但要注意,相应的位置都对应着一把武器,至于哪里对哪里。。你就自己对着看就可以了
------看你妹啊,我是分割线-------------
好吧。。我把我自己改的源码发出来吧。。免得某些手长的人说要示例。。
-------我依旧是分割线--------------
恩。。最后教大家怎么编译SMA(源码)成AMXX吧。。
先把SMA丢进M:\Program Files\我的CS\cstrike\addons\amxmodx\scripting
然后开启compile
最后等他出了Press Enter to exit...
按下回车就可以了。。
然后去compiled文件夹里找你的AMXX就可以了
--------看这里的是猪!不就是分割线嘛!--------
恩。。教程结束。。话说我都看了三遍的My whole family thinks I'm gay
上面的那首歌是什么。。百度一下吧,最好是里昂版的。。