Garry's Mod

Garry's Mod

Orbital Friendship Cannon (Admin-Only)
82 kommentarer
Osk13 11. nov. 2023 kl. 21:06 
e
Foxe  [ophavsmand] 15. aug. 2020 kl. 5:42 
???
Foxe  [ophavsmand] 14. aug. 2020 kl. 18:04 
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  [ophavsmand] 28. juli 2020 kl. 20:30 
As far as I know, it should be. No one has said otherwise.
dr. kleiner 20. jan. 2020 kl. 17:58 
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.
SomeFearsomeDude 19. maj 2017 kl. 20:22 
:p
Foxe  [ophavsmand] 19. maj 2017 kl. 17:58 
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
SomeFearsomeDude 19. maj 2017 kl. 4:42 
I really enjoyed you`re addon sir! But You have a title mistake on the video. It says, "Orbital Friendship Canon"
Foxe  [ophavsmand] 3. okt. 2016 kl. 16:50 
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
⫷⌬Naxri Urkax⌬⫸ 3. okt. 2016 kl. 13:39 
Im not
Foxe  [ophavsmand] 2. okt. 2016 kl. 18:36 
Huh... You're not trying to fire it indoors, are you?
Otherwise I'm not sure what is happening D:
⫷⌬Naxri Urkax⌬⫸ 2. okt. 2016 kl. 7:42 
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 kl. 21:40 
@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
balenciaga 19. maj 2016 kl. 16:49 
:D:
cwg 20. jan. 2016 kl. 17:27 
I added this to my server, my friends who aren't admins are able to spawn it.

Can anybody help?
coy1010allen 28. nov. 2015 kl. 16:07 
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  [ophavsmand] 30. okt. 2015 kl. 18:53 
Apparently ThoughtWave42 :v
Minus 30. okt. 2015 kl. 1:59 
Who thought it would be a good idea to weaponize Rainbow Dashes Sonic Rainboom?
ParaAurora 11. okt. 2015 kl. 19:46 
wai-wait a second is that what is think it is if so. Wow
Amber Slime 3. okt. 2015 kl. 7:33 
That was either Rainbow Dash or a trail mix loving pig (LOLOLOL MINECRAFT MOD JOKE)
Security Cam #7 28. aug. 2015 kl. 4:44 
rainbow dash made this supersonic boom
Foxe  [ophavsmand] 1. dec. 2014 kl. 14:32 
Awesome! :D And you're welcome~
Laser Guided Anime Fish 1. dec. 2014 kl. 9:40 
And the fix solved my issue! Thanks for the quick reply! :D:
Foxe  [ophavsmand] 1. dec. 2014 kl. 5:10 
And finished uploading fix. I hope that issue is solved D:
Foxe  [ophavsmand] 1. dec. 2014 kl. 5:03 
.... Okay, found one possible error, one item had a repeat of ao in it.
Uploading fix in a few moments here.
Foxe  [ophavsmand] 1. dec. 2014 kl. 4:43 
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  [ophavsmand] 1. dec. 2014 kl. 4:30 
Fresh map? First thing you do? Default sandbox map?
Laser Guided Anime Fish 30. nov. 2014 kl. 21:07 
What's happening with me is happening in single player, even when I fire only once.
Foxe  [ophavsmand] 30. nov. 2014 kl. 19:27 
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 kl. 18:08 
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. okt. 2014 kl. 22:30 
Thank you for a quick and concise answer.
Foxe  [ophavsmand] 11. okt. 2014 kl. 22:12 
@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. okt. 2014 kl. 3:57 
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 kl. 11:19 
Hm, i really dont know what could be the problem then if both codes are identical
Foxe  [ophavsmand] 27. dec. 2013 kl. 3:35 
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 kl. 10:05 
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  [ophavsmand] 26. dec. 2013 kl. 0:48 
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 kl. 6:06 
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 kl. 6:05 
Foxe, got news for some reason its ONLY the admin gun that makes the white light the non-admin version is fine
Foxe  [ophavsmand] 25. dec. 2013 kl. 3:01 
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 kl. 15:55 
Broken, just shows white light that is all and no rainbow effect when fired
Blaugh 23. nov. 2013 kl. 13:39 
Increase admin fire rate! :D
Plasmawario 1. nov. 2013 kl. 19:20 
i showed my friends how much i love them...with this weapon =P
Foxe  [ophavsmand] 15. sep. 2013 kl. 12:00 
Alright, I'm glad you got it sorted out :D
Guy 15. sep. 2013 kl. 10:47 
I also installed the other one and it works now.
Foxe  [ophavsmand] 15. sep. 2013 kl. 10:31 
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 kl. 6:42 
When i use this i only get a rainbow laser that gets stuck on the map.
Foxe  [ophavsmand] 9. sep. 2013 kl. 4:23 
For all who are only watching the comments, I've fixed the "spawnable" issue, amongst others. The swep is fully usable now :D
Foxe  [ophavsmand] 2. sep. 2013 kl. 11:40 
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 kl. 9:35 
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.