Ep3 Modding Classes and Overriding Functions
Welcome Modders to Ep3 Modding Classes and Overriding Functions!
This video will show you what you need to know to start modding classes in your DayZ Mods.
You should have already watched Ep1 Getting Started and Ep2 Making a DayZ PBO
Topics Include;
Modding Classes
Overriding Methods/Functions and Changing Vanilla Game Code
Calling Super() - Invoking the parent method
Server/Client Log Reading
Please feel free to send along some encouragement. If you would like to show your support in the manner of a donation.
https://www.paypal.com/donate/?hosted_button_id=6KGRLGW4FMD8L
Join us on Discord
https://discord.gg/bhGredXVdW
My Workshop
https://steamcommunity.com/profiles/76561198072254600/myworkshopfiles/
//Custom Script
modded class DayZPlayerImplement
{
override void ShowDeadScreen(bool show, float duration)
{
super.ShowDeadScreen(show, duration);
#ifndef NO_GUI
if (show && IsPlayerSelected())
{
string message = "You Suck.... Jackass";
#ifdef PLATFORM_CONSOLE
GetGame().GetUIManager().ScreenFadeIn(duration, message, FadeColors.DARK_RED, FadeColors.WHITE);
#else
GetGame().GetUIManager().ScreenFadeIn(duration, message, FadeColors.BLACK, FadeColors.WHITE);
#endif
}
#endif
}
}