• Weapon Spawner
    6 replies, posted
Oh no, not another asinine request by Strawberry. I was wondering if a weapon spawning plate exists - effectively a small disk that periodically spawns random pickupable weapons, a la [url]http://www.garrysmod.org/downloads/?a=view&id=99245[/url] NPC spawner plate, preferrably with an option to delete the spawned pickups after an allotted time so weapons don't just pile up. It seems like this would be pretty easy to derive from the NPC spawner code, but then again, I am very very weak in the ways of the LUA, so it may well prove impossible. If anyone is willing to take time out of their schedule to attempt this or inform me of one that has already been done, I'd very much appreciate it.
i can probably do this, but I don't feel like it because it would take a long time.
Hah, yeah, I totally understand - If I was in your position, I highly doubt I'd help myself. (Which is probably a sign my requesting license should be revoked...) I'm just hoping there's someone with no life lurking this forum.
No need to be self deprecating, (unless you've done a lot of this shit and I haven't noticed), because I quite like the idea. I'm planning on doing it a different way to the one you thought, but I think you'll like it.
Done. [url]http://www.garrysmod.org/downloads/?a=view&id=100675[/url] And @ "I'm just hoping there's someone with no life lurking this forum." Thanks for that. xD
Awesome. I've used it on a 4-person server for a few hours now, and works pretty great, however, a minor problem: *If the spawner platform is 'undone', 'removed', or just plain exploded via PewPew, the game will get lots of LUA errors until the now pedestal-less floating weapon is picked up. Other than that, it's exactly what I imagined. (Though I am really interested in what Lexic will do with the concept!)
[QUOTE=StrawberryChan;22545520]Awesome. I've used it on a 4-person server for a few hours now, and works pretty great, however, a minor problem: *If the spawner platform is 'undone', 'removed', or just plain exploded via PewPew, the game will get lots of LUA errors until the now pedestal-less floating weapon is picked up. Other than that, it's exactly what I imagined. (Though I am really interested in what Lexic will do with the concept!)[/QUOTE] Hmmm... I get no errors, but I'll look into it all the same. [editline]07:04PM[/editline] Adding this line; if not self.Spawner:IsValid() then self.Entity:Remove();return end To entities/sent_weaponpickup/init.lua right after; if not self.Spawner then return end Should fix it.
Sorry, you need to Log In to post a reply to this thread.