Raised This Month: $51 Target: $400
 12% 

SDK-tools-temp-entity questions ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-08-2007 , 20:24   SDK-tools-temp-entity questions ?
Reply With Quote #1

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 ?

Code:
/*   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 = "<a href="http://www.sourcemod.net" target="_blank" rel="nofollow noopener">www.sourcemod.net</a>" }   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,AttackerOrigin,model,halo,0,0,50.0,10,10,20,10,color,0);  } }
Peoples Army is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-08-2007 , 20:53   Re: SDK-tools-temp-entity questions ?
Reply With Quote #2

I don't know if this will work right, seeing as how every person is going to see this beam. Also, you shouldn't draw it straight from the attacker to the victim. Get the attacker's eye level and set that as the starting point. See http://wiki.alliedmods.net/SDKTools_...sition_Example for info on how to do that.
bl4nk is offline
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-08-2007 , 20:56   Re: SDK-tools-temp-entity questions ?
Reply With Quote #3

that didnt answer any of my questions .
Peoples Army is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-08-2007 , 20:57   Re: SDK-tools-temp-entity questions ?
Reply With Quote #4

I know, I was just giving you some tips and such.
bl4nk is offline
pRED*
Join Date: Dec 2006
Old 08-08-2007 , 20:59   Re: SDK-tools-temp-entity questions ?
Reply With Quote #5

You need to precache a model and get the return value. Use that for model index.
Use NULL (or maybe 0 if that doesn't work for halo model)

"sprites/lgtning.vmt"
"sprites/steam1.vmt"
"sprites/blueglow1.vmt"
"sprites/crystal_beam1.vmt"

would be some good models to play around with
pRED* is offline
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-08-2007 , 21:00   Re: SDK-tools-temp-entity questions ?
Reply With Quote #6

LOL. thanks

still need to know those 3 questions if any one has any ideas .
Peoples Army is offline
pRED*
Join Date: Dec 2006
Old 08-08-2007 , 21:02   Re: SDK-tools-temp-entity questions ?
Reply With Quote #7

a is alpha. 255 - full visible, 0 - invisible. Take your pick..

And just play around with the speed.

http://www.mani-admin-plugin.com/man...tion/index.php

Click effects, individual effects, beam points. To see some examples numbers and a picture of what they look like
pRED* is offline
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-08-2007 , 21:18   Re: SDK-tools-temp-entity questions ?
Reply With Quote #8

is it still ?
public plugin_precache()
{
precache_model()
}
Peoples Army is offline
EvgenKo423
Member
Join Date: Apr 2011
Location: Russia
Old 04-03-2013 , 04:41   Need help too
Reply With Quote #9

Hi there!
I have a little problem using TE_SetupBeamPoints. It just ignores the blue color value, as if it's set to 0. Does anybody know how to fix this issue?

EDIT: Sorry guys... Actually it works fine. I have found an error, it was my fault...
__________________
Everything that has a beginning has an end.
War... War never changes.....

Last edited by EvgenKo423; 04-04-2013 at 15:35.
EvgenKo423 is offline
Send a message via Skype™ to EvgenKo423
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 04-03-2013 , 05:45   Re: SDK-tools-temp-entity questions ?
Reply With Quote #10

weird. that always worked for me. try using a sprite that has the blue color in it, like a white one. i am mot sure if a red one can turn into blue.
__________________
sie sind das essen und wir sind die jäger!
Bimbo1 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode