Garry's Mod

Garry's Mod

91 ratings
Orbital Sonic Cannon [TTT]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Comic, Fun
File Size
Posted
1.259 MB
12 May, 2022 @ 7:01pm
1 Change Note ( view )

Subscribe to download
Orbital Sonic Cannon [TTT]

In 1 collection by Symmetric Synapse
SS7 TTT Collection Main
222 items
Description
A laser beam of sonic death from the sky. Gives a music cue warning coming from the targeted area. For TTT only.

This needs to be able to see the sky to use. It will come down from the sky at an angle if needed, and the laser coming from the gun (only viewable by holder) will be green if it can see the sky straight up, or yellow for at an angle. Red means it cannot fire there.

This has like 12 other versions on the workshop, but most are the same junk with a tiny adjustment. This includes a much neater code (which should be easier to adjust), new features, ConVars, new sounds, it is MAYBE 20% still the original code. If you find any errors, please let me know either in the comments or a discussion. I don't do Lua or Gmod really, so I've very well missed something.

I only made this for Trouble in Terrorist Town. Due to the way Gmod is setup, I will not be making a sandbox version just because someone asks, you can feel free to make that version yourself, but it's up to you to keep that up to date if I fix something. I will not be making weapons you request in the comments. Don't pester people with demands please. However if you do have a feature that I could add to this, or something to make it better, by all means, let me know.

ConVars:
OSC_Shots 1 //Number of shots weapon spawns with.
OSC_Duration 11.6 //Duration of Blast
OSC_Warning_Duration 5.5 //Duration of Warning before Blast
OSC_Max_Damage 100 //Damage at Inner Blast Radius
OSC_Outer_Radius 300 //Outer Blast Radius
OSC_Inner_Radius 100 //Inner Blast Radius
OSC_Radius_Growth 2 //Units the blast radius grows a tick.
OSC_Force_Floor 1 //Forces the attack to hit a floor
OSC_Less_Particles 0 //Enable to cut out some of the particles effects, to improve FPS.
OSC_Screenshake 1 //In case this makes someone sick or some such.
OSC_Allow_Angled 1 //Allows the beam to come down at an angle.
OSC_Laser_Enabled 1 //In case of lag?
OSC_Can_Target_Sky 1 //Aim at sky to fire?
OSC_Shot_Delay # //Cooldown between shots.

Credits:
So once upon a time some guy named Broly made an Orbital Bass Cannon, and had it on his GitHub or some such. That's gone now. He gets credit for some of the code, and as far as I know, the original idea. This code did pass through a few hands before I got to it though.

Thanks to RottenBoot22 for input, testing, and cutting the audio for me.

Open license, but do credit me and link here.
Popular Discussions View All (1)
0
19 Jun, 2022 @ 8:59am
[Bug] No Damage
Symmetric Synapse
29 Comments
Muchtoodog 14 Dec, 2024 @ 2:07pm 
is it so wrong to at something in sandbox, idk it just looks rly cool
emeraldcrusher24 15 Aug, 2023 @ 11:17am 
bro if it is advertised as a TTT weapon it was built for TTT, stop complaining and maybe you try adding it to sandbox yourself
Killerpikle989 13 Mar, 2023 @ 7:21pm 
facts
COFFEE CREAMER 7 Jan, 2023 @ 9:56pm 
This is wasted effort if I'm being honest, TTT Weapons are cool and all but you can't use them in sandbox. I don't see the reason as to why people still make TTT exclusive weapons that have effort in them.
Boombox95 15 Oct, 2022 @ 6:37am 
is there 1 sandbox orbital strike?
Symmetric Synapse  [author] 2 Oct, 2022 @ 5:46pm 
@Judas Priest Yes. Unfortunately Gmod is setup in such a way that weapons aren't very flushed out as a base script. So when TTT comes into play it has a default weapon base that includes many things you would not have so the weapon works properly in the game mode. Since this weapon is built off the TTT base it will not work in sandbox. This is the same reason sandbox doesn't work in TTT. Any weapons that work in both have at least some code doubled up or totally rewritten scripts to make that function. It's a mess, though I am surprised I haven't seen a mod that covers that and steals from TTT to make them importable easily/automatically.
Judas Priest 1 Oct, 2022 @ 3:11am 
is there even a reason why this can't be used in sandbox
LuckyTiger 1 Jul, 2022 @ 5:35pm 
You said you've haven't been able to replicate the issue right? So you tried just having this mod alone in a server and it still does damage?
Symmetric Synapse  [author] 19 Jun, 2022 @ 8:58am 
@Duckhead, started a discussion, I'm going to look into this and try to replicate.
Kamachi_SaN 19 Jun, 2022 @ 6:23am 
Pls damage T_T

Damage = OP