求武器发光插件
跟武器旋转插件差不多 可是不喜欢他立起来的 希望能放在地下的 不过跟武器旋转插件一样会发各种各样的光 ! 希望插件编译高手来看下 我发出源码 你们帮忙看下怎么改 把他改为放在地下的#define VERSION "2.0"
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <fun>
new maxplayers
new speed_pcvar
new toggle_pcvar
public plugin_init()
{
register_plugin("UT Style Floating Weapons",VERSION,"GHW_Chronic")
speed_pcvar = register_cvar("FW_speed","18.0")
toggle_pcvar = register_cvar("FW_enabled","1")
register_forward(FM_SetModel,"W_Model_Hook",1)
register_touch("weaponbox","worldspawn","touch")
set_task(1.0,"newgame")
set_task(0.1,"force_spin",0,"",0,"b")
maxplayers = get_maxplayers()
}
public W_Model_Hook(ent,model[])
{
if(get_pcvar_num(toggle_pcvar) && pev_valid(ent))
{
static classname
pev(ent,pev_classname,classname,31)
if(equali(classname,"weaponbox"))
{
set_pev(ent,pev_renderfx,kRenderFxGlowShell)
switch(random_num(1,4))
{
case 1: set_pev(ent,pev_rendercolor,Float:{0.0,0.0.68,255.0})
case 2: set_pev(ent,pev_rendercolor,Float:{0.0,255.0,0.0})
case 3: set_pev(ent,pev_rendercolor,Float:{255.0,0.0.68,0.0})
case 4: set_pev(ent,pev_rendercolor,Float:{255.0,255.0,255.0})
}
static Float:angles
pev(ent,pev_angles,angles)
angles -= 90.0
angles += 45.0
set_pev(ent,pev_angles,angles)
}
}
}
public touch(weaponbox,worldspawn)
{
if(get_pcvar_num(toggle_pcvar) && pev_valid(weaponbox))
{
set_pev(weaponbox,pev_movetype,MOVETYPE_FLY)
static Float:origin
pev(weaponbox,pev_origin,origin)
origin += 30.0
set_pev(weaponbox,pev_origin,origin)
}
}
public force_spin()
{
if(get_pcvar_num(toggle_pcvar))
{
static ent, classname, Float:angles
ent = engfunc(EngFunc_FindEntityInSphere,maxplayers,Float:{0.0,0.0,0.0},7200.0)
while(ent)
{
if(pev_valid(ent))
{
pev(ent,pev_classname,classname,15)
if(containi(classname,"armoury")!=-1 || containi(classname,"weaponbox")!=-1)
{
pev(ent,pev_angles,angles)
angles += get_pcvar_float(speed_pcvar) / 10.0
if(angles>=180.0)
{
angles -= 360.0
}
set_pev(ent,pev_angles,angles)
}
}
ent = engfunc(EngFunc_FindEntityInSphere,ent,Float:{0.0,0.0,0.0},4800.0)
}
}
}
public newgame()
{
if(get_pcvar_num(toggle_pcvar))
{
static ent, classname, Float:angles
ent = engfunc(EngFunc_FindEntityInSphere,maxplayers,Float:{0.0,0.0,0.0},4800.0)
while(ent)
{
if(pev_valid(ent))
{
pev(ent,pev_classname,classname,7)
if(containi(classname,"armoury")!=-1)
{
set_pev(ent,pev_renderfx,kRenderFxGlowShell)
switch(random_num(1,4))
{
case 1: set_pev(ent,pev_rendercolor,Float:{0.0,0.0.68,255.0})
case 2: set_pev(ent,pev_rendercolor,Float:{0.0,255.0,0.0})
case 3: set_pev(ent,pev_rendercolor,Float:{255.0,0.0.68,0.0})
case 4: set_pev(ent,pev_rendercolor,Float:{255.0,255.0,255.0})
}
pev(ent,pev_angles,angles)
angles -= 90.0
angles += 45.0
set_pev(ent,pev_angles,angles)
touch(ent,0)
}
}
ent = engfunc(EngFunc_FindEntityInSphere,ent,Float:{0.0,0.0,0.0},4800.0)
}
}
}
还有想问下 那个Change_view 3D转换视角插件的命令是什么 就是玩家进入后输入什么命令可以转换?
回复: 求武器发光插件
帮下忙拉 就没人帮忙?回复: 求武器发光插件
我给你个好用的,QQ发给你得了,你加了我QQ的,我是LOST。知道了吧。!回复: 求武器发光插件
好的谢谢 还是真的有好人 啊 LOST我也想要,能不能发给我,我QQ550333402,谢谢
页:
[1]