PHP Code:
#include <amxmodx>
#include <superheromod>
#include <fakemeta>
// VARIABLES
new gHeroName[]="Danimoth X"
new bool:g_hasdanimothPower[SH_MAXSLOTS+1]
new bool:g_usingPowerdz[SH_MAXSLOTS+1]
new gIsInvisible[SH_MAXSLOTS+1]
new freezeTZX[SH_MAXSLOTS+1]
new cloakRadius, laser
//----------------------------------------------------------------------------------------------
public plugin_init()
{
// Plugin Info
register_plugin("SUPERHERO Danimoth X","1.41","1sh0t2killz")
// FIRE THE EVENT TO CREATE THIS SUPERHERO!
register_cvar("danimoth_level", "17" )
shCreateHero(gHeroName, "The Arbiter", "Cloak allies near you and freeze enemies in place!", true, "danimoth_level" )
// REGISTER EVENTS THIS HERO WILL RESPOND TO! (AND SERVER COMMANDS)
//register_event("DeathMsg","death","a")
register_event("ResetHUD","newRound","b")
// INIT
register_srvcmd("danimoth_init", "danimoth_init")
shRegHeroInit(gHeroName, "danimoth_init")
// DEFAULT THE CVARS
register_cvar("danimoth_radius", "750" )
register_cvar("danimoth_freezeradius", "750" )
register_cvar("danimoth_alpha", "20")
register_cvar("danimoth_stunspeed", "1" )
register_cvar("danimoth_cooldown", "45" )
register_cvar("danimoth_godsecs", "5" ) //Match this with freezetime
//Change this when you change this cvar
//set_task(5.0,"UnFreeze",3,parm,1)
//The Life of the FreezePrism
register_cvar("danimoth_freezetime", "5" )
cloakRadius = get_cvar_num("danimoth_radius")
//handle when player is frozen
register_forward(FM_PlayerPreThink, "forward_playerprethinkx")
// LOOP
set_task(1.0,"danimoth_loop",0,"",0,"b" )
// KEY DOWN
register_srvcmd("danimoth_kd", "danimoth_kd")
shRegKeyDown(gHeroName, "danimoth_kd")
}
//----------------------------------------------------------------------------------------------
public plugin_precache()
{
laser = precache_model("sprites/laserbeam.spr")
precache_sound("shmod/danimoth_cloak.wav")
precache_sound("shmod/danimoth_stasis.wav")
}
//----------------------------------------------------------------------------------------------
public danimoth_init()
{
new temp[6]
// First Argument is an id
read_argv(1,temp,5)
new id=str_to_num(temp)
// 2nd Argument is 0 or 1 depending on whether the id has danimoth powers
read_argv(2,temp,5)
new hasPowers=str_to_num(temp)
g_hasdanimothPower[id]=(hasPowers!=0)
if (g_hasdanimothPower[id]) {
gPlayerUltimateUsed[id] = false
}
}
//----------------------------------------------------------------------------------------------
public newRound(id)
{
gPlayerUltimateUsed[id]=false
client_cmd(id,"-strafe")
freezeTZX[id] = false
return PLUGIN_HANDLED
}
//----------------------------------------------------------------------------------------------
// RESPOND TO KEYDOWN
public danimoth_kd()
{
if ( !hasRoundStarted() ) return PLUGIN_HANDLED
// First Argument is an id with danimoth Powers!
new temp[6]
read_argv(1,temp,5)
new id = str_to_num(temp)
if ( !is_user_alive(id) || !g_hasdanimothPower[id] || gPlayerUltimateUsed[id]) return PLUGIN_HANDLED
if ( gPlayerUltimateUsed[id] ) {
playSoundDenySelect(id)
return PLUGIN_HANDLED
}
new parm[2]
parm[0]=id
parm[1]=6
set_task(0.1,"Freeze",3,parm,1)
return PLUGIN_HANDLED
}
//----------------------------------------------------------------------------------------------
public danimoth_loop()
{
if (!shModActive()) return
for ( new id = 1; id <= SH_MAXSLOTS; id++ ) {
if ( g_hasdanimothPower[id] && is_user_alive(id) ) {
new parm[2]
parm[0]=id
parm[1]=6
//Cloak Task
set_task(0.1,"CloakRad",3,parm,1)
set_task(0.1,"DeCloakRad",3,parm,1)
}
}
}
//----------------------------------------------------------------------------------------------
public client_connect(id)
{
client_cmd(id,"-strafe")
}
//----------------------------------------------------------------------------------------------
public CloakRad(parm[2]){
new distanceBetween
new id = parm[0]
new origin[3]
get_user_origin(id,origin)
for(new a = 1; a <= SH_MAXSLOTS; a++)
{
if( is_user_alive(a) && ( get_user_team(id) == get_user_team(a)) && gIsInvisible[a] == 0 )
{
new origin1[3]
get_user_origin(a,origin1)
distanceBetween = get_distance(origin, origin1 )
if( distanceBetween < cloakRadius )
{
emit_sound(id, CHAN_BODY, "shmod/danimoth_cloak.wav", 0.6, ATTN_NORM, 0, PITCH_HIGH)
emit_sound(a, CHAN_BODY, "shmod/danimoth_cloak.wav", 0.6, ATTN_NORM, 0, PITCH_HIGH)
setInvisibility(a, get_cvar_num("danimoth_alpha"))
gIsInvisible[a] = 1
}
}
}
}
//----------------------------------------------------------------------------------------------
public DeCloakRad(parm[2])
{
new distanceBetween
new id = parm[0]
new origin[3]
get_user_origin(id,origin)
for(new a = 1; a <= SH_MAXSLOTS; a++)
{
if( is_user_alive(a) && ( get_user_team(id) == get_user_team(a)) && gIsInvisible[a] == 1 )
{
new origin1[3]
get_user_origin(a,origin1)
distanceBetween = get_distance(origin, origin1 )
if( distanceBetween > cloakRadius )
{
shUnglow(a)
client_print(a,print_center,"[SH]Danimoth: You are De-cloaked")
gIsInvisible[a] = 0
}
}
}
}
//----------------------------------------------------------------------------------------------
public setInvisibility(a, alpha)
{
client_print(a,print_center,"[SH]Danimoth: You are near Danimoth and now invisible")
if (alpha < 125) {
set_user_rendering(a,kRenderFxGlowShell,8,8,8,kRenderTransAlpha,alpha)
}
else {
set_user_rendering(a,kRenderFxNone,0,0,0,kRenderTransAlpha,alpha)
}
}
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
//KEY DOWN STUFF
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
public Freeze(parm[2])
{
new distanceBetween, freezePlace
new id = parm[0]
new origin[3]
get_user_origin(id,origin)
new Float:danStunSpeed = get_cvar_float("danimoth_stunspeed")
new aimorg[3]
for(new a = 1; a <= SH_MAXSLOTS; a++)
{
if( is_user_alive(a) && ( get_user_team(id) != get_user_team(a)) )
{
new origin1[3]
get_user_origin(a,origin1)
new freezeTZ = get_cvar_num("danimoth_freezetime")
freezePlace = get_cvar_num("danimoth_freezeradius")
distanceBetween = get_distance(origin, origin1 )
if( distanceBetween < freezePlace )
{
emit_sound(id, CHAN_BODY, "shmod/danimoth_stasis.wav", 0.6, ATTN_NORM, 0, PITCH_HIGH)
emit_sound(a, CHAN_BODY, "shmod/danimoth_stasis.wav", 0.6, ATTN_NORM, 0, PITCH_HIGH)
client_print(a,print_center,"[SH]Danimoth: You are Frozen")
new Float:fl_iNewVelocity[3]
fl_iNewVelocity[0] = 0.0
fl_iNewVelocity[1] = 0.0
fl_iNewVelocity[2] = 0.0
set_pev(a, pev_velocity, fl_iNewVelocity)
freezeTZX[a] = 1
shStun(a, freezeTZ)
set_user_maxspeed(a, danStunSpeed)
g_usingPowerdz[a] = true
set_task(5.0,"UnFreeze",3,parm,1) //Backup unstrafe
ultimateTimer(id, get_cvar_num("danimoth_cooldown") * 1.0 )
get_user_origin(a,aimorg,3)
laserEffects(a, aimorg)
}
}
}
}
//----------------------------------------------------------------------------------------------
public forward_playerprethinkx(id)
{
if(freezeTZX[id])
{
// stop motion
set_pev(id, pev_velocity, Float:{0.0,0.0,0.0});
client_cmd(id,"+strafe"); //Lock their crosshair
set_user_hitzones(0,id ,0); //Remove Hitzones
set_user_godmode(id, 1); //Godmode
return FMRES_IGNORED
}
return FMRES_IGNORED
}
//----------------------------------------------------------------------------------------------
public UnFreeze(parm[2])
{
//new distanceBetween, freezePlace
new id = parm[0]
new origin[3]
get_user_origin(id,origin)
for(new a = 1; a <= SH_MAXSLOTS; a++)
{
if( is_user_alive(a) && ( get_user_team(id) != get_user_team(a)) )
{
new origin1[3]
get_user_origin(a,origin1)
client_print(a,print_center,"[SH]Danimoth: You are Un-Frozen")
set_user_hitzones(0,a,255);
set_user_godmode(a, 0)
g_usingPowerdz[a] = false
freezeTZX[a] = 0
client_cmd(a,"-strafe")
set_pev(a, pev_gravity,1.0)
}
}
}
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
//DIAMOND CALCULATIONS
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
//Ice Prism
public laserEffects(a, aimorg[3] )
{
new origin[3]
get_user_origin(a, origin, 1)
//==============
//Top Base Start
//==============
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+60) //X
write_coord(origin[1]) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]+10) //X
write_coord(origin[1]+60) //Z - FROM
write_coord(origin[2]+75) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+10) //X
write_coord(origin[1]+60) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]-50) //X
write_coord(origin[1]+40) //Z - FROM
write_coord(origin[2]+75) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]-50) //X
write_coord(origin[1]+40) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]-50) //X
write_coord(origin[1]-40) //Z - FROM
write_coord(origin[2]+75) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]-50) //X
write_coord(origin[1]-40) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]+10) //X
write_coord(origin[1]-60) //Z - FROM
write_coord(origin[2]+75) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+10) //X
write_coord(origin[1]-60) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]+60) //X
write_coord(origin[1]) //Z - FROM
write_coord(origin[2]+75) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//==============
//Top Base End
//==============
//=================
//Bottom Base Start
//=================
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+40) //X
write_coord(origin[1]-30) //Z - TO
write_coord(origin[2]-40) //Y
write_coord(origin[0]-10) //X
write_coord(origin[1]-50) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]-10) //X
write_coord(origin[1]-50) //Z - TO
write_coord(origin[2]-40) //Y
write_coord(origin[0]-50) //X
write_coord(origin[1]) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]-50) //X
write_coord(origin[1]) //Z - TO
write_coord(origin[2]-40) //Y
write_coord(origin[0]-10) //X
write_coord(origin[1]+50) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]-10) //X
write_coord(origin[1]+50) //Z - TO
write_coord(origin[2]-40) //Y
write_coord(origin[0]+40) //X
write_coord(origin[1]+30) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+40) //X
write_coord(origin[1]+30) //Z - TO
write_coord(origin[2]-40) //Y
write_coord(origin[0]+40) //X
write_coord(origin[1]-30) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//=================
//Bottom Base End
//=================
//==================
//Body Connect Start
//==================
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+60) //X
write_coord(origin[1]) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]+40) //X
write_coord(origin[1]-30) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+60) //X
write_coord(origin[1]) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]+40) //X
write_coord(origin[1]+30) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+10) //X
write_coord(origin[1]+60) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]+40) //X
write_coord(origin[1]+30) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+10) //X
write_coord(origin[1]+60) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]-10) //X
write_coord(origin[1]+50) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]-50) //X
write_coord(origin[1]+40) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]-10) //X
write_coord(origin[1]+50) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]-50) //X
write_coord(origin[1]+40) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]-50) //X
write_coord(origin[1]) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]-50) //X
write_coord(origin[1]-40) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]-50) //X
write_coord(origin[1]) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]-50) //X
write_coord(origin[1]-40) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]-10) //X
write_coord(origin[1]-50) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+10) //X
write_coord(origin[1]-60) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]-10) //X
write_coord(origin[1]-50) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+10) //X
write_coord(origin[1]-60) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]+40) //X
write_coord(origin[1]-30) //Z - FROM
write_coord(origin[2]-40) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//==================
//Body Connect End
//==================
//=============
//Top Lid Start
//=============
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+60) //X
write_coord(origin[1]) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]) //X
write_coord(origin[1]) //Z - FROM
write_coord(origin[2]+97) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+10) //X
write_coord(origin[1]+60) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]) //X
write_coord(origin[1]) //Z - FROM
write_coord(origin[2]+97) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]-50) //X
write_coord(origin[1]+40) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]) //X
write_coord(origin[1]) //Z - FROM
write_coord(origin[2]+97) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]-50) //X
write_coord(origin[1]-40) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]) //X
write_coord(origin[1]) //Z - FROM
write_coord(origin[2]+97) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+10) //X
write_coord(origin[1]-60) //Z - TO
write_coord(origin[2]+75) //Y
write_coord(origin[0]) //X
write_coord(origin[1]) //Z - FROM
write_coord(origin[2]+97) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//=============
//Top Lid End
//=============
//================
//Bottom Lid Start
//================
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+40) //X
write_coord(origin[1]+30) //Z - TO
write_coord(origin[2]-40) //Y
write_coord(origin[0]) //X
write_coord(origin[1]) //Z - FROM
write_coord(origin[2]-62) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]+40) //X
write_coord(origin[1]-30) //Z - TO
write_coord(origin[2]-40) //Y
write_coord(origin[0]) //X
write_coord(origin[1]) //Z - FROM
write_coord(origin[2]-62) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]-10) //X
write_coord(origin[1]-50) //Z - TO
write_coord(origin[2]-40) //Y
write_coord(origin[0]) //X
write_coord(origin[1]) //Z - FROM
write_coord(origin[2]-62) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]-10) //X
write_coord(origin[1]+50) //Z - TO
write_coord(origin[2]-40) //Y
write_coord(origin[0]) //X
write_coord(origin[1]) //Z - FROM
write_coord(origin[2]-62) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte ( 0 ) //TE_BEAMENTPOINTS 0
write_coord(origin[0]-50) //X
write_coord(origin[1]) //Z - TO
write_coord(origin[2]-40) //Y
write_coord(origin[0]) //X
write_coord(origin[1]) //Z - FROM
write_coord(origin[2]-62) //Y
write_short( laser )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 50 ) // life
write_byte( 20 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 125 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//================
//Bottom Lid End
//================
}
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------