Garry's Mod

Garry's Mod

64 ratings
[TTT] Orbital Custom Beam
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun
File Size
Posted
Updated
1.052 MB
6 Feb, 2017 @ 8:58am
7 Feb, 2017 @ 1:12pm
15 Change Notes ( view )

Subscribe to download
[TTT] Orbital Custom Beam

In 1 collection by CynCeyd
inFinite-Gaming.de TTT Kollektion
92 items
Description
Derived from:

[TTT] Orbital Friendship Beam - https://steamproxy.net/sharedfiles/filedetails/?id=323013982
[TTT] Orbital Tanzverbot Beam - http://steamproxy.net/sharedfiles/filedetails/?id=725948475

Enabled the server owner to use custom sounds by creating the directory garrysmod/sound/ocb and placing Wavesounds using 44100Hz. The sounds should have a length between 15-25 seconds.

Theoretically it should also be possible to use .mp3 and .ogg files, but to my shame I never tested this, but feel free to try.

The sounds are automatically downloaded by the clients when they join. FastDL is recommended, as the sound files might be large and thus take a long time using the internal download (limited to 20kb/s).

The source code that has been changed can be found here: https://github.com/CynCeyd/OCB

If there are any problems or errors occuring feel free to ask / report and I will try to help asap.
14 Comments
CynCeyd  [author] 10 Jul, 2019 @ 12:14am 
Möglich sicher irgendwie, aber was willst du damit erreichen? Man müsste theoretisch den Quellcode dahingehend anpassen, dass er die Kopien als zusätzliche Instanzen erkennt. Das Plugin in seinem aktuellen Zustand zu kopieren würde nichts bringen, da im Quellcode immer auf den Custom Beam verwiesen wird. Man kann (vermutlich, ohne das jetzt näher geprüft zu haben) versuchen, den Namen des Custom Beams in allen Kopien anzupassen. Das setzt aber voraus, dass sowohl der Server als auch alle Clients die Kopien besitzen.

Am einfachsten wäre vermutlich ein Update dieses Plugins. Beschreibe mir gerne mehr von deiner Idee, dann kann ich sie vielleicht umsetzen.
☽ ・ Anniways ・🌓➳ 9 Jul, 2019 @ 11:10am 
Jetzt muss ich ganz blöd Fragen:
Wäre es irgendwie möglich das Addon zu duplizieren? Also dass du Ingame nicht nur einen Custom Friendship Beam hast, sondern mehrere? Wenn ja, wie genau stell ich das an?

Short Question:
Would it be possible somehow to add more than one custom Friendship Beam to a game?
And if it's possible how could I do this?
CynCeyd  [author] 22 Jun, 2019 @ 10:11am 
Durchaus möglich. Ich habe immer die Sounddateien immer über FastDL zugänglich gemacht, da wir auch schon bei einer normalen Verbindung (also nicht peer-to-peer) immer Probleme hatten. Die Dateien wurden dann auch nie (vollständig) heruntergeladen. Über FastDL hat es aber bisher immer funktioniert.
robthew 22 Jun, 2019 @ 6:59am 
Ich habe eine Wav Datei verwendet. Diese wird auch beim connecten von meinen Mitspielern gedownloadet. Allerdings hören ich und meine Freunde den Soundeffekt nicht. Die Sound Datei an sich funktioniert. Liegt es vielleicht daran, dass wir über eine Peer to Peer Verbindung spielen und nicht über nen normalen Server?
CynCeyd  [author] 14 Jul, 2017 @ 8:59am 
Well, I have to admit that I have not implemented exception handling, resulting in such cryptic messages. To play a sound file, the plugin scans the ocb folder located in "garrysmod/sound/ocb" for any sound files. The file names are concatenated with a shortened version of the ocb sound folder. The error message means that the second part (the file name of the sound file) is nil (nothing). So basically there was no sound file found. Does this occur as a client on a dedicated server? If yes, it is possible, that you (as the client) are simply missing the sound files. Unfortunately the integrated download mechanism is pretty buggy, so if that is acutally the problem, I would recommend using FastDL. I use that on my server and it works like a charm.
F1rekin 14 Jul, 2017 @ 6:47am 
Hey guys, I'm currently running into an issue with this addon - i've installed it and created a folder for the sound so the path looks like this
...\Steam CMD\steamapps\common\GarrysModDS\garrysmod\sound\ocb\new.wav
so when i use the Orbital Beam ingame an error in the console pops up that reads the following:
[Orbital Custom Beam] gamemodes/terrortown/entities/weapons/weapon_ttt_ocb/shared.lua:6: attempt to concatenate local 'snd' (a nil value)
1. GetSound - gamemodes/terrortown/entities/weapons/weapon_ttt_ocb/shared.lua:6
2. unknown - gamemodes/terrortown/entities/weapons/weapon_ttt_ocb/shared.lua:230
and no sound is played.
Any help is appreciated :)
CodyProductions 28 Jun, 2017 @ 10:07am 
Could you make one for sandbox?
KlavirMusik 29 May, 2017 @ 11:55am 
Ok Danke :)
CynCeyd  [author] 28 May, 2017 @ 1:01pm 
Theoretisch kann das vermutlich angepasst werden - ich habe aber auch nur den Friendship Beam geforkt und entsprechend die Möglichkeit eingebunden eigene Dateien zu benutzen. So tief stecke ich leider nicht in dem Plugin, deswegen wird das von meiner Seite aus vermutlich eher schwer umzusetzen. Du kannst das sonst ja dem Pluginautor vom Friendship Beam als ConVar vorschlagen (also ein Config-Befehl) der das Ruckeln aktiviert bzw. deaktiviert. Dementsprechend könnte ich dann das Plugin auch für den Custom Beam anpassen.
KlavirMusik 28 May, 2017 @ 12:10pm 
If you place the beam in a place with (for example) tables and weapons, my server is lagging until the beam is gone. Can I fix this? I think it comes from wiggling and perhaps destroying everything? Perhaps it would be enough if the beam has only an animation and only harms the people nearby. PS: I like this and I have the same problem with the Friendship Orbitalbeam. - Sorry for my english ^^