Create an account


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A Garry's Mod / sandbox system

#17
More changes done today. Database storage and copying / pasting now works with attachments. You can attach objects to other objects on any bone, and the storage + clipboard will re-create the whole set. Attachments are persisted in the same text line as the main object, and separated by a ; symbol. Please note that you cannot do chain attachments (attaching to other attachments), as they would be incompatible with the sandbox for many reasons.

I also added a neat new feature. The object clipboard is no longer stored in a server string, but set to / from a client cvar (cl_sandbox_clipboard by default). This allows some great possibilities... such as having multiple clipboards, client-defined object presets (spawning a given object with a shortcut anytime anywhere), being able to export your objects and post them online as a simple line of text (like forums or twitter), and best of all you can copy and paste between servers.

Say you find an object you like on a sandbox enabled server, and have the right to copy it. You want to put it on your own server, or bind it to a key and spawn it anytime. With the new cvar clipboard, you simply walk to it and copy it like before, press F11 to disconnect, go to your server (or any server you wish), and hit the paste button. Your object and its attachments will be pasted there, exactly like you copied them Big Grin

Further more, real men can use the paste command to create objects from the console. If you don't specify a cvar, you can write each object property by hand. For that however, you need some insane skills and patience. Still, the challenge can be taken Wink

Here's an example. The line below is an erebus holding a pink-glowing rocket launcher. Simply set cl_sandbox_clipboard to this line (careful with the quotation marks, they can be tricky) and click the Paste button in the sandbox menu. If all goes well, he should appear there. Let me know if this worked for you if you give it a try, since I'd like to hear Smile

Code:
\"models/player/erebus.iqm\" 0 0 \"0 0 0\" \"0 0 0\" 7 0 6 1 \"metal\" ; \"bip01 r hand\" \"models/weapons/v_rl.md3\" 0 0 \"0 0 0\" \"0.995895028 0.135713995 1\" 0 0 6 1 - ;
Reply



Messages In This Thread
A Garry's Mod / sandbox system - by MirceaKitsune - 10-23-2011, 03:56 PM
RE: A Garry's Mod / sandbox system - by CuBe0wL - 10-25-2011, 10:52 AM
RE: A Garry's Mod / sandbox system - by tZork - 10-27-2011, 01:41 PM
RE: A Garry's Mod / sandbox system - by MirceaKitsune - 10-29-2011, 04:43 PM
RE: A Garry's Mod / sandbox system - by Creation - 11-23-2011, 04:22 AM
RE: A Garry's Mod / sandbox system - by Ihsan - 11-24-2011, 04:59 PM
RE: A Garry's Mod / sandbox system - by 3agle427 - 01-05-2019, 10:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Source code for Peach Mod daveblanchard 4 2,434 03-30-2021, 10:34 AM
Last Post: LegendGuard
  Spawn system Mirio 57 42,079 05-28-2016, 03:49 AM
Last Post: Smilecythe
  [Mod] Antiwall Penguinum-tea 8 7,109 04-25-2015, 12:20 PM
Last Post: Penguinum-tea
Lightbulb Easy to configure *map* balance system Samual 8 12,163 11-17-2012, 04:14 AM
Last Post: Mr. Bougo
  Bone based damage system (feature vote and debate) MirceaKitsune 42 45,843 05-17-2012, 01:29 AM
Last Post: CuBe0wL
  How do I use the newer 48 slot weapon system? May Epper 1 3,856 04-20-2012, 01:28 AM
Last Post: Mr. Bougo
  Singleplayer Story Mod darthlukan 3 5,403 08-11-2011, 04:25 PM
Last Post: ThePWTULN
  Automated build system update Nitroxis 1 4,246 06-11-2011, 02:18 PM
Last Post: Cortez666
  Automated Xonotic Git build system Mr. Bougo 72 88,167 01-27-2011, 08:20 PM
Last Post: Samual
  "Global player stats tracking system, supporting anonymous player as well" atheros 30 32,775 06-18-2010, 03:57 PM
Last Post: unfa

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-