搜索
查看: 3287|回复: 10

[分享]飞刀插件

[复制链接]
发表于 2004-9-6 13:47:36 | 显示全部楼层 |阅读模式 来自 中国–广东–深圳
****************************************************************************
*
* 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 ********

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
发表于 2004-11-3 01:44:01 | 显示全部楼层 来自 中国–安徽–合肥
具体怎么安装啊?里面2个MDL文件放哪?光加AMX文件没反应
回复

使用道具 举报

发表于 2005-5-13 20:33:59 | 显示全部楼层 来自 中国–辽宁–大连
楼主你东西到不少我佩服佩服,可是你每次都不介绍,请问是你懒还是你不懂啊~!???
回复

使用道具 举报

发表于 2005-5-14 08:56:53 | 显示全部楼层 来自 中国–北京–北京–丰台区
怎么装啊楼住
回复

使用道具 举报

发表于 2005-5-14 16:08:31 | 显示全部楼层 来自 中国–云南–曲靖
这就叫做不负责任!!!!!
回复

使用道具 举报

 楼主| 发表于 2005-5-16 15:02:08 | 显示全部楼层 来自 中国–广东–深圳
Post by dayanmao32
楼主你东西到不少我佩服佩服,可是你每次都不介绍,请问是你懒还是你不懂啊~!???

顶楼的英文里已经说的很明白了,自己研究一些吧。

而且看看我发贴的时间吧。快一年了。
回复

使用道具 举报

发表于 2005-5-16 17:47:31 | 显示全部楼层 来自 中国–广东–广州–荔湾区
建议楼主以后还是告知插件如何安装吧,毕竟菜鸟的每天都会增加。

MDL文件放入cstrike\models文件夹内
打开cstrike\addons\configs\plugins.ini,在最下面加入该插件的名字.amxx
如果还有声音,则放入cstrike\sound文件夹内。

在客户端,游戏里,按`呼出控制台,输入命令throw_knife 就可以飞刀了。
可以绑定到你的 飞刀到空格键。
按`呼出控制台,输入bind space "+jump;throw_knife" 按空格键就可以用飞刀了。
回复

使用道具 举报

发表于 2005-5-17 03:08:30 | 显示全部楼层 来自 中国–广东–广州–荔湾区
好复杂...........但也好想比较有趣哈哈.
回复

使用道具 举报

发表于 2005-5-17 17:29:28 | 显示全部楼层 来自 中国–辽宁–大连
微波炉非常感谢你的安装讲解很详细感谢~!我就是菜鸟,人都是从不会到会的~!学习中~! :byebye:
回复

使用道具 举报

发表于 2005-5-30 10:32:03 | 显示全部楼层 来自 中国–福建–泉州–晋江市
那用时候不是很麻烦
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表