Good work. :winner:
Changes:
- Updated gmod version check and the hard-coded revisions number that Wire_PrintVersion shows.
lua/autorun/Wire_Load.lua
weapons/gmod_tool/stools/wire.lua
lua/wire/UpdateCheck.lua
- Put the SWEPs and ENTs to here own wiremod Category.
lua/entities/gmod_wire_hoverdrivecontroler/shared.lua
lua/entities/sent_deployableballoons/shared.lua
lua/weapons/RemoteController/shared.lua
weapons/laserPointer/shared.lua
- Added a play and a stop buttons to the sound emitter stool, so you can play the sound to try the sound without making a sound emitter or open the sound browser. The save system of the browser was also changed, the sound emitter has his own saving now. The sound browser open the parent folder of the sound set in the sound emitter, when you open it via the stool.
lua/wire/client/sound_browser.lua
lua/wire/stools/display.lua
- Changed the unit converting system to fit with the latest tf2 engine of gmod. The length and speed units are changed from 1 source unit = 1 inch to 1 source unit = 0.75 inches. A source unit isn't 1 inch long, it's 0.75 inches long. Also added u (source unit, default length unit), u/s (default speed unit), u/m and u/h to the e2 unit converter. More infos here: Dimensions - Valve Developer Community!
lua/entities/gmod_wire_expression2/core/unitconv.lua
lua/entities/gmod_wire_speedometer/init.lua
Patch:
fixes and cleanups.patch
I hope you like it.![]()
Good work. :winner:
Isn't that last one going to break almost all existing uses of unit conversion?
0a3c696d6d696269733e092e2e2e7774662c20776879206973 20746865726520612068696464656e20666f72756d2063616c 6c6564206469783f200a3c4a6174476f6f6477696e3e093e2e 3e200a3c4a6174476f6f6477696e3e093c2e3c200a3c49616d 4d634c6f76696e3e094e4f200a3c49616d4d634c6f76696e3e 094e4f204e4f204e4f204e4f204e4f
Hmm, I think no, because it seem be not used often, the only use is to show you something on a screen in a another unit that inches or source units. E2 that uses some advanced physic stuff like applyForce() always took source units and source units are the same than before the patch and something like E:vel() or V:length() always returned the speed or the length in source units/s or source units.
And even if some thing brake then you can fix it easily.![]()
I don't know if it's such a great idea to change unit conversion. For me, it's fine, but it might not be for other people.
SVN Tutorial
My SVN:Get dropbox and get 250 MB extra space: DropboxCode:http://divranspack.googlecode.com/svn/trunk/%20divranspack/
I don't think changing the unit conversion will seriously affect any contraptions and if it does its not hard to fix.
Anticept - HP you are terrible at trolling. Always have been. Leave it up to the pros like Jat.
Black Phoenix - Actually cunt goes into bullshit. Bullshit does not fit in cunt.
Drunkie - Logically, Jat Goodwin must be a fist pumping guido.
The units that the holos uses are the same then before, the source units wasn't never equal to to inches (I think). The worst things with holos that may can happen is that they that uses values from toUnit, fromUnit or convertUnit are getting smaller or bigger, the only functions of the e2 that are changed are toUnit, fromUnit or convertUnit (just indirect). More complex stuff usually uses the default unit of source that got mistaken with inches.![]()
Last edited by Grocel; 08-26-2010 at 05:59 PM.
I agree with updating the unit conversion. Imo its not used very often (partly cos everyone knows they are wrong) and where it is used, its often just for displaying to the user (for example speedometers).
Comprehensive Gmod physics guide - Ballistic trajectory with drag - Autodyno engine performance test
Don't make the mistake these skydivers did and use any of my Gmod physics models for real life situations...
Bookmarks