• Heavenly Bodies
    8 replies, posted
I made a base for entities that can orbit each other, that's pretty much all there is too it. You can change their mass and size. A gif of them: [img]http://errur.com/i/images/3986_orbits.gif[/img] Download: [url=http://www.garrysmod.org/downloads/?a=view&id=93705][img]http://www.garrysmod.org/img/?t=dll&id=93705[/img][/url] How to Create New Bodies: [b]Step 1:[/b] Create a duplicate of the base, and rename the folder, but make sure to keep the 'hb_' at the beginning! [b]Step 2:[/b] Open all three files. [b]Step 3:[/b] In cl_init.lua, change the model scal to what you want. [b]Step 4:[/b] In the shared.lua, change the name to what you want. [b]Step 5:[/b] In the init.lua, set the mass. [b]Step 6:[/b] After you do that, set the size to the same as in the cl_init.lua. [b]Step 7:[/b] Change the class name in the spawning function to the name of the folder. Have fun.
This looks fun, too bad source can't handle prop -> player movement very well, but we might end up with a mod for that.
:/
:\
:v:
i'm still working on making this more realistic sadly, it's not coming along all that fast (i figured out how to make a white hole that pushes things away! :D)
White hole? As in negative mass/density? Looks okay.
It'd be nice if we could change the mass,model,and other settings in-game using console commands,then possibly writing them to a new data file? I don't know,just a suggestion. This looks nice.
When I saw this thread I thought it was a script that made dead bodies fly to heaven (I had forgotten what forum I was in). :frown: Anyways I'll try it, I guess.
Sorry, you need to Log In to post a reply to this thread.