-
Notifications
You must be signed in to change notification settings - Fork 2
Source Code File Structure
Vidar Ekblad edited this page Mar 12, 2021
·
14 revisions
LevelMod source
- Collision.h - collision flags
- Commands.h - LevelMod commands
- Source.cpp - Main source file (before LevelMod became open source all source was in this file, so it's kinda messy)
- pch.h/pch.cpp - Precompiled header files
Here you can find the files needed to write your own extension plugin
- Defines.h/Defines.cpp - macros and debug print function
- Extension.h/Extension.cpp - includes needed files and shows an example script
- Globals.h/Globals.cpp - Global variables and functions
- Framework.h - Windows include files
Here you can find dissambled game structures
- GameMode.h/GameMode.cpp - GameMode structure
- Observe.h/Observe.cpp - Custom Observe Mode code
- SkateModule.h - SkateModule struct
- Skater.h/Skater.cpp - Core Skater struct
- FrontEnd.h - menus and other GUI related
Here you can find bugfixes and other hooking related code
- Bugfixes.h/Bugfixes.cpp - some of the bugfixes
Here you can find code for xinput and dinput
- CXBOXController.h/CXBOXController.cpp - XINPUT struct
- KeyState.h/KeyState.cpp - Game keystate wrapper code
Code related to memory
- Memory.h/Memory.cpp - in-game mallocx and freex functions
- String.h/String.cpp - Permanent string heap handler
Here you can find all network related code
- HTTPRequest.h - old http request code
- Net.h/Net.cpp - Here you can add your own custom net messages
Here you can find the dissambled game objects
- Mesh.h/Mesh.cpp - Renderable mesh
- Model.h/Model.cpp - Movable mesh container
- SuperSectors.h/SuperSectors.cpp - Static mesh container
- Rail.h - RailNodes
Here you can find code related to games physics
- Physics.h/Physics.cpp - new tricks and physics bugfixes
- Shatter.h/Shatter.cpp - new shatter code
Here you can find the custom render code
- CustomShaders.h/CustomShaders.cpp - RenderHook that apply new blendmodes, animations and shader effects
- shadow.h - shadow rendering(currently not finished)
Here you can find code related to RenderWare engine
- RenderWare.h - RenderWare Engine + th3 plugins
Here you can find code related to Neversoft Script engine
- Checksum.h/Checksum.cpp - Generate CRC32, both compile-time and runtime
- Node.h/Node.cpp - Script array struct, used in NodeArray and all other scripted arrays
- QBKey.h - QBKeyHeader struct, each QBKey in the scripts will get generate a header at runtime
- Script.h/Script.cpp - QB <-> c++
Here you can find code related to LevelMod.ini settings
- IniReader.h/IniReader.cpp - Read ini files
- IniWriter.h/IniWriter.cpp - Write ini files
- Settings.h/Settings.cpp - All settings that are not applied in scripts are applied here
GameLogic Timer and FPS limit Timer functions
Intercepts d3d8 calls and send them to d3d9
zip and unzip archive