Peoples Army
08-08-2007, 20:24
Im workin on the plugin "Death Beams" , i have just about everything , but i need a few things i cant find about temp ents here .
1. what is the Model Index , and halo index i should use ?
2. what is "a" in the color array?
3. what is the speed i should use ?
/*
Death Beam's
Displays A Beam Between The Victum And Killer.
*/
#include <sourcemod>
#define VERSION "0.1"
new Handle:Switch;
new Float:VictimOrigin[3];
new Float:AttackerOrigin[3];
new Float:Color[4];
public Plugin:myinfo =
{
name = "Death Beam",
author = "Peoples Army",
description = "Creates A Beam Between Victum And Killer",
version = VERSION,
url = "www.sourcemod.net (http://www.sourcemod.net)"
}
public OnPluginStart()
{
Switch = CreateConVar("death_beam_on","1","1 turns the plugin on 0 is off",FCVAR_NOTIFY);
Color[0] = CreateConVar("death_beam_red","255","Amount OF Red In The Beam",FCVAR_NOTIFY);
Color[1] = CreateConVar("death_beam_green","255","Amount Of Green In The Beam",FCVAR_NOTIFY);
Color[2] = CreateConVar("death_beam_blue","255","Amount OF Blue In The Beam",FCVAR_NOTIFY);
HookEvent("player_death",DeathEvent);
}
public DeathEvent(Handle:event,const String:name[],bool:dontBroadcast)
{
new victimId = GetEventInt(event, "userid");
new attackerId = GetEventInt(event, "attacker");
new victim = GetClientOfUserId(victimId);
new attacker = GetClientOfUserId(attackerId);
GetClientAbsOrigin(victim,VictimOrigin);
GetClientAbsOrigin(attacker,AttackerOrigin);
if(GetConVarInt(Switch))
{
TE_SetupBeamPoints(VictimOrigin,AttackerOrigi n,model,halo,0,0,50.0,10,10,20,10,color,0);
}
}
1. what is the Model Index , and halo index i should use ?
2. what is "a" in the color array?
3. what is the speed i should use ?
/*
Death Beam's
Displays A Beam Between The Victum And Killer.
*/
#include <sourcemod>
#define VERSION "0.1"
new Handle:Switch;
new Float:VictimOrigin[3];
new Float:AttackerOrigin[3];
new Float:Color[4];
public Plugin:myinfo =
{
name = "Death Beam",
author = "Peoples Army",
description = "Creates A Beam Between Victum And Killer",
version = VERSION,
url = "www.sourcemod.net (http://www.sourcemod.net)"
}
public OnPluginStart()
{
Switch = CreateConVar("death_beam_on","1","1 turns the plugin on 0 is off",FCVAR_NOTIFY);
Color[0] = CreateConVar("death_beam_red","255","Amount OF Red In The Beam",FCVAR_NOTIFY);
Color[1] = CreateConVar("death_beam_green","255","Amount Of Green In The Beam",FCVAR_NOTIFY);
Color[2] = CreateConVar("death_beam_blue","255","Amount OF Blue In The Beam",FCVAR_NOTIFY);
HookEvent("player_death",DeathEvent);
}
public DeathEvent(Handle:event,const String:name[],bool:dontBroadcast)
{
new victimId = GetEventInt(event, "userid");
new attackerId = GetEventInt(event, "attacker");
new victim = GetClientOfUserId(victimId);
new attacker = GetClientOfUserId(attackerId);
GetClientAbsOrigin(victim,VictimOrigin);
GetClientAbsOrigin(attacker,AttackerOrigin);
if(GetConVarInt(Switch))
{
TE_SetupBeamPoints(VictimOrigin,AttackerOrigi n,model,halo,0,0,50.0,10,10,20,10,color,0);
}
}