|
使用register_touch(),提高效率;其它效果也考虑周全。 ======该插件只能在amxx 1.70(以后的版本再说)里面使用!(以前有人编写过这样的插件,只是效率不同)
(下面为源码前面部分的描述)
如果在游戏中只有一个C4炸弹,你就不需要 "#define MORE_THAN_ONE_BOMB"这一行。
如果想在CS 1。5下面使用。修改
// 是否定义为老版本游戏, 是为1,否为0
#define FOR_OLD_GAME_ENGINE 1
Command (命令): amx_ctpickupc4 ; 立刻让改变的参数起作用,否则等到下一局开始。
Cvar(参数) : amx_allowctpickupbomb ; 设置为1,让CT捡起C4炸弹;否则,CT不能捡起C4。
: amx_allowctplantbomb ; 设置为0,cT不能安置C4炸弹。
如果你只是改变参数,它们将直到下一局开始才生效。因为正常状态值保存在g_last...中。
/* Plugin generated by AMXX-Studio */
/*
If there is only one C4 bomb in the game, you do not need the line "#define MORE_THAN_ONE_BOMB".
Command : amx_ctpickupc4 ; Effect cvar changing immediately,not till new round.
Cvar : amx_allowctpickupbomb ; Set it to 1, let CTs pick up C4; else CT can't pick up C4.
: amx_allowctplantbomb ; Set it to 0,CTs can not plant the C4 time bomb.
If you change this cvar to 1 only, it dose not effect until new round begins.
beacause the real state value stored at g_last...
Changing log:
v1.7 fixed the problem : Not drop C4, when a CT with C4 dies; and remove CT's C4 when roud end.
v1.6 remove entity safest with VEN@amxx's help and change hudmessage
v1.5 remove the real C4 entity from the world with VEN@amxx's help.
v1.4 ....change a few
v1.3 Just written in normal and released
*/
下面的压缩包包含源码ctpickupc4.sma;语言部分ctpickupc4.txt;在amxx 1.70下编译的ctpickupc4.amxx |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|