搜索
楼主: 心静如水

能否请版主解决一下,关于烟雾弹的问题..........

[复制链接]
 楼主| 发表于 2008-3-13 14:16:45 | 显示全部楼层 来自 中国–广西–百色

回复: 能否请版主解决一下,关于烟雾弹的问题..........

谢谢....

再请帮忙加个设定在第8局和16局出现夜晚模式:
//****************************
#include <amxmodx>
#include <engine>

public plugin_init()
{
register_plugin("night","0.1","A.MI")
set_task(2520.0, "updatelights")
return PLUGIN_CONTINUE
}

public updatelights()
{
set_lights("a")
new msg[512]
format(msg, 511,"^x03【夜晚模式: 请买夜视仪并开启】^x01")
client_cmd(0,"spk misc/cvt_night0")
return PLUGIN_CONTINUE
}

public client_color(id,msg[]){
new playerslist[32],playerscount//,i
get_players(playerslist,playerscount,"c")
while(replace(msg,127,"0x01","^x01")){}
while(replace(msg,127,"0x02","^x02")){}
while(replace(msg,127,"0x03","^x03")){}
while(replace(msg,127,"0x04","^x04")){}
if(id==0){
message_begin(MSG_ALL, get_user_msgid("SayText"), {0,0,0},1)
write_byte(1)
write_string(msg)
message_end()

}
else{
message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
}

public plugin_precache() {
precache_sound( "misc/cvt_night0.wav")
}
回复

使用道具 举报

 楼主| 发表于 2008-3-13 15:21:08 | 显示全部楼层 来自 中国–广西–百色

回复: 能否请版主解决一下,关于烟雾弹的问题..........

啊.....出现烟雾不规则问题,如图:

本帖子中包含更多资源

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

×
回复

使用道具 举报

发表于 2008-3-13 15:57:46 | 显示全部楼层 来自 中国–甘肃–兰州

回复: 能否请版主解决一下,关于烟雾弹的问题..........

;Sprite Name   ;Size
"sprites/555puff.spr"           30
"sprites/666puff.spr"           30
注意smoke_sprites.ini文件里的数字,30表示的是spr图象显示的大小,建议设置小一些。
回复

使用道具 举报

 楼主| 发表于 2008-3-13 16:09:28 | 显示全部楼层 来自 中国–广西–百色

回复: 能否请版主解决一下,关于烟雾弹的问题..........

我是说它不是雾态的.....而是一闪一闪的.....什么回事呢?
回复

使用道具 举报

发表于 2008-3-13 16:27:25 | 显示全部楼层 来自 中国–甘肃–兰州

回复: 能否请版主解决一下,关于烟雾弹的问题..........

public smoke_explode(param[1],ent)
{
if(pev_valid(ent))
{
  static Float:origin2[3]
  pev(ent,pev_origin,origin2)
  static origin[3]
  origin[0] = floatround(origin2[0]) + random_num(-75,75)
  origin[1] = floatround(origin2[1]) + random_num(-75,75)
  origin[2] = floatround(origin2[2]) + random_num(0,65)
  message_begin(MSG_BROADCAST,SVC_TEMPENTITY,origin)
  write_byte(3)
  write_coord(origin[0]) // start position
  write_coord(origin[1])
  write_coord(origin[2])
  write_short(smokesprites[param[0]])
  write_byte(smokesprites_size[param[0]])  // byte (scale in 0.1's) 188
  write_byte(5)  // byte (framerate)
  write_byte(14)  // byte flags
  message_end()
}
}
这是因为插件里定义了烟雾弹爆炸后动态spr烟雾的帧率,所以才会一闪一闪的,其实并不是什么严重的问题。
回复

使用道具 举报

发表于 2008-4-6 12:44:50 | 显示全部楼层 来自 中国–广东–深圳–罗湖区

回复: 能否请版主解决一下,关于烟雾弹的问题..........

你好osker lee
我一直是laoyou的fans

我按照你的方法把
//public smoke_explode(param[1],ent)
//{
//if(pev_valid(ent))
//{
//static Float:origin2[3]
//pev(ent,pev_origin,origin2)
//static origin[3]
//origin[0] = floatround(origin2[0]) + random_num(-75,75)
//origin[1] = floatround(origin2[1]) + random_num(-75,75)
//origin[2] = floatround(origin2[2]) + random_num(0,65)
//message_begin(MSG_BROADCAST,SVC_TEMPENTITY,origin)
//write_byte(3)
//write_coord(origin[0]) // start position
//write_coord(origin[1])
//write_coord(origin[2])
//write_short(smokesprites[param[0]])
//write_byte(smokesprites_size[param[0]]) // byte (scale in 0.1's) 188
//write_byte(5) // byte (framerate)
//write_byte(14) // byte flags
//message_end()
//}
//}  
全部注释,编译通过,但是我的hlserver运行的时候 当丢了一个烟雾
烟雾就开始乱跑 然后马赛克
接着 hl server死机


请帮我们看看好吗
回复

使用道具 举报

发表于 2008-4-6 12:47:55 | 显示全部楼层 来自 中国–广东–深圳–罗湖区

回复: 能否请版主解决一下,关于烟雾弹的问题..........

public smoke_explode(param[1],ent)
{
if(pev_valid(ent))
{
static Float:origin2[3]
pev(ent,pev_origin,origin2)
static origin[3]
origin[0] = floatround(origin2[0]) + random_num(-75,75)
origin[1] = floatround(origin2[1]) + random_num(-75,75)
origin[2] = floatround(origin2[2]) + random_num(0,65)
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,origin)
write_byte(3)
write_coord(origin[0]) // start position
write_coord(origin[1])
write_coord(origin[2])
write_short(smokesprites[param[0]])
write_byte(smokesprites_size[param[0]]) // byte (scale in 0.1's) 188
write_byte(5) // byte (framerate)
write_byte(14) // byte flags
message_end()
}
}
回复

使用道具 举报

发表于 2008-4-6 12:51:10 | 显示全部楼层 来自 中国–广东–深圳–罗湖区

回复: 能否请版主解决一下,关于烟雾弹的问题..........

L 04/06/2008 - 12:36:56: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:56: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:56: [AMXX] Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:56: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:56: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:56: [AMXX] Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:56: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:56: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:56: [AMXX] Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:57: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:57: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:57: [AMXX] Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:57: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:57: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:57: [AMXX] Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:57: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:57: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:57: [AMXX] Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:57: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:57: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:57: [AMXX] Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:57: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:57: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:57: [AMXX] Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:57: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:57: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:57: [AMXX] Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:57: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
回复

使用道具 举报

发表于 2008-5-20 08:52:52 | 显示全部楼层 来自 中国–广东–深圳

回复: 能否请版主解决一下,关于烟雾弹的问题..........

Post by Osker Lee
CS1.5和CS1.6是有区别的,CS1.5的烟雾弹只调用smokepuff.spr这个文件,而CS1.6的烟雾弹则需要调用gas_puff_01.spr和smokepuff.spr两个文件。这个New Smoke Sprites插件的功能就是替换烟雾弹的spr文件。

你可以先把gas_puff_01.spr和smokepuff.spr改成别的名称,如改名为555puff.spr和666puff...

顶。。。。。。。。。。。。好贴不能错过。。
回复

使用道具 举报

发表于 2010-9-26 13:29:07 | 显示全部楼层 来自 中国–天津–天津
没钱了!哇哇!刷了!22222222
回复

使用道具 举报

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

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