-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modloader updates, fun stuff and weapon adjuster things
- Loading branch information
Showing
68 changed files
with
1,473 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "AudioManager.h" | ||
#include "core.h" | ||
|
||
cAudioManager& AudioManager = *(cAudioManager*)0x6B53D8; | ||
cDMAudio& DMAudio = *(cDMAudio*)0x6C5244; | ||
|
||
void cAudioManager::ResetLevel() | ||
{ | ||
CallMethod<0x455C70, cAudioManager*>(this); | ||
} | ||
|
||
void cAudioManager::RequestMiscOneShot(CVector* pos, eSampleIDs sample, int unk, int unk2) | ||
{ | ||
CallMethod<0x5B5810, cAudioManager*, CVector*, eSampleIDs, int, int>(this, pos, sample, unk, unk2); | ||
} | ||
|
||
int cAudioManager::ProcessWeapon_Fire(eCollectableType item, int a2, int a3, float* freq, float* a5) | ||
{ | ||
return CallMethodAndReturn<int, 0x44F620, cAudioManager*,eCollectableType, int, int, float*, float*>(this, item, a2, a3, freq, a5); | ||
} | ||
|
||
void cDMAudio::PlayFrontEndSound(short sample, float unk) | ||
{ | ||
CallMethod<0x456280,cDMAudio*, short, float>(this, sample, unk); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
#include "Collectable.h" | ||
#include "SampleIDs.h" | ||
|
||
class cAudioManager { | ||
public: | ||
void ResetLevel(); | ||
void RequestMiscOneShot(CVector* pos, eSampleIDs sample, int unk, int unk2); | ||
int ProcessWeapon_Fire(eCollectableType item, int a2, int a3, float* freq, float* a5); | ||
}; | ||
|
||
|
||
class cDMAudio { | ||
public: | ||
void PlayFrontEndSound(short sample, float unk); | ||
}; | ||
|
||
extern cAudioManager& AudioManager; | ||
|
||
extern cDMAudio& DMAudio; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include "ColLine.h" | ||
#include "core.h" | ||
|
||
void CColLine::Calculate() | ||
{ | ||
CallMethod<0x4044F0, CColLine*>(this); | ||
} | ||
|
||
bool CColLine::TestBSP(CContactInfo* contact, float* unk) | ||
{ | ||
return CallMethodAndReturn<bool, 0x4DE800, CColLine*, CContactInfo*, float*>(this, contact, unk); | ||
} |
Oops, something went wrong.