Ep4 Modding Other Mods
Welcome Back Modders to Ep4 Modding Other Mods!
This video will show you what you need to know to start modding classes and functions from other mods.
In this lesson we are going to be using Namalsk Survival as the mod that we will be modding.
Specifically we are going to be modding his EVR Orb Event positions and passing in new positions.
We will also tweak his IsSafeFromEVR boolien to add in extra protection.
We will also be using the DayZ Notification System to send out custom warnings to all players.
You should have already watched the previous episodes
Topics Include;
Workshop Content & Copyrights.
Mod Config - Requiring other addons within our own mods
Vectors - A data structure used to represent three-dimensional positions.
DayZ Notification System - Custom Notifications for players
https://dayz.yadz.app/d8/d5d/class_notification_system.html#a5b599cd41f4c2544cb3e6cd8ba56d795
Patreon
https://www.patreon.com/HarksModding
PayPal
https://www.paypal.com/donate/?hosted_button_id=6KGRLGW4FMD8L
Boosty
https://www.boosty.to/harksmodding
Steam Workshop
https://www.steamcommunity.com/profiles/76561198072254600/myworkshopfiles
Join us on Discord
https://discord.gg/bhGredXVdW
//Custom Scripts
modded class EVRStorm: NamWeatherEvent
{
override vector GetRandomTeleportPosition(float x = 0, float z = 0, float radius = 0)
{
return Vector(5704.147949, 105.257645, 2473.478516);
}
override vector GetEventPosition()
{
return Vector(5245.228516, 12.627308, 2174.693604);
}
//Optionally
//https://dayz.yadz.app/d8/d5d/class_notification_system.html#a5b599cd41f4c2544cb3e6cd8ba56d795
override void MidPhaseServer()
{
super.MidPhaseServer();//Call the origonal method then run our custom
NotificationSystem.SendNotificationToPlayerIdentityExtended(null, 3, "EVR WARNING!", "Seek Shelter Now!", "MyFirstMod/images/ToxicIcon.paa");
}
}
modded class Environment
{
override bool IsSafeFromEVR()
{
return ( IsInsideBuilding() || IsInsideVehicle() || IsUnderRoof() );
}
}