Garry's Mod

Garry's Mod

Orbital Friendship Cannon (Admin-Only)
82 条留言
Osk13 2023 年 11 月 11 日 下午 9:06 
e
Foxe  [作者] 2020 年 8 月 15 日 上午 5:42 
???
Foxe  [作者] 2020 年 8 月 14 日 下午 6: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  [作者] 2020 年 7 月 28 日 下午 8:30 
As far as I know, it should be. No one has said otherwise.
dr. kleiner 2020 年 1 月 20 日 下午 5: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.
ᶠᵉᵃʳᶠᵘˡᵈᵘᵈᵉ 2017 年 5 月 19 日 下午 8:22 
:p
Foxe  [作者] 2017 年 5 月 19 日 下午 5: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
ᶠᵉᵃʳᶠᵘˡᵈᵘᵈᵉ 2017 年 5 月 19 日 上午 4:42 
I really enjoyed you`re addon sir! But You have a title mistake on the video. It says, "Orbital Friendship Canon"
Foxe  [作者] 2016 年 10 月 3 日 下午 4: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⌬⫸ 2016 年 10 月 3 日 下午 1:39 
Im not
Foxe  [作者] 2016 年 10 月 2 日 下午 6:36 
Huh... You're not trying to fire it indoors, are you?
Otherwise I'm not sure what is happening D:
⫷⌬Naxri Urkax⌬⫸ 2016 年 10 月 2 日 上午 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 2016 年 8 月 9 日 下午 9: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 2016 年 5 月 19 日 下午 4:49 
:D:
cwg 2016 年 1 月 20 日 下午 5:27 
I added this to my server, my friends who aren't admins are able to spawn it.

Can anybody help?
coy1010allen 2015 年 11 月 28 日 下午 4: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  [作者] 2015 年 10 月 30 日 下午 6:53 
Apparently ThoughtWave42 :v
Minus 2015 年 10 月 30 日 上午 1:59 
Who thought it would be a good idea to weaponize Rainbow Dashes Sonic Rainboom?
ParaAurora 2015 年 10 月 11 日 下午 7:46 
wai-wait a second is that what is think it is if so. Wow
Amber Slime 2015 年 10 月 3 日 上午 7:33 
That was either Rainbow Dash or a trail mix loving pig (LOLOLOL MINECRAFT MOD JOKE)
mateuszVIP2013@onet.pl 2015 年 8 月 28 日 上午 4:44 
rainbow dash made this supersonic boom
Foxe  [作者] 2014 年 12 月 1 日 下午 2:32 
Awesome! :D And you're welcome~
Laser Guided Anime Fish 2014 年 12 月 1 日 上午 9:40 
And the fix solved my issue! Thanks for the quick reply! :D:
Foxe  [作者] 2014 年 12 月 1 日 上午 5:10 
And finished uploading fix. I hope that issue is solved D:
Foxe  [作者] 2014 年 12 月 1 日 上午 5:03 
.... Okay, found one possible error, one item had a repeat of ao in it.
Uploading fix in a few moments here.
Foxe  [作者] 2014 年 12 月 1 日 上午 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  [作者] 2014 年 12 月 1 日 上午 4:30 
Fresh map? First thing you do? Default sandbox map?
Laser Guided Anime Fish 2014 年 11 月 30 日 下午 9:07 
What's happening with me is happening in single player, even when I fire only once.
Foxe  [作者] 2014 年 11 月 30 日 下午 7: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 2014 年 11 月 30 日 下午 6: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 2014 年 10 月 11 日 下午 10:30 
Thank you for a quick and concise answer.
Foxe  [作者] 2014 年 10 月 11 日 下午 10: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 2014 年 10 月 6 日 上午 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 2013 年 12 月 27 日 上午 11:19 
Hm, i really dont know what could be the problem then if both codes are identical
Foxe  [作者] 2013 年 12 月 27 日 上午 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 2013 年 12 月 26 日 上午 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  [作者] 2013 年 12 月 26 日 上午 12: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 2013 年 12 月 25 日 上午 6:06 
tested on my server and the non-admin version is fine i just easily made it admin with my admin mod
Brad 2013 年 12 月 25 日 上午 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  [作者] 2013 年 12 月 25 日 上午 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 2013 年 12 月 24 日 下午 3:55 
Broken, just shows white light that is all and no rainbow effect when fired
Blaugh 2013 年 11 月 23 日 下午 1:39 
Increase admin fire rate! :D
Plasmawario 2013 年 11 月 1 日 下午 7:20 
i showed my friends how much i love them...with this weapon =P
Foxe  [作者] 2013 年 9 月 15 日 下午 12:00 
Alright, I'm glad you got it sorted out :D
Guy 2013 年 9 月 15 日 上午 10:47 
I also installed the other one and it works now.
Foxe  [作者] 2013 年 9 月 15 日 上午 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 2013 年 9 月 15 日 上午 6:42 
When i use this i only get a rainbow laser that gets stuck on the map.
Foxe  [作者] 2013 年 9 月 9 日 上午 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  [作者] 2013 年 9 月 2 日 上午 11:40 
Hmm, I think I'll have to try that, it makes some sense, and I was kinda thinking that too.
Quirky View 2013 年 9 月 2 日 上午 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.