Stable2.6.3
UPDATE
- Fixed French translation.
Only the language file has been updated.
Stable2.6.2
UPDATE
- Fixed a rare bug where the fire counter could go in negative.
Updated file: lua/entities/fire/init.lua
Stable2.6.1
UPDATE
- Added developer hook when extinguishing fire.
- hook.Run( "CH_FireSystem_ExtinguishFire", ply, extinguish_pay )
- Added missing translations.
Stable2.6.0
UPDATE
- Fixed an error when a player disconnected with an active firetruck.
Stable2.5.9
UPDATE
- Fixed fire axe not passing who is giving damage when hitting players.
- Call
PlayerSpawnedVehiclehook when spawning firetruck to fix compatibility with some firetrucks from the workshop. - Replaced a few
pairswithipairsloops. - Replaced
#player.GetAll()withplayer.GetCount()for optimization. - Replaced a
Distancecheck withDistToSqrfor optimization. - Replaced non-unique variable name with unique variable name.
- Optimized the way a players firetruck is detected and removed.
- Now using CPPI instead of NW vars for ownership on firetruck for optimization.
Stable2.5.8
UPDATE
- Added support for several XP systems.
- Support for Sublime Levels, Vrondakis Level System, Elite XP System (EXP2), DarkRP Essentials, Brick's Essentials and GlorifiedLeveling.
- Enable the XP system you use at the bottom of the configuration file.
- Give XP when extinguishing fire.
- Added config
CH_FireSystem.Config.ExtinguishFireMinXP - Added config
CH_FireSystem.Config.ExtinguishFireMaxXP - It randomizes the XP given based on these two configs.
- Replaced deprecated function self.Owner with GetOwner.
- Now uses ipairs where possible.
- Right clicking with fire axe now just works like if you left click.
Stable2.5.7
UPDATE
- Removed global functions.
- Added distance check security when spawning fire truck from NPC.
- Replaced pairs with ipairs for optimization.
- Added admin chat commands to execute the normal admin console commands.
- Config
CH_FireSystem.Config.ChatCommandFireOff - Config
CH_FireSystem.Config.ChatCommandSpawnFire - Config
CH_FireSystem.Config.ChatCommandValidFires - Config
CH_FireSystem.Config.ChatCommandStartAllFires - Config
CH_FireSystem.Config.ChatCommandFireAmount
Stable2.5.6
UPDATE
- Fixed being able to kill NPC's after latest GMod update.
- Fixed extinguisher cabins taking damage.
Updated files: lua/entities/npc_firetruck/... and lua/entities/ch_fire_extinguisher_cabinet/...
Stable2.5.5
UPDATE
- Fixed a problem with the new 3D2D overhead.
This is a hotfix for the last update. File to be updated: lua/entities/npc_firetruck/cl_init.lua
Stable2.5.4
UPDATE
- The addon now comes with 2 fire trucks by default.
- E-One Cyclone II Ladder
- Heavy Rescue Firetruck
- Added a job category by default "Fire Department" to the F4 menu.
- You can remove this in
shared/fire_darkrpadds.lua - Added a category to the shipments that comes with the script.
- Added console command to delete all fire spawn locations.
- Console command for admins
ch_remove_fire_all - Cached some colors and materials.
- New 3d2d overhead for the fire truck NPC.
- Enabled via config
CH_FireSystem.Config.OverheadTextDisplay
The content pack has been updated on the workshop to include new overhead and firetrucks.
Additionally I have pre-configured multiple fire trucks. You can find the code and how to add them via the knowledge base https://www.gmodstore.com/help/addon/e1-CoNs0SYKh7mIOVRqYsw/adding-firetrucks
Stable2.5.3
UPDATE
- Removed redundant code.
- Removed config table
CH_FireSystem.Config.FiretruckModels - All firetruck models are now automatically added to the table upon server initializing.
- This easens the setup process :)
- Fixed config not supporting lua autorefresh.
- Fixed
CH_FireSystem.Config.ExtinguishAllFiresOnFFLeavenot applying. - Removed global variable AdvancedWeapons.
- Added distance check for 3d2d on firetruck NPC.
- Config option
CH_FireSystem.Config.DistanceTo3D2D - Applied new config to fire cabinets 3d2d distance instead of hardcoded.
- Increased fire emitter interval to decrease server load.
- Replaced Distance with DistToSqr for optimization.
- Added meta function
ply:IsFireFighter() - Added meta function
ent:IsFireTruck()