Finetune BD detection.
This commit is contained in:
parent
9cf984cea8
commit
154fba7146
2 changed files with 17 additions and 7 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.2pre r123 \cu(Sat 22 Jan 17:17:41 CET 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.2pre r123 \cu(2022-01-22 17:17:41)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.2pre r124 \cu(Sun 23 Jan 20:46:41 CET 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.2pre r124 \cu(2022-01-23 20:46:41)\c-";
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ Class SWWMBrutalHandler : StaticEventHandler
|
|||
ui int timer;
|
||||
ui TextureID scr;
|
||||
bool detected;
|
||||
String which, whichshort;
|
||||
|
||||
override void OnRegister()
|
||||
{
|
||||
|
|
@ -22,17 +23,26 @@ Class SWWMBrutalHandler : StaticEventHandler
|
|||
return;
|
||||
for ( int i=0; i<AllActorClasses.size(); i++ )
|
||||
{
|
||||
if ( (AllActorClasses[i].GetClassName() != "BrutalWeapon")
|
||||
&& (AllActorClasses[i].GetClassName() != "BrutalDoomer") ) continue;
|
||||
detected = true;
|
||||
break;
|
||||
if ( AllActorClasses[i].GetClassName() == "BDoomer" )
|
||||
{
|
||||
detected = true;
|
||||
which = "Brutal Doom";
|
||||
whichshort = "BD";
|
||||
}
|
||||
else if ( AllActorClasses[i].GetClassName() == "BrutalDoomer" )
|
||||
{
|
||||
detected = true;
|
||||
which = "Project Brutality";
|
||||
whichshort = "PB";
|
||||
}
|
||||
if ( detected ) break;
|
||||
}
|
||||
if ( !detected )
|
||||
return;
|
||||
SetRandomSeed[bdscreen](Random[bdscreen]()+consoleplayer+MSTime());
|
||||
Console.Printf(
|
||||
"\cx┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\c-\n"
|
||||
"\cx┃ \cfIf you have BD on your autoload you really shouldn't. \cx┃\c-\n"
|
||||
"\cx┃ \cfIf you have "..whichshort.." on your autoload you really shouldn't. \cx┃\c-\n"
|
||||
"\cx┃ \cfIf you manually loaded it with this mod, why would you? \cx┃\c-\n"
|
||||
"\cx┃ \cfThey're not compatible and never will be. \cx┃\c-\n"
|
||||
"\cx┃ \cfThis mod will now shit the bed once you go in-game, \cx┃\c-\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue