代码写完了,但是没能编译成功
手雷爆炸光环.sma#include <amxmodx>
#include <fakemeta>
#include <csx>
#define TE_BEAMFOLLOW 22
new g_trail
new ExSpr
public plugin_init()
{
register_plugin("Grenade Trail","1.0","X-man")
register_cvar("amx_grentrail","1")
}
public plugin_precache() {
g_trail = precache_model("sprites/smoke.spr")
ExSpr = precache_model("sprites/shockwave.spr")
}
public grenade_throw(id,greindex,wpn)
{
if(!get_cvar_num("amx_grentrail"))
return PLUGIN_HANDLED
if(wpn == CSW_HEGRENADE)
Create_TE_BEAMFOLLOW(greindex, g_trail, 10, 10, 255, 0, 0, 200)
return PLUGIN_CONTINUE
}
stock Create_TE_BEAMFOLLOW(id, g_trail, life, width, r, g, b, brightness)
{
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_BEAMFOLLOW)
write_short(id)
write_short(g_trail)
write_byte(life)
write_byte(width)
write_byte(r)
write_byte(g)
write_byte(b)
write_byte(brightness)
message_end()
}
public HE_explode(ent)
{
if(!pev_valid(ent))
return;
new origin, Float:originG
pev(ent, pev_origin, originG)
FVecIVec(originG,origin)
HE_Explosion(origin)
}
public HE_Explosion(origin)
{
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(21)
write_coord(origin)
write_coord(origin)
write_coord(origin)
write_coord(origin)
write_coord(origin)
write_coord(origin + 385)
write_short(ExSpr)
write_byte(0)
write_byte(0)
write_byte(5)
write_byte(80)
write_byte(0)
write_byte(225)
write_byte(0)
write_byte(0)
write_byte(192)
write_byte(0)
message_end()
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(21)
write_coord(origin)
write_coord(origin)
write_coord(origin)
write_coord(origin)
write_coord(origin)
write_coord(origin + 470)
write_short(ExSpr)
write_byte(0)
write_byte(0)
write_byte(5)
write_byte(80)
write_byte(0)
write_byte(225)
write_byte(0)
write_byte(0)
write_byte(192)
write_byte(0)
message_end()
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(21)
write_coord(origin)
write_coord(origin)
write_coord(origin)
write_coord(origin)
write_coord(origin)
write_coord(origin + 555)
write_short(ExSpr)
write_byte(0)
write_byte(0)
write_byte(5)
write_byte(80)
write_byte(0)
write_byte(225)
write_byte(0)
write_byte(0)
write_byte(192)
write_byte(0)
message_end()
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(27);
write_coord(origin)
write_coord(origin)
write_coord(origin)
write_byte(60)
write_byte(225)
write_byte(0)
write_byte(0)
write_byte(8)
write_byte(60)
message_end()
}
夜枫丶后悔有妻13:13:03
其实也不是什么新鲜玩意,就是想在手雷拖尾插件的基础上再增加点东西,即手雷爆炸的时候,
附带产生一个红色的光坏(如图示)。插件的代码写完了,
但是没能编译成功,希望能有高人帮忙修改一下 这种东西能用在SXE的服务器上?
貌似SXE服务器上用这种插件会出错... 385897365 发表于 2013-5-28 15:17 static/image/common/back.gif
好像这个光圈利用寒冰雷的就可以了吧
你帮帮忙呀~ 测试过了无用 #include <engine>
改成
#include <fakemeta>
fm_FVecIVec(originG,origin)
改成
FVecIVec(originG,origin)就OK了 龟神登场啦:$ 龟头登场拉 大虾也能登场了 本帖最后由 点通粉丝 于 2013-6-1 12:23 编辑
其实我早就不打cs了,我也是帮人问的,不过还是要感谢龟老大的无私的帮忙,点通就需要这样的人,才能把cs发扬光大吧
编译成功了..但是没有光环效果的..老龟怎么回事呢..........
页:
[1]
2