Garry's Mod

Garry's Mod

Orbital Friendship Cannon (Admin-Only)
82 Comments
Osk13 11 Nov, 2023 @ 9:06pm 
e
Foxe  [author] 15 Aug, 2020 @ 5:42am 
???
Foxe  [author] 14 Aug, 2020 @ 6:04pm 
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
If my memory serves me well enough, it needs both of these to be true in order for it to be able to be spawned by admin only. I vaguely remember when trying to test without spawnable being true, and it wouldn't let me spawn it even as an admin.
Foxe  [author] 28 Jul, 2020 @ 8:30pm 
As far as I know, it should be. No one has said otherwise.
dr. kleiner 20 Jan, 2020 @ 5:58pm 
can somebody make a cannon like this except it has real explosions so it looks like a real orbital cannon? this mod would be perfect if it was a orbital cannon that looked real. anyways, this addon looks really cool.
i like hats 19 May, 2017 @ 8:22pm 
:p
Foxe  [author] 19 May, 2017 @ 5:58pm 
Oh, that's the video maker's fault, I have no control over it. Was wondering why that topic came up on the other version of this.
If you have a complaint on the video, bring it up with the video maker xD
I know the difference between cannon and canon :P
i like hats 19 May, 2017 @ 4:42am 
I really enjoyed you`re addon sir! But You have a title mistake on the video. It says, "Orbital Friendship Canon"
Foxe  [author] 3 Oct, 2016 @ 4:50pm 
Then I don't know what's happening x.x
I only knew enough about how to fix the addon so it would work with gmod 13, but I don't know enough to troubleshoot it very well
⫷⌬Emperor Phoenix⌬⫸ 3 Oct, 2016 @ 1:39pm 
Im not
Foxe  [author] 2 Oct, 2016 @ 6:36pm 
Huh... You're not trying to fire it indoors, are you?
Otherwise I'm not sure what is happening D:
⫷⌬Emperor Phoenix⌬⫸ 2 Oct, 2016 @ 7:42am 
I Keep getting this in Console When I Try to Shoot: [ERROR] lua/weapons/orbital_friendship_beam_ao.lua:241: attempt to index local 'self' (a nil value)
1. unknown - lua/weapons/orbital_friendship_beam_ao.lua:241

Timer Failed! [aokill][@lua/weapons/ao_orbital_friendship_cannon.lua (line 77)]

[Orbital Friendship Cannon (Admin-Only)] lua/weapons/orbital_friendship_beam_ao.lua:155: attempt to index local 'self' (a nil value)
1. start - lua/weapons/orbital_friendship_beam_ao.lua:155
2. unknown - lua/weapons/ao_orbital_friendship_cannon.lua:76
Delta 9 Aug, 2016 @ 9:40pm 
@Person, that is 2 users below me

I can't help you with that, but If they do it use sv_cheats 1, then do godmode, then use an admin gun to kill or spawnkill.
That is a punishment :D.
Just a tip from Mr.Epic
xxx 19 May, 2016 @ 4:49pm 
:D:
cwg 20 Jan, 2016 @ 5:27pm 
I added this to my server, my friends who aren't admins are able to spawn it.

Can anybody help?
coy1010allen 28 Nov, 2015 @ 4:07pm 
wait... if rainbowdash makes the sonic boom when she goes past the sound barier and the beam is going from the sky to the ground... then she is hiting the ground at sonic speeds... and nothing remains. this is a grim-dark addon!
Foxe  [author] 30 Oct, 2015 @ 6:53pm 
Apparently ThoughtWave42 :v
Minus 30 Oct, 2015 @ 1:59am 
Who thought it would be a good idea to weaponize Rainbow Dashes Sonic Rainboom?
AnErrorHasOkuued 11 Oct, 2015 @ 7:46pm 
wai-wait a second is that what is think it is if so. Wow
Amber Slime 3 Oct, 2015 @ 7:33am 
That was either Rainbow Dash or a trail mix loving pig (LOLOLOL MINECRAFT MOD JOKE)
mikromiękki farba 28 Aug, 2015 @ 4:44am 
rainbow dash made this supersonic boom
Foxe  [author] 1 Dec, 2014 @ 2:32pm 
Awesome! :D And you're welcome~
Laser Guided Anime Fish 1 Dec, 2014 @ 9:40am 
And the fix solved my issue! Thanks for the quick reply! :D:
Foxe  [author] 1 Dec, 2014 @ 5:10am 
And finished uploading fix. I hope that issue is solved D:
Foxe  [author] 1 Dec, 2014 @ 5:03am 
.... Okay, found one possible error, one item had a repeat of ao in it.
Uploading fix in a few moments here.
Foxe  [author] 1 Dec, 2014 @ 4:43am 
I'm also not sure how you got -1 for the setpos readout if you're shooting it in an open area O.o That kinda is the difference in the two errors. I think I may have to have you unsub, go into your addons folder, delete the addon, and then resub and see if that fixes it, because if you get that kind of error, there's something seriously wrong with the game..

Or if you want to, you could simply try verifying the integrity of gmod first, and see if that fixes the problem.

If the error happens on the default sandbox map after you do either/both of those fixes, then I got no idea what's going on
Foxe  [author] 1 Dec, 2014 @ 4:30am 
Fresh map? First thing you do? Default sandbox map?
Laser Guided Anime Fish 30 Nov, 2014 @ 9:07pm 
What's happening with me is happening in single player, even when I fire only once.
Foxe  [author] 30 Nov, 2014 @ 7:27pm 
Please see the previous commenter's conversation with me, the thing that's causing this to happen is when the swep is fired too soon before another person shoots it. I'm not entirely sure why this is happening, I wish I could fix it, but I don't have the knowledge or the time to learn what's going on.
Do remember this was originally designed with single player in mind when it was made, I merely modified it to work with the current version of Gmod and cleaned it up so that this error would be less likely to happen.

You can fix the error by cleaning up your map in the Q menu tools, I forget exactly where, but I believe it's under the tab labeled tools on the right side. This is very likely to remove all items on your map that weren't there on map startup. If you wish, you can cause the error to happen again and systematically go through the list and see which element has to be cleaned up for the laser to go away, I'd really like if you could tell me which it is if you decide to do that
Laser Guided Anime Fish 30 Nov, 2014 @ 6:08pm 
Any time I attempt to fire the weapon, it fails and the laser won't leave. I get this eror

[Orbital Friendship Cannon (Admin-Only)] lua/weapons/ao_orbital_friendship_cannon.lua:139: Tried to use a NULL entity!
1. SetPos - [C]:-1
2. start - lua/weapons/ao_orbital_friendship_cannon.lua:139
3. unknown - lua/weapons/ao_orbital_friendship_cannon.lua:76

. . .

[Orbital Friendship Cannon (Admin-Only)] lua/weapons/ao_orbital_friendship_cannon.lua:154: Tried to use a NULL entity!
1. Remove - [C]:-1
2. unknown - lua/weapons/ao_orbital_friendship_cannon.lua:154

Timer Failed! [aokill][@lua/weapons/ao_orbital_friendship_cannon.lua (line 77)]
Shy 11 Oct, 2014 @ 10:30pm 
Thank you for a quick and concise answer.
Foxe  [author] 11 Oct, 2014 @ 10:12pm 
@shyska ronja: That error seems to only happen when you manage to fire two beams one right after another before the first one's timer finishes. The swep was originally designed for single player and I have yet to figure out how to fix this problem, I'm sorry.

For the time being, to avoid this error, please avoid shooting the gun within 1 second of another gun.

If it's happening even on a fresh map, then I don't know what's going on.
To make the beams go away manually without reloading the map, is by clearing the map, however that will remove anything you have manually changed or placed. If you want to go through the list you can see if you can find the clean option that takes care of it, feel free to try, and if you find one that works, please let me know.

I again apologize for any difficulties this has caused D:
Shy 6 Oct, 2014 @ 3:57am 
I keep getting the following error message, [Orbital Friendship Cannon (Admin-Only)] lua/weapons/ao_orbital_friendship_cannon.lua:154: Tried to use a NULL entity!
1. Remove - [C]:-1
2. unknown - lua/weapons/ao_orbital_friendship_cannon.lua:154

Timer Failed! [aokill][@lua/weapons/ao_orbital_friendship_cannon.lua (line 77)]

And I have no idea what it means. But it leaves permanant lasers that leave a rainbow that won't disapear.
Brad 27 Dec, 2013 @ 11:19am 
Hm, i really dont know what could be the problem then if both codes are identical
Foxe  [author] 27 Dec, 2013 @ 3:35am 
Both codes are identical, or nearly so. The only difference is the naming of the common files. I had to rename the files owned by this one because people would have conflicts when using both at the same time.
Brad 26 Dec, 2013 @ 10:05am 
It isent anything to do with the map as well.. i have tested it on 3 maps, also there is good news the non-admin version is fine, i guess maybe... copy the non-admin version code and make it admin again? or are both the codes the same?
Foxe  [author] 26 Dec, 2013 @ 12:48am 
Huh.. Strange.. Well, I don't know how mods are made to be compatible with dedicated servers, I only know about client. So I'm very sorry, I wish I knew how to fix that issue, I've never worked with the dedicated server setup.
Brad 25 Dec, 2013 @ 6:06am 
tested on my server and the non-admin version is fine i just easily made it admin with my admin mod
Brad 25 Dec, 2013 @ 6:05am 
Foxe, got news for some reason its ONLY the admin gun that makes the white light the non-admin version is fine
Foxe  [author] 25 Dec, 2013 @ 3:01am 
Did Gmod update recently? As I've mentioned a few times, I'm not in a position to do updates at this time. Need new computer, ya know? lol
Brad 24 Dec, 2013 @ 3:55pm 
Broken, just shows white light that is all and no rainbow effect when fired
Blaugh 23 Nov, 2013 @ 1:39pm 
Increase admin fire rate! :D
Plasmawario 1 Nov, 2013 @ 7:20pm 
i showed my friends how much i love them...with this weapon =P
Foxe  [author] 15 Sep, 2013 @ 12:00pm 
Alright, I'm glad you got it sorted out :D
Guy 15 Sep, 2013 @ 10:47am 
I also installed the other one and it works now.
Foxe  [author] 15 Sep, 2013 @ 10:31am 
If you use two at the same time, it would likely give you an error like that. But if it didn't say anything like "Something is creating errors", then try unsubscribing and resubscribing and restarting gmod, then trying it again. You may of gotten a version that didn't update. I recently did a ton of updating. Let me know if that helps! o:
Guy 15 Sep, 2013 @ 6:42am 
When i use this i only get a rainbow laser that gets stuck on the map.
Foxe  [author] 9 Sep, 2013 @ 4:23am 
For all who are only watching the comments, I've fixed the "spawnable" issue, amongst others. The swep is fully usable now :D
Foxe  [author] 2 Sep, 2013 @ 11:40am 
Hmm, I think I'll have to try that, it makes some sense, and I was kinda thinking that too.
Quirky View 2 Sep, 2013 @ 9:35am 
For some reason the friendship cannon is called "PRINT NAME" with no icon and shooting it doesn't do anything at all. Although in reading your lower comment I think you're supposed to have them both true to be admin only and "SWEP.Spawnable" only for it to be anyone.