Skip to content

Sewer56/FlatOut2.SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FlatOut2.SDK

A collection of definitions/library for modding FlatOut 2 with Reloaded-II, using .NET & C#.

No grandiose readme here, just a personal use library. I add little features here and there as I make new mods; and of course, contributions are always welcome 😇.

Prerequisites

If you are unfamiliar with hacking using Reloaded-II, the Reloaded Wiki might be helpful.

Getting Started

  • Clone this repository/add as submodule.
  • Add this project (as existing project) to your solution (.sln).
  • Add project reference to FlatOut2.SDK in your mod.

In your mod's entry point Mod(), add the following line:

SDK.SDK.Init(_hooks!);

You are now good to go.

Note: If your Reloaded Mod Template is old, you might need to upgrade project to .NET 7 by setting TargetFramework as net7.0-windows in your .csproj file.

High Level API

High level API can be found in the FlatOut2.SDK.API namespace.
Example(s):

var stageName = Info.Race.GetCurrentLevelName(); // e.g. Timberlands 1
var carId     = Info.Race.GetCurrentCarId(); 
var carName   = Info.Race.GetCarName(carId); // e.g. Flatmobile
var lobbyName = Info.Multiplayer.GetLobbyName(); // GameSpy lobby name.

Note: As this library is purely personal use, there is no guarantee of stable API.

Projects using this Library

Credit(s)

  • Zolika1351: Original C++ headers from which a lot of the FlatOut2.SDK source was derived from.

About

Sewer's Library for Modding FlatOut 2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages