Garry's Mod

Garry's Mod

(CBH's Trains) Class 08 Shunting Locomotive
Showing 21-27 of 27 entries
< 1  2  >
Update: 22 Aug, 2016 @ 5:44pm

Added Wheel textures (Yellow rod skin) and will be coded to work with other main body skins in next update.

Update: 21 Aug, 2016 @ 6:54am

Forgot to change animation speed.

Update: 21 Aug, 2016 @ 6:49am

I fixed the issue where the wheel animation played in reverse was slow (played in reverse is actually the what it looks like when the loco is moving forwards). When an animation in source is looping in reverse its max speed is something tied with its frame amount, old animation had 4 fps, now it has 30 fps. It didn't do this while being played normally though(When loco was moving in reverse)

Update: 20 Aug, 2016 @ 2:17pm

None Provided

Update: 20 Aug, 2016 @ 12:31pm

Many changes and fixes have been made (Even though no reports of these errors, I have found them in my own testing and fixed them)

• You can now control throttle even if the engine is off
• Fixed an issue that a loco can drive if the engine is off but the throttle is anything besides 0. This was a lazy mistake I made as I quickly made it so one can push the throttle up/down and leave the cab and have the loco propell itself, but forgot to check the engine state.
• Added engine state to the GUI panel. You can now see if the engine is : Off, Powering Up, Running, Or Powering Down
• Edited the Throttle information show in the GUIm it used to read out as " something% Throttle", now it is "Throttle: something%"
• Fixed bandwith usage from sending all the data to to clients to show changed and show on GUI, see below for specifics
• Replaced net.Broadcast() with net.Send(ply) so that only the drivers client gets the new information via the internet(server to client)
• With net.Send(), all information is now stored on each client seperatly, so instead of tables of data on each client for every driver, its now 3 variables on each client for on that client.

• Fixed the all the timers so that if the vehicle is removed while the timers are on, they don't error out becuse it can't reference the vehicle anymore.
• Added engine sounds fading out when powering down. They used to just stop, but now they fade out.
• Cleaned up some code.
• Removed some redundant check and other math that happens behind the scenes, so this saves a bit of computing power.
• Made all functions local, this is made so that this mod is compatable with all other mods.
• Made the script more prefabricated, this allows me to easily implement this into new mods, as well as change old mods onto this script.

Update: 19 Aug, 2016 @ 8:53pm

Added LUA file, forgot it

Update: 19 Aug, 2016 @ 8:47pm