]>
git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/log
Mircea Kitsune [Thu, 27 Oct 2011 14:12:36 +0000 (17:12 +0300)]
Apply the previous physics of the object once it's detached, instead of reverting to default MOVETYPE_TOSS
Mircea Kitsune [Thu, 27 Oct 2011 14:02:18 +0000 (17:02 +0300)]
Change some things in the attachment system
Mircea Kitsune [Thu, 27 Oct 2011 13:45:20 +0000 (16:45 +0300)]
Add information messages to the remove command as well
Mircea Kitsune [Thu, 27 Oct 2011 13:42:44 +0000 (16:42 +0300)]
If the object was attached, no longer keep it scheduled for attachment
Mircea Kitsune [Thu, 27 Oct 2011 13:41:00 +0000 (16:41 +0300)]
Add basic warnings and preventions to the attachment commands
Mircea Kitsune [Thu, 27 Oct 2011 13:23:33 +0000 (16:23 +0300)]
Fix detaching of objects. Attached objects are no longer traced (and would be impossible to edit), so the detach function addresses the parent instead. When used, all objects attached to it get detached.
Mircea Kitsune [Thu, 27 Oct 2011 13:11:14 +0000 (16:11 +0300)]
Get object attachment working for the most part
Mircea Kitsune [Thu, 27 Oct 2011 12:47:35 +0000 (15:47 +0300)]
First step in implementing object to object attachment. Only partly working and buggy so far
Mircea Kitsune [Thu, 27 Oct 2011 12:13:48 +0000 (15:13 +0300)]
Calculate impact speed starting from minimum velocity, not actual velocity. Also fix particles so that their count is reduced / increased properly.
Mircea Kitsune [Thu, 27 Oct 2011 11:57:13 +0000 (14:57 +0300)]
Change the way material intensity is calculated, to account the velocity of the object hitting it as well and simplify the code
Mircea Kitsune [Thu, 27 Oct 2011 10:54:57 +0000 (13:54 +0300)]
Particle count should always be a whole number. Also add a code comment
Mircea Kitsune [Thu, 27 Oct 2011 10:48:31 +0000 (13:48 +0300)]
Make particle count and intensity of impact sound depend on the impact speed
Mircea Kitsune [Thu, 27 Oct 2011 10:30:39 +0000 (13:30 +0300)]
Particles for wood and flesh impacts
Mircea Kitsune [Thu, 27 Oct 2011 10:03:05 +0000 (13:03 +0300)]
Particle effects for metal and stone impacts
Mircea Kitsune [Thu, 27 Oct 2011 09:50:05 +0000 (12:50 +0300)]
No material by default. Feels most correct
Mircea Kitsune [Thu, 27 Oct 2011 09:47:15 +0000 (12:47 +0300)]
Properly name the color buttons
Mircea Kitsune [Wed, 26 Oct 2011 21:30:34 +0000 (00:30 +0300)]
Shorten save code
Mircea Kitsune [Wed, 26 Oct 2011 21:27:45 +0000 (00:27 +0300)]
Make the clipboard work again, at the expense of not implementing it exactly how I wanted initially
Mircea Kitsune [Wed, 26 Oct 2011 21:23:09 +0000 (00:23 +0300)]
Attempt to separate saving and loading into separate functions, so they can be used for other forms of storage apart from the clipboard later on. Currently doesn't work, and brakes the clipboard.
Mircea Kitsune [Wed, 26 Oct 2011 16:19:44 +0000 (19:19 +0300)]
Limit impact execution time to avoid sounds playing each frame. Impact sounds can still be triggered every 0.1 second... but to be honest, that sounds kinda cool B-)
Mircea Kitsune [Wed, 26 Oct 2011 16:09:32 +0000 (19:09 +0300)]
Require a minimum velocity for material effects, on either the object or the entity colliding with it
Mircea Kitsune [Wed, 26 Oct 2011 15:47:07 +0000 (18:47 +0300)]
Fix menu name for flesh
Mircea Kitsune [Wed, 26 Oct 2011 15:39:44 +0000 (18:39 +0300)]
Add flesh as a new material. Enjoy spawning player meshes and listening to them crunch against the walls :D
Mircea Kitsune [Wed, 26 Oct 2011 15:35:00 +0000 (18:35 +0300)]
Body impact / crunch sounds. For darker pleasures :P
Mircea Kitsune [Wed, 26 Oct 2011 14:49:01 +0000 (17:49 +0300)]
Improve the stone impact sounds a bit
Mircea Kitsune [Wed, 26 Oct 2011 14:30:03 +0000 (17:30 +0300)]
Name all impact sound files accordingly
Mircea Kitsune [Wed, 26 Oct 2011 14:25:26 +0000 (17:25 +0300)]
Add the no material setting to the menu, but don't default it
Mircea Kitsune [Wed, 26 Oct 2011 14:24:24 +0000 (17:24 +0300)]
Add stone and wood sounds to the code. Also no need to return if material isn't set.
Mircea Kitsune [Wed, 26 Oct 2011 14:21:48 +0000 (17:21 +0300)]
Stone impact sounds by stephan. http://www.pdsounds.org/sounds/assorted_gravel_rock_and_stones
Mircea Kitsune [Wed, 26 Oct 2011 14:04:56 +0000 (17:04 +0300)]
Wood impact sounds, by Independent.nu. http://opengameart.org/content/35-wooden-crackshitsdestructions
Mircea Kitsune [Wed, 26 Oct 2011 13:44:16 +0000 (16:44 +0300)]
Allow objects without a material
Mircea Kitsune [Wed, 26 Oct 2011 13:39:41 +0000 (16:39 +0300)]
Metal impact sounds. There will be 5 sounds per material.
Mircea Kitsune [Wed, 26 Oct 2011 13:39:18 +0000 (16:39 +0300)]
Object materials. They influence what sounds are generated when the object impacts a surface, as well as particles that will be generated. Main material types will be: metal, stone, wood. Currently, only metal has been fully implemented.
Mircea Kitsune [Wed, 26 Oct 2011 12:49:56 +0000 (15:49 +0300)]
Adjust defaults. Also persist all menu settings (seta), which should make it easier for some players I think
Mircea Kitsune [Wed, 26 Oct 2011 12:24:47 +0000 (15:24 +0300)]
Bound the minimum and maximum scale of objects server-side, to avoid griefers being able to spam objects that are either too tiny to trace, or huge enough to block an entire map.
Mircea Kitsune [Wed, 26 Oct 2011 12:10:52 +0000 (15:10 +0300)]
Add damageforcescale as an editable object property
Mircea Kitsune [Wed, 26 Oct 2011 11:04:31 +0000 (14:04 +0300)]
Don't multiply size with scale is scale is 0, causing the bounding box to become 0 itself. This fixes the last known bug
Mircea Kitsune [Wed, 26 Oct 2011 11:00:08 +0000 (14:00 +0300)]
Fix the clipboard color issue. The problem was my own stupidity. Still another bug to solve
Mircea Kitsune [Wed, 26 Oct 2011 10:17:11 +0000 (13:17 +0300)]
use stov instead of stof's where possible. The clipboard is still broken however
Mircea Kitsune [Wed, 26 Oct 2011 09:48:35 +0000 (12:48 +0300)]
Allow setting the object color and glow color of objects. Note that the menu color picker does not work yet, since I need to figure a way around it sending the RGB vector with quotation marks (eg: "0 0 0" instead of 0 0 0).
Mircea Kitsune [Tue, 25 Oct 2011 22:20:32 +0000 (01:20 +0300)]
Allow editing object alpha as well
Mircea Kitsune [Tue, 25 Oct 2011 22:12:15 +0000 (01:12 +0300)]
Divide menu into two sections; Visual object properties, and Physical object properties
Mircea Kitsune [Tue, 25 Oct 2011 22:08:08 +0000 (01:08 +0300)]
Adapt bounding box size to model size
Mircea Kitsune [Tue, 25 Oct 2011 22:02:54 +0000 (01:02 +0300)]
Allow editing the scale of the object
Mircea Kitsune [Tue, 25 Oct 2011 21:27:57 +0000 (00:27 +0300)]
Fix a bug in the sandbox menu
Mircea Kitsune [Tue, 25 Oct 2011 21:25:50 +0000 (00:25 +0300)]
Use another switch
Mircea Kitsune [Tue, 25 Oct 2011 21:21:45 +0000 (00:21 +0300)]
Use switches instead of if checks where possible
Mircea Kitsune [Tue, 25 Oct 2011 21:07:13 +0000 (00:07 +0300)]
Allow editing of object physics
Mircea Kitsune [Tue, 25 Oct 2011 20:53:32 +0000 (23:53 +0300)]
Default frame and skin for newly spawned objects
Mircea Kitsune [Tue, 25 Oct 2011 20:52:07 +0000 (23:52 +0300)]
Add skin and frame to the Sandbox Tools menu. It might be a little confusing at first, but that's the only way to put these settings in the menu that I can think of.
Mircea Kitsune [Tue, 25 Oct 2011 20:21:23 +0000 (23:21 +0300)]
Allow editing the object's skin too. Add both skin and frame to the copied clipboard properties
Mircea Kitsune [Tue, 25 Oct 2011 20:13:47 +0000 (23:13 +0300)]
Implementation of object editing. The first property that can be edited so far is the animation frame of the object.
Mircea Kitsune [Tue, 25 Oct 2011 16:52:05 +0000 (19:52 +0300)]
Use SOLID_BBOX instead of SOLID_BSP. BSP is much better, but can lag the server to bits :/
Mircea Kitsune [Tue, 25 Oct 2011 13:03:58 +0000 (16:03 +0300)]
Menu buttons for Remove, Copy, and Paste
Mircea Kitsune [Tue, 25 Oct 2011 12:56:09 +0000 (15:56 +0300)]
menu_sandbox_spawn_model should be seta, so the last used model can be persisted
Mircea Kitsune [Tue, 25 Oct 2011 12:55:39 +0000 (15:55 +0300)]
First functionality for the sandbox menu. Allows specifying the model in an input field, and spawning the object by button.
Mircea Kitsune [Tue, 25 Oct 2011 12:32:40 +0000 (15:32 +0300)]
Oh... I forgot to return :)
Mircea Kitsune [Tue, 25 Oct 2011 12:31:30 +0000 (15:31 +0300)]
Remove an obvious and useless comment
Mircea Kitsune [Tue, 25 Oct 2011 12:27:47 +0000 (15:27 +0300)]
No need to use == "" or != "" checks for strings. Dunno why I remember those were needed...
Mircea Kitsune [Tue, 25 Oct 2011 12:25:01 +0000 (15:25 +0300)]
Properly strunzone the clipboard, fixing the bug in the last commit
Mircea Kitsune [Tue, 25 Oct 2011 12:13:59 +0000 (15:13 +0300)]
Use a single string to copy and paste object properties (listing each setting), instead of multiple floats and strings. This introduces a new bug: After pasting the object, the clipboard empties, due to string unzoning.
Mircea Kitsune [Tue, 25 Oct 2011 11:53:24 +0000 (14:53 +0300)]
Add a message for invalid commands
Mircea Kitsune [Tue, 25 Oct 2011 11:49:38 +0000 (14:49 +0300)]
Document copying / pasting in the help system
Mircea Kitsune [Tue, 25 Oct 2011 11:44:48 +0000 (14:44 +0300)]
Reorder some code and add movetype to the clipboard, which will be customizable once editing objects is implemented
Mircea Kitsune [Tue, 25 Oct 2011 11:40:39 +0000 (14:40 +0300)]
Copy / paste: Rename arguments, add proper information messages, and don't allow pasting objects if the clipboard is empty
Mircea Kitsune [Tue, 25 Oct 2011 11:29:33 +0000 (14:29 +0300)]
Allow copying and pasting of objects. This is done by saving each object's property to player float / string, then spawning new objects with those properties upon the paste command.
Mircea Kitsune [Tue, 25 Oct 2011 10:27:03 +0000 (13:27 +0300)]
Add Sandbox Tools to all menu skins
Mircea Kitsune [Tue, 25 Oct 2011 10:24:16 +0000 (13:24 +0300)]
Sandbox Tools menu. Works just like the Join Team menu, and is binded to F7 by default. Currently an empty menu, with sandbox commands to follow.
Mircea Kitsune [Tue, 25 Oct 2011 10:00:27 +0000 (13:00 +0300)]
Better default editor distances
Mircea Kitsune [Tue, 25 Oct 2011 09:55:49 +0000 (12:55 +0300)]
Use a shared function for tracing editable objects, as that part of the code will be rather common
Mircea Kitsune [Tue, 25 Oct 2011 09:41:29 +0000 (12:41 +0300)]
Minor tweaks
Mircea Kitsune [Tue, 25 Oct 2011 09:22:22 +0000 (12:22 +0300)]
alias sandbox for "cmd g_sandbox", for easier console usage
Mircea Kitsune [Tue, 25 Oct 2011 09:12:29 +0000 (12:12 +0300)]
Use the correct name for the grab key in the sandbox help system
Mircea Kitsune [Tue, 25 Oct 2011 09:09:51 +0000 (12:09 +0300)]
Add button8 (grab button) to keybinds.txt. Also document the use of grabbing and object_remove in the sandbox help system
Mircea Kitsune [Tue, 25 Oct 2011 08:54:41 +0000 (11:54 +0300)]
More documentation and some minor changes for drag code
Mircea Kitsune [Tue, 25 Oct 2011 08:30:39 +0000 (11:30 +0300)]
Document the new functionality of the Drag system.
Mircea Kitsune [Mon, 24 Oct 2011 23:11:33 +0000 (02:11 +0300)]
Only allow a player to edit / remove his own objects, not any objects on the map
Mircea Kitsune [Mon, 24 Oct 2011 23:08:42 +0000 (02:08 +0300)]
Use a different way to check distance and dragging requirements. This fixes a bug where if a dragged object went out of range, it would be stuck floating until you looked at it again.
Mircea Kitsune [Mon, 24 Oct 2011 22:55:07 +0000 (01:55 +0300)]
Don't un-drag an object if it goes out of range. Only use range to decide whether to pick it up or not
Mircea Kitsune [Mon, 24 Oct 2011 22:51:52 +0000 (01:51 +0300)]
Use a different method of checking grab distance
Mircea Kitsune [Mon, 24 Oct 2011 22:27:00 +0000 (01:27 +0300)]
Don't consider grabbing a cheat if sandbox mode is enabled
Mircea Kitsune [Mon, 24 Oct 2011 22:04:40 +0000 (01:04 +0300)]
Oops, forgot an important line
Mircea Kitsune [Mon, 24 Oct 2011 22:04:06 +0000 (01:04 +0300)]
Allow grabbing to be used for sandbox objects, even when sv_cheats is disabled. The changes to the grabbing code will need to be reviewed a bit, but should work fine.
Mircea Kitsune [Mon, 24 Oct 2011 21:52:28 +0000 (00:52 +0300)]
More changes to the dragging system, to make it usable outside of the cheats code
Mircea Kitsune [Mon, 24 Oct 2011 21:35:14 +0000 (00:35 +0300)]
Attempt to separate the drag function from the cheats code, so the sandbox system can use it too. I hope I did this properly.
Mircea Kitsune [Mon, 24 Oct 2011 20:11:20 +0000 (23:11 +0300)]
Replace traceline() with WarpZone_TraceLine()
Mircea Kitsune [Mon, 24 Oct 2011 20:09:19 +0000 (23:09 +0300)]
Use realowner instead of owner. This seems to not break the collisions
Mircea Kitsune [Mon, 24 Oct 2011 20:07:42 +0000 (23:07 +0300)]
Fix the trace detection issue. Apparently, objects were not being traced because the player was set as their owner. My mind is somewhat blown at this one.
Mircea Kitsune [Mon, 24 Oct 2011 16:54:36 +0000 (19:54 +0300)]
First step to implementing removal of spawned objects. Currently in debugging state, due to a weird bug that causes objects to not get traced.
Mircea Kitsune [Mon, 24 Oct 2011 14:56:36 +0000 (17:56 +0300)]
Oops... forgot to set the object's owner.
Mircea Kitsune [Mon, 24 Oct 2011 14:53:57 +0000 (17:53 +0300)]
Don't give the object all of the player's view angles, just the facing direction. Turning and rolling the model (without ODE physics at least) has some issues, mostly related to the mesh going out of its bounding box.
Mircea Kitsune [Mon, 24 Oct 2011 14:41:05 +0000 (17:41 +0300)]
Add default properties to newly spawned objects
Mircea Kitsune [Mon, 24 Oct 2011 14:29:21 +0000 (17:29 +0300)]
Rename spawn to spawn_object and spawnitem to spawn_item. Also document spawn_item in the help system.
Mircea Kitsune [Mon, 24 Oct 2011 14:25:16 +0000 (17:25 +0300)]
Add a spawnitem command, which allows players to spawn items on the map. Currently, they can only spawn dropped weapons, due to technical limitations. The command is named spawnitem so support for other items can be made possible later on.
Mircea Kitsune [Mon, 24 Oct 2011 13:48:37 +0000 (16:48 +0300)]
Also prevent spawning objects with an incorrect model. If the file doesn't exist, the player will be notified and the object will not be spawned.
Mircea Kitsune [Mon, 24 Oct 2011 13:42:19 +0000 (16:42 +0300)]
Don't allow spawning objects without a model.
Mircea Kitsune [Mon, 24 Oct 2011 13:35:02 +0000 (16:35 +0300)]
Allow the model to be specified from the spawn command.
Mircea Kitsune [Mon, 24 Oct 2011 13:32:38 +0000 (16:32 +0300)]
Cvar the spawning distance of objects. Also give spawned objects an appropriate classname.
Mircea Kitsune [Mon, 24 Oct 2011 13:27:21 +0000 (16:27 +0300)]
Give the player's angles to the object, as he spawns it from behind
Mircea Kitsune [Mon, 24 Oct 2011 13:21:19 +0000 (16:21 +0300)]
Print information about spawned objects to the server by default. Also add information about the spawn command in help.