Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
One, were exactly in the init.c file do we put this code? Also when this code is put after the StartingEquipSetup block it works but causes BBP doors to glitch out were they can't be opened or closed. It also corrupted the VPP Admin tools overlay any help would be appreciated. An example init.c file with this code would be awesome. Thanks for you hard work on this mod it's wonderful.
I tried also a pity that it does not work yet I tested in different places of my file,
if DaemonForge could give us some information it would be nice
class CustomMission: MissionServer
{
void SetRandomHealth(EntityAI itemEnt)
{
if ( itemEnt )
{
float rndHlt = Math.RandomFloat( 0.45, 0.65 );
itemEnt.SetHealth01( "", "", rndHlt );
}
}
override void InvokeOnConnect(PlayerBase player, PlayerIdentity identity)
{
// Don't leave out the super (super important
super.InvokeOnConnect( player, identity);
GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(NotificationSystem.SimpleNoticiation, 1000, false ,
"Welcome to {XYZ}, Check out our Server Information by Pressing PAUSE/BREAK or by Pressing ESC and Clicking Server Panel. Feel free to join our Discord", "Welcome Survivors",
"Notifications/gui/data/notifications.edds", ARGB(240, 90, 140, 195), 30,
identity);
}
override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName)
{
Entity playerEnt;
playerEnt = GetGame().CreatePlayer( identity, characterName, pos, 0, "NONE" );
Class.CastTo( m_player, playerEnt );
GetGame().SelectPlayer( identity, m_player );
return m_player;
}