Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module TestMod;
- import IndentedStreamWriter;
- import ScriptHooks;
- import ScriptClasses;
- private import UnrealScript.TribesGame.TrPlayerController;
- private import UnrealScript.TribesGame.TrDevice_ThumperD;
- private import core.sys.windows.windows;
- private import core.sys.windows.dll;
- extern(C) HookType TribesGame_TrPlayerController_PlayerTick(UnrealScript.TribesGame.TrPlayerController* player, ref void* result, float deltaTime)
- {
- IndentedStreamWriter wtr = new IndentedStreamWriter("TribesAscendSDK-ItWorks.txt");
- wtr.WriteLine("Hello! Delta time: %f", deltaTime);
- wtr.Close();
- return HookType.Continue;
- }
- void ModInit()
- {
- TrDevice_ThumperD.DefaultProperties.m_nMaxCarriedAmmo = 50;
- TrDevice_ThumperD.DefaultProperties.m_nCarriedAmmo = 50;
- TrDevice_ThumperD.DefaultProperties.m_fReloadTime = 0.3f;
- AddHook("Function TribesGame.TrPlayerController.PlayerTick", &TribesGame_TrPlayerController_PlayerTick);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement