搜索
楼主: Osker Lee

以"Create_TE_BEAMFOLLOW"的方式定义手雷拖尾

[复制链接]
发表于 2008-3-16 15:44:47 | 显示全部楼层 来自 北京海淀

回复: 以"Create_TE_BEAMFOLLOW"的方式定义手雷拖尾

回复

使用道具 举报

 楼主| 发表于 2008-3-16 16:57:45 | 显示全部楼层 来自 甘肃兰州

回复: 以"Create_TE_BEAMFOLLOW"的方式定义手雷拖尾

不要那个延时应该可以
测试了,发现没有任何效果,手雷居然不能拖尾了~
回复

使用道具 举报

发表于 2008-3-16 17:11:12 | 显示全部楼层 来自 北京海淀

回复: 以"Create_TE_BEAMFOLLOW"的方式定义手雷拖尾

我给那个函数是参数传递的,你不用把全局变量的名字最为它的参数。
回复

使用道具 举报

发表于 2008-3-16 18:02:17 | 显示全部楼层 来自 广东惠州

回复: 以"Create_TE_BEAMFOLLOW"的方式定义手雷拖尾

Post by Osker Lee
测试了,发现没有任何效果,手雷居然不能拖尾了~
没理由吧,再试下
[php]
#include <amxmodx>
#include <engine>
#include <csx>
#define TE_BEAMFOLLOW 22
new m_iTrail
public plugin_init()
{
register_plugin("Grenade Trail","1.0","X-man")
register_cvar("amx_grentrail","1")
}
public plugin_precache() {
m_iTrail = precache_model("sprites/smoke.spr")
}
public grenade_throw(id,greindex,wpn)
{
if( !get_cvar_num("amx_grentrail") )
  return PLUGIN_HANDLED
Create_TE_BEAMFOLLOW(greindex, m_iTrail, 20, 10, 255, 255, 0, 196)
return PLUGIN_CONTINUE
}
stock Create_TE_BEAMFOLLOW(id, m_iTrail, life, width, r, g, b, brightness)
{
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_BEAMFOLLOW)
write_short(id)
write_short(m_iTrail)
write_byte(life)
write_byte(width)
write_byte(r)
write_byte(g)
write_byte(b)
write_byte(brightness)
message_end()
}  
[/php]
回复

使用道具 举报

 楼主| 发表于 2008-3-16 18:34:36 | 显示全部楼层 来自 甘肃兰州

回复: 以&quot;Create_TE_BEAMFOLLOW&quot;的方式定义手雷拖尾

恩,这个可以解决问题了!谢谢!呵呵~ 今天真高兴啊,终于圆满地解决了两个“历史遗留问题”。
:qqb007:
回复

使用道具 举报

发表于 2008-3-16 19:08:37 | 显示全部楼层 来自 上海松江区

回复: 以&quot;Create_TE_BEAMFOLLOW&quot;的方式定义手雷拖尾

感谢Osker Lee和zwfgdlc
回复

使用道具 举报

发表于 2008-3-17 00:04:01 | 显示全部楼层 来自 广东广州

回复: 以&quot;Create_TE_BEAMFOLLOW&quot;的方式定义手雷拖尾

因为有了点通,所以CS更加精彩!!

本帖子中包含更多资源

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

×
回复

使用道具 举报

发表于 2015-8-8 12:05:38 | 显示全部楼层 来自 广东
我喜欢这个手雷AMXMOD
回复

使用道具 举报

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

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