AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Death Beam (https://forums.alliedmods.net/showthread.php?t=59371)

kipplitz 08-24-2007 01:13

Re: Death Beam
 
Thanks Dalto,

I typically just use the ftp link from my Windows Network Places and access my game server to upload and download files. When I looked the 'data' folder did not exist, even upon a refresh. Opened up with cutefp and there it was. Weird.

Thanks,

KippLitz

Peoples Army 08-24-2007 09:24

Re: Death Beam
 
llol:shock:

Arcon 10-08-2007 02:43

Re: Death Beam
 
Hy gues,

thanks for the great work! Finally i reached to get the plugin to work because the downloadlinks on the first page du not refer to the final version of the deathbeam plugin...the final version is posted on page 3 :cry:

Maybe you like to fix the Links on the first site to the final version!

Anyway, great thanks from my side!

...keep on walking...
Arcon | css-clan.de

Arcon 10-11-2007 09:25

Re: Death Beam
 
hy all,

dont know if anybody is still reading this or interested in some suggestion to advance the nice plugin!

Would it be possible to insert a beacon function? something like 'sm_beacon <player> <on/off>'

Quote:

Name: BeamRingPoint
Class: CTEBeamRingPoint
Function: TE_SetupBeamRingPoint
If i could do it myself i would ^^ ...

thanks for listening :wink:

InstantDeath 01-17-2008 21:27

Re: Death Beam
 
hey, does this plugin not work anymore? I installed it correctly, and there are no errors when running it, but when i die, nothing happens.

LocutusH 01-19-2008 13:12

Re: Death Beam
 
It does work here, on css.

Peoples Army 04-11-2008 00:54

Re: Death Beam
 
Quote:

Originally Posted by InstantDeath (Post 575216)
hey, does this plugin not work anymore? I installed it correctly, and there are no errors when running it, but when i die, nothing happens.


yes this works for counter strike source

tcviper 04-11-2008 08:00

Re: Death Beam
 
I dont see the point of using that through console, why not making a menu to enable or disable it per player?

Peoples Army 04-11-2008 15:00

Re: Death Beam
 
Quote:

Originally Posted by tcviper (Post 609661)
I dont see the point of using that through console, why not making a menu to enable or disable it per player?

ok , ill get started on it for the next release :up:

LocutusH 04-11-2008 15:06

Re: Death Beam
 
It would be nice, to have a unified player settings menu, where all players can set up these things.
Like deathbeam, hlstatsx options, dmgstat options, etc.
Not a separate one for every single plugin.

Peoples Army 04-11-2008 15:14

Re: Death Beam
 
Quote:

Originally Posted by LocutusH (Post 609903)
It would be nice, to have a unified player settings menu, where all players can set up these things.
Like deathbeam, hlstatsx options, dmgstat options, etc.
Not a separate one for every single plugin.


isnt there a menu that does that wilth config files ? like super menu or something ?

FunTF2Server 04-12-2008 13:07

Re: Death Beam
 
does this work with TF2?

are there any plugins on this site that say they are for CS:Source but will work in TF2 also?

I'm trying to make my server heavily modified as possible, the most custom server out there, and right now I have every sourcemod TF2 plugin there is (well the good ones I like at least). Now I'm craving for more plugins, but there are no more, so I'm hoping ones designed for other source games will work on TF2?

Peoples Army 04-12-2008 19:39

Re: Death Beam
 
um well it all depends on the coding of a plugin . ive never tested any of my plugins on anything but cs soruce

Ravu al Hemio 05-03-2008 12:41

Re: Death Beam
 
Theoretically, this plug-in works with TF2. From its script file, it is visible that it depends on the following things:
  • Material: materials/sprites/laser.vmt (standard Half-Life 2 material)
  • Function: EyePosition
  • Function: Weapon_ShootPosition
In practice, TF2 mounts the standard Source materials automatically, so the first item is not a problem. However, SourceMod doesn't know where to find EyePosition and Weapon_ShootPosition in TF2, because the death_beam.games.txt only contains entries for Counter-Strike Source (cstrike).

Consulting the extremely awesome offset list, we can see that TF2 keeps the functions at 120 and 232 (respectively) on Windows, and at 121 and 233 on Linux (Linux offsets are Windows offsets +1, according to the top of the page).

We can therefore happily extend the offset list thus:
Code:

"Games"
{
        "cstrike"
        {
                "Offsets"
                {
                        "EyePosition"
                        {
                                "windows"        "120"
                                "linux"                "121"
                        }
                        "Weapon_ShootPosition"
                        {
                                "windows"        "221"
                                "linux"                "222"
                        }
                }
        }
        "tf"
        {
                "Offsets"
                {
                        "EyePosition"
                        {
                                "windows"        "120"
                                "linux"                "121"
                        }
                        "Weapon_ShootPosition"
                        {
                                "windows"        "232"
                                "linux"                "233"
                        }
                }
        }
}

Yes, I have tested it. Yes, the beam works. I don't know if the menu or convars do. I might try it soon and post back here.

By the way, checking the CS: S offset list, it seems that the CS: S offsets for "EyePosition" actually point to "EarPosition" (EyePosition is at 117 on Windows and 118 on Linux). Very probably just an oversight. ;)

steambob 05-03-2008 15:25

Re: Death Beam
 
In this respect one could simplify the plugin a bit: GetClientEyePosition is a stock native presently, also GetClientAbsOrigin can be used. Either of these two can be used instead of Weapon_ShootPosition. Then the plugin should work for any supported mod without the additional gamedata file.

FunTF2Server 05-03-2008 18:11

Re: Death Beam
 
Quote:

Originally Posted by Ravu al Hemio (Post 620775)
Theoretically, this plug-in works with TF2. From its script file, it is visible that it depends on the following things:
  • Material: materials/sprites/laser.vmt (standard Half-Life 2 material)
  • Function: EyePosition
  • Function: Weapon_ShootPosition
In practice, TF2 mounts the standard Source materials automatically, so the first item is not a problem. However, SourceMod doesn't know where to find EyePosition and Weapon_ShootPosition in TF2, because the death_beam.games.txt only contains entries for Counter-Strike Source (cstrike).

Consulting the extremely awesome offset list, we can see that TF2 keeps the functions at 120 and 232 (respectively) on Windows, and at 121 and 233 on Linux (Linux offsets are Windows offsets +1, according to the top of the page).

We can therefore happily extend the offset list thus:
Code:

"Games"
{
    "cstrike"
    {
        "Offsets"
        {
            "EyePosition"
            {
                "windows"    "120"
                "linux"        "121"
            }
            "Weapon_ShootPosition"
            {
                "windows"    "221"
                "linux"        "222"
            }
        }
    }
    "tf"
    {
        "Offsets"
        {
            "EyePosition"
            {
                "windows"    "120"
                "linux"        "121"
            }
            "Weapon_ShootPosition"
            {
                "windows"    "232"
                "linux"        "233"
            }
        }
    }
}

Yes, I have tested it. Yes, the beam works. I don't know if the menu or convars do. I might try it soon and post back here.

By the way, checking the CS: S offset list, it seems that the CS: S offsets for "EyePosition" actually point to "EarPosition" (EyePosition is at 117 on Windows and 118 on Linux). Very probably just an oversight. ;)

can you compile a version that I can put on my linux tf2 server and test it out?

Ravu al Hemio 08-21-2008 08:47

Re: Death Beam
 
1 Attachment(s)
steambob is certainly making sense here: the TF2 updates and the associated vtable changes are cumbersome and using stock natives is certainly easier.

If you feel like patching the file yourself, do the following:

1. Delete the following lines:
Code:

new Handle:hGameConf = INVALID_HANDLE;
new Handle:hGetEyePosition = INVALID_HANDLE;
new Handle:hGetWeaponPosition = INVALID_HANDLE;

Code:

        hGameConf = LoadGameConfigFile("death_beam.games");
        if(hGameConf == INVALID_HANDLE)
        {
                SetFailState("gamedata/death_beam.games.txt not loadable");
        }

        // Prep some virtual SDK calls
        StartPrepSDKCall(SDKCall_Player);
        PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, "EyePosition");
        PrepSDKCall_SetReturnInfo(SDKType_Vector, SDKPass_ByValue);
        hGetEyePosition = EndPrepSDKCall();

        StartPrepSDKCall(SDKCall_Player);
        PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, "Weapon_ShootPosition");
        PrepSDKCall_SetReturnInfo(SDKType_Vector, SDKPass_ByValue);
        hGetWeaponPosition = EndPrepSDKCall();

2. Change the following lines:
Code:

                        SDKCall(hGetWeaponPosition, attacker, attackerOrigin);
                        SDKCall(hGetEyePosition, victim, victimOrigin);

to:
Code:

                        GetClientEyePosition(attacker, attackerOrigin);
                        GetClientEyePosition(victim, victimOrigin);

The plug-in should now work with all Source games/mods and survive any updates.

Attached is the modified plugin. I hereby give up all copyrights related to my modification of death_beam.sp and would love this to become official.

Derek 09-07-2008 08:27

Re: Death Beam
 
Looks Good!

MaKTaiL 09-07-2008 10:59

Re: Death Beam
 
What is Death Beam?

ThatGuy 09-07-2008 11:35

Re: Death Beam
 
Quote:

Originally Posted by MaKTaiL (Post 682592)
What is Death Beam?

This Will create a beam between victim and killer on death . This Was a Mani Admin Plugin Feature . The colors are customizble by ConVars , and theres a menu to enable and disalbe the beam for clients.

MaKTaiL 09-07-2008 19:28

Re: Death Beam
 
Quote:

Originally Posted by ThatGuy (Post 682604)
This Will create a beam between victim and killer on death . This Was a Mani Admin Plugin Feature . The colors are customizble by ConVars , and theres a menu to enable and disalbe the beam for clients.

Hmm, that is interesting. I will give it a try. Thank you for the fast response. :up:

sessus 10-29-2008 20:11

Re: Death Beam
 
1 Attachment(s)
here a screenshot ;)

??? | Jack Bauer 12-27-2008 04:22

Re: Death Beam
 
it works on dod source?

I have test it but dont see any deathbeam

ltgenkd 12-29-2008 22:51

Re: Death Beam
 
Does this work for HL2MP ? received error...


L 12/29/2008 - 22:39:51: [SM] Native "SDKCall" reported: Invalid Handle 0 (error 4)
L 12/29/2008 - 22:39:51: [SM] Displaying call stack trace for plugin "death_beam.smx":
L 12/29/2008 - 22:39:51: [SM] [0] Line 134, /home/groups/alliedmodders/forums/files/2/6/2/5/8/19386.attach::EventDeath()

ltgenkd 12-30-2008 09:41

Re: Death Beam
 
Trying to figure this out as u can see i am a noob but ... In the offsets are the "EYE POSITIONS" the same as " EYE ANGLES" ? Im guessing i have to add the offsets for hl2mp as the only offsets in the death_beam.games.txt are for counter strike.

ltgenkd 12-30-2008 10:51

Re: Death Beam
 
Hopefully i figured this out. I needed the eye positions and the weapon_shootPosition to add into the death_beam.games.txt.

Code:

"Games"
{
    "cstrike"
    {
        "Offsets"
        {
            "EyePosition"
            {
                "windows"    "120"
                "linux"        "121"
            }
            "Weapon_ShootPosition"
            {
                "windows"    "221"
                "linux"        "222"
            }
        }
    }
              "hl2mp"
                {
                                "Offsets"
                                {
                                                "EyePosition"
                                                {
                                                                "windows"                "117"
                                                                "linux"                      "118"
                                                }
                                                "Weapon_ShootPosition"
                                                {
                                                                "windows"                "221"
                                                                "linux"                      "222"
                                                }
                              }
                }


ltgenkd 01-01-2009 01:44

Re: Death Beam
 
My death_beams.games.txt is all aligned correctly not as it is show above in the code. Still doesn't work. Anyone ???

scso1502 01-27-2009 14:23

Re: Death Beam
 
Can someone update the first page of this thread for this plugin so it has the most current updated files including the gamedata file (which currently isn't on the first page at all) for people to download? It would be nice to for people to know which is the most current working version and to be able to download the files right off the first page rather than surfing the thread and trying different files until you get one that works.

Thanks! And I love the plugin. I appreciate all your work on it.

IcEWoLF 04-15-2009 19:59

Re: Death Beam
 
Hi all, for some reason the deathbeam settings don't stay.
I want the deathbeam to be green, at start of new mapcycle it resets to the default red.
Is there a possible way to make this settings stick?

Do I have to do this and put this settings in the server.cfg file?
Also do I put infront of those commands sv_?

death_beam_on 1
death_beam_red 0
death_beam_green 255
death_beam_blue 0
death_beam_alpha 255
death_beam_default_setting 1

Xp3r7 04-15-2009 21:18

Re: Death Beam
 
Yea, just add that to your server.cfg or autoexec.cfg and no to the sv_ if they are in .cfg files.

Tipsy Snake 05-03-2009 20:02

Re: Death Beam
 
Peoples Army
Cool plugin BUT:
1. It needs a cvar to configure beam time duration. It's a simple thing but very useful.
2. Also it needs announce itself when client authorizes. I mean something like "Type 'deathbeam' to configure..." in chat
3. AutoExecConfig() needed!
4. Translations support is a good idea too. ;)

Cooltad 05-24-2009 11:15

Re: Death Beam
 
Just checking. Did the offsets for this change since the recent tf2 update?

Tipsy Snake 05-24-2009 14:15

Re: Death Beam
 
1 Attachment(s)
So, as the author don't wanna to support his plugin, I take care of it.
I've just updated the script. The next changes have been made:
  • Added death_beam_time cvar to configure beam time duration
  • Added config autocreation/execution
I think everyone will find this update useful :)

exvel 05-24-2009 16:49

Re: Death Beam
 
Tipsy Snake, I think there are 2 major features require for this plugin:
  • Translations support
  • Client preferences integrattion

Tipsy Snake 05-24-2009 19:07

Re: Death Beam
 
Quote:

Originally Posted by exvel (Post 833936)
Tipsy Snake, I think there are 2 major features require for this plugin:
  • Translations support
  • Client preferences integrattion

1. Translation.
It's easy to add but I think it's unnecessary thing because there is nothing to translate :) only two words in menu

2. Client preferences
Maybe someone need this but not me :) I found the default settings the best for me. And I also think there is no need to let users configure beam, administarator can do it once and for all.

exvel 05-25-2009 04:44

Re: Death Beam
 
Quote:

Originally Posted by Tipsy Snake (Post 834011)
1. Translation.
It's easy to add but I think it's unnecessary thing because there is nothing to translate :) only two words in menu

2. Client preferences
Maybe someone need this but not me :) I found the default settings the best for me. And I also think there is no need to let users configure beam, administarator can do it once and for all.

It doesn't matter how many words in there. SM is an international scripting platform and I know that most of the non-english admins just won't install plugin if it hasn't translation support. It is really important. And client preferences integration is also needed because "clientprefs" API was designed exactly for such plugins. At the moment this version of plugin is worser than death beam functionality of Mani Admin that was created 3+ years ago! That is really sad.

Tipsy Snake 05-25-2009 09:53

Re: Death Beam
 
exvel
So let me remind you i'm not the author of this plugin, i'm just a volunteer. ;)

Cooltad 05-25-2009 10:01

Re: Death Beam
 
Quote:

Originally Posted by exvel (Post 834252)
It doesn't matter how many words in there. SM is an international scripting platform and I know that most of the non-english admins just won't install plugin if it hasn't translation support. It is really important. And client preferences integration is also needed because "clientprefs" API was designed exactly for such plugins. At the moment this version of plugin is worser than death beam functionality of Mani Admin that was created 3+ years ago! That is really sad.

...or the lazy asses who want it in a different language can just edit the plugin and replace the -two- words themselves.

exvel 05-25-2009 10:06

Re: Death Beam
 
Quote:

Originally Posted by Cooltad (Post 834375)
...or the lazy asses who want it in a different language can just edit the plugin and replace the -two- words themselves.

Not everyone know how to edit plugins.

Cooltad 05-26-2009 00:26

Re: Death Beam
 
Quote:

Originally Posted by exvel (Post 834378)
Not everyone know how to edit plugins.

They should learn how to open with->notepad->ctrl+f.
Seems pretty simple to me.

Furthermore, under what theory are the competent supposed to cater to the incompetent?


All times are GMT -4. The time now is 07:23.

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