Author Topic: Random gravity?  (Read 8773 times)

0 Members and 1 Guest are viewing this topic.

Offline sweetone

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 2
Random gravity?
« on: December 06, 2011, 01:30:18 PM »
Hi!

What do you think about a random gravity? Like every 10 seconds there activates a zerogravity for 30seconds or something like that. :D

This is what im suggesting to be a part of ulx.

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: Random gravity?
« Reply #1 on: December 06, 2011, 04:44:44 PM »
I could see that being less part of ULX and more just a random addon someone *might* be interested in making if they like the idea.
My TTT server. Join the fun!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Random gravity?
« Reply #2 on: December 06, 2011, 08:04:05 PM »
Actually, I could see this being added to ULX as one of the first new features added in a long time.
It's been a while since we've added a fun new "not needed" feature. I mean, hey, maul was one of the last ones. Imagine being mauled while in 0 gravity. (wonder if that would even work?!)
I do not see doing it myself though, and would hope one of our community members would do it.
I'm not saying we WILL, but, we MIGHT edit/clean/check for ULX codestyle and compatibility, and add it with credit in the readme and code if we liked it well enough.
Here's how I see it being done.
There would be default limits. Typing ulx <grav?> by itself would totally disable gravity for, say, 30 seconds?
"ulx grav -1" would <disable/increase/decrease gravity within default command limits> for <minimum/maximum time within default command limits>
ulx grav itself, if not randomized with -1, would allow for say, -3x to +3x normal gravity, defaulting to none if not specified, for say, no less than 30 seconds, up to unlimited time... ulx command structure would allow setting of enforced time limits for non superadmins. (Example, superadmin could set unlimited, but admins could only do up to 10 minutes)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline sweetone

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 2
Re: Random gravity?
« Reply #3 on: December 07, 2011, 07:36:49 AM »
Actually, I could see this being added to ULX as one of the first new features added in a long time.
It's been a while since we've added a fun new "not needed" feature. I mean, hey, maul was one of the last ones. Imagine being mauled while in 0 gravity. (wonder if that would even work?!)
I do not see doing it myself though, and would hope one of our community members would do it.
I'm not saying we WILL, but, we MIGHT edit/clean/check for ULX codestyle and compatibility, and add it with credit in the readme and code if we liked it well enough.
Here's how I see it being done.
There would be default limits. Typing ulx <grav?> by itself would totally disable gravity for, say, 30 seconds?
"ulx grav -1" would <disable/increase/decrease gravity within default command limits> for <minimum/maximum time within default command limits>
ulx grav itself, if not randomized with -1, would allow for say, -3x to +3x normal gravity, defaulting to none if not specified, for say, no less than 30 seconds, up to unlimited time... ulx command structure would allow setting of enforced time limits for non superadmins. (Example, superadmin could set unlimited, but admins could only do up to 10 minutes)

:) just like that. Any change to add there some random options like.. gravity disabled for 30seconds by every 5minutes? :D We've been trying this with E2 and field generator it's fun when all props fly around haha. :D

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: Random gravity?
« Reply #4 on: December 07, 2011, 07:36:19 PM »
Actually, I could see this being added to ULX as one of the first new features added in a long time.
:o
I'm not opposed to it, but I didn't see that coming! hahaha
I'll no longer give out the standard respons as someone not on the actual team. Humbled.  ;D
My TTT server. Join the fun!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Random gravity?
« Reply #5 on: December 07, 2011, 08:33:02 PM »
Re: Random ... -1 would pretty much do that for both grav and time, though the 'how often' would be an additional option, defaulting to once if no randomness set.

Re: Krooks - Response - no worries. I in no way intended to humble you, and please, continue sharing your thoughts.
 In all honesty, that is our usual response.
Most suggestions here, though many are good, don't fit ULX simplicity and "administration" purpose, and  your (and our) normal response "not in ULX, but perhaps a module " fits.
This one, though the randomness ideas involved complicate it a bit, do add an additional option to the 'server settings' of server administration ULX is intended for.
Now, if only someone would write it. :)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Random gravity?
« Reply #6 on: December 08, 2011, 12:49:14 AM »
If you guys want to wait about 12 months, I'd be happy to take this project on...


#NoGModSucks :(

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Random gravity?
« Reply #7 on: December 08, 2011, 04:12:09 AM »
I can wait. :)
Let's see if others can.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Random gravity?
« Reply #8 on: December 08, 2011, 06:02:09 AM »
If someone is feeling particularly generous, you could always put your GMod's .gcf files onto a DVD or 3 and mail them to me. :) I think if I had that Steam would unlock it and it'd be playable with little to no downloading. hah.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Random gravity?
« Reply #9 on: December 11, 2011, 08:11:11 PM »
Sounds easy enough.  I could probably get it done in less than an hour.  I'll see what I can do tomorrow.

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: Random gravity?
« Reply #10 on: December 12, 2011, 07:33:32 PM »
If I could rate posts, I'd rate yours "winner"   ;D
My TTT server. Join the fun!

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Random gravity?
« Reply #11 on: December 13, 2011, 02:46:31 PM »
I forgots about it.  I'll start now.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Random gravity?
« Reply #12 on: December 13, 2011, 03:27:09 PM »
It isn't done, but is this something like what you guys had in mind?
Code: [Select]
------------------------------ Grav ------------------------------
function ulx.grav( calling_ply, gravity, seconds )
for k,v in pairs( player.GetAll() ) do
v:SetGravity( gravity )
end
timer.Simple( seconds, function()
for k,v in pairs( player.GetAll() ) do
v:SetGravity( 1 )
end
end )
ulx.fancyLogAdmin( calling_ply, "#A set gravity to #i for #i seconds", gravity, seconds )
end
local grav = ulx.command( CATEGORY_NAME, "ulx grav", ulx.grav, "!grav" )
grav:addParam{ type=ULib.cmds.NumArg }
grav:addParam{ type=ULib.cmds.NumArg }
grav:defaultAccess( ULib.ACCESS_ADMIN )
grav:help( "Randomizes gravity for everyone." )

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Random gravity?
« Reply #13 on: December 13, 2011, 06:14:01 PM »
Sounds easy enough.  I could probably get it done in less than an hour.  I'll see what I can do tomorrow.
I forgots about it.  I'll start now.

Sheesh man...whatever you do...don't blink.
SQUIRREL!

re: Code sample.
Yeah, lookin along the right lines.
Add the default vars/randomization ideas..throw in cmds.PlayersArg...etc etc.

MrPres...still got plans for you man...just may be a while. Not found time to research.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Random gravity?
« Reply #14 on: December 13, 2011, 08:17:11 PM »
Sounds easy enough.  I'll get her done tomorrow some time.