-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from InsultingPros/dev
Fix the mod to work with Scrn Balance v9.69.16 and higher.
- Loading branch information
Showing
17 changed files
with
5,415 additions
and
5,421 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,31 +5,31 @@ var localized float MessageShowTime; | |
|
||
static function string GetNameOf( class<Monster> M ) | ||
{ | ||
if( Len(M.Default.MenuName)==0 ) | ||
return string(M.Name); | ||
return M.Default.MenuName; | ||
if( Len(M.Default.MenuName)==0 ) | ||
return string(M.Name); | ||
return M.Default.MenuName; | ||
} | ||
|
||
static function ClientReceive(PlayerController P, optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject) | ||
{ | ||
local KF2HUD H; | ||
if( Class<Monster>(OptionalObject)==None || HudBase(P.myHud)==None || (RelatedPRI_1==None && Switch==1) ) | ||
return; | ||
// Change this to the proper class | ||
H = KF2HUD(P.myHud); | ||
local KF2HUD H; | ||
|
||
if( Class<Monster>(OptionalObject)==None || HudBase(P.myHud)==None || (RelatedPRI_1==None && Switch==1) ) | ||
return; | ||
|
||
// Change this to the proper class | ||
H = KF2HUD(P.myHud); | ||
if(H != none) | ||
{ | ||
if (!H.UpdateDamageMessage(OptionalObject,RelatedPRI_1,Switch)) | ||
H.LocalizedMessage(Default.Class,Switch,RelatedPRI_1,,OptionalObject); | ||
H.LocalizedMessage(Default.Class,Switch,RelatedPRI_1,,OptionalObject); | ||
} | ||
|
||
} | ||
|
||
static function float GetLifeTime(int Switch) | ||
{ | ||
return default.MessageShowTime; | ||
return default.MessageShowTime; | ||
} | ||
|
||
static function string GetString( | ||
|
@@ -39,26 +39,26 @@ static function string GetString( | |
optional Object OptionalObject | ||
) | ||
{ | ||
return GetNameOf(Class<Monster>(OptionalObject))@"-"[email protected]; | ||
return GetNameOf(Class<Monster>(OptionalObject))@"-"[email protected]; | ||
} | ||
// Fade color: Green (0-99 damage) > Yellow (100-499 damage) > Red (500-999 damage) > Dark Red (999+ damage). | ||
static function color GetColor( | ||
optional int Switch, | ||
optional PlayerReplicationInfo RelatedPRI_1, | ||
optional PlayerReplicationInfo RelatedPRI_2 | ||
) | ||
optional int Switch, | ||
optional PlayerReplicationInfo RelatedPRI_1, | ||
optional PlayerReplicationInfo RelatedPRI_2 | ||
) | ||
{ | ||
local color C; | ||
local color C; | ||
C.A = 255; | ||
if( Switch<800 ) | ||
{ | ||
C.G = Clamp(512-Switch,0,255); | ||
C.R = Clamp((Switch * 2.5f),0,255); | ||
} | ||
else C.R = Clamp(1256-Switch,150,255); | ||
return C; | ||
C.A = 255; | ||
if( Switch<800 ) | ||
{ | ||
C.G = Clamp(512-Switch,0,255); | ||
C.R = Clamp((Switch * 2.5f),0,255); | ||
} | ||
else C.R = Clamp(1256-Switch,150,255); | ||
return C; | ||
} | ||
defaultproperties | ||
|
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
Oops, something went wrong.