[分享]飞刀插件
*****************************************************************************
* Version 1.0.1 - Date: 08/11/2004
*
* Original by -]ToC[-Bludy
*
* Upgraded to STEAM and ported to AMXx by: jtp10181 <jtp@jtpage.net>
* Homepage: http://www.jtpage.net
*
****************************************************************************
Admin Commands:
amx_tknives - Toggles Throwing Knives On and Off
Client Commands:
throw_knife - This is the command for everyone to throw knives
say /knifehelp - Brings up knifehelp menu to help players bind keys
say /throwingknives - Same as /knifehelp
Additional info:
- You must bind a key to throw_knife
- You can no longer drop your knives on command, only when you die
- Team Attack system dropped, but it will obey the server friendlyfire cvar
NEW FEATURES:
- New knife model, more effecient, smaller file size, easier to download
- New contact system, knife will stick to whatever they hit
- New code which is less CPU intensive, less bugs, server crashing seems to be eliminated.
DESCRIPTION:
It was brought to my attention a few days ago that with the update to the AMX forums the file attached to the bottom of the forum topic had only an .amx file and no custom model. This gave me the motivation to create a new model that was smaller and faster to download, and a brand new knife system to make the knives more realistic. It took a few server crashes to get the code right, but it payed off in the end. A few of my clan members and I played throwing knife darts on one of the players sprays to celebrate.
The knives work a lot better than before, and they are a lot of fun to play with. So get your knives out and go Have Fun
Changelog:
v1.0.1 - JTP10181 - 08/11/04
Some tweaks to make it work better on listenservers, changed engclient_cmd to client_cmd
v1.0 - JTP10181 - 07/05/04
Removed some unneeded return statements
Made it so the knives cannot be used before the round has started (freezetime)
Added some extra checks on variables to be safe
Redid the delay code so it did not use a task
Changed authid arrays to be 34 usable chars for future compatibility
v0.9.8 - JTP10181 - 06/08/04
Tweaked the help messages a little for the commands
Removed all \ line breaks, not supported anymore.
Somewhere I added the auto-switch feature but forgot to log it.
v0.9.7 - JTP10181 - 05/19/04
Upgraded MOTD box to STEAM compatibility
Fixed bugs that happened when amx_knifeammo is greater than amx_maxknifeammo
Made checks to keep amx_knifeammo from being set higher than amx_maxknifeammo
Started to reorganize code to make it easier to follow
Changed a lot of PLUGIN_HANDLED to PLUGIN_CONTINUE
Fixed bug with partial pickups not subtracting the correct ammount from the dropped ammo
Hopefully fixed bug that would sometimes kill all the knife entities in the middle of a round
Added logging to server logs for stats software
Fixed bugs with scores being updated wrong
Below v0.9.6 was maintained by -]ToC[-Bludy
************************************************************************/
I have permission from -]ToC[-Bludy to release new versions of this plugin.
Thanks to him for the models or whoever he got them from, they work great.
******** Engine Module REQUIRED ********
******** FUN Module REQUIRED ********
******** Model Pack REQUIRED ******** 具体怎么安装啊?里面2个MDL文件放哪?光加AMX文件没反应 楼主你东西到不少我佩服佩服,可是你每次都不介绍,请问是你懒还是你不懂啊~!??? 怎么装啊楼住 这就叫做不负责任!!!!! Post by dayanmao32
楼主你东西到不少我佩服佩服,可是你每次都不介绍,请问是你懒还是你不懂啊~!???
顶楼的英文里已经说的很明白了,自己研究一些吧。
而且看看我发贴的时间吧。快一年了。 建议楼主以后还是告知插件如何安装吧,毕竟菜鸟的每天都会增加。
MDL文件放入cstrike\models文件夹内
打开cstrike\addons\configs\plugins.ini,在最下面加入该插件的名字.amxx
如果还有声音,则放入cstrike\sound文件夹内。
在客户端,游戏里,按`呼出控制台,输入命令throw_knife 就可以飞刀了。
可以绑定到你的 飞刀到空格键。
按`呼出控制台,输入bind space "+jump;throw_knife" 按空格键就可以用飞刀了。 好复杂...........但也好想比较有趣哈哈. 微波炉非常感谢你的安装讲解很详细感谢~!我就是菜鸟,人都是从不会到会的~!学习中~! :byebye: 那用时候不是很麻烦
页:
[1]
2