安装 Steam						
					
				
				
									登录
											 | 
						语言
						
																																															繁體中文(繁体中文)
																													日本語(日语)
																													한국어(韩语)
																													ไทย(泰语)
																													български(保加利亚语)
																													Čeština(捷克语)
																													Dansk(丹麦语)
																													Deutsch(德语)
																													English(英语)
																													Español-España(西班牙语 - 西班牙)
																													Español - Latinoamérica(西班牙语 - 拉丁美洲)
																													Ελληνικά(希腊语)
																													Français(法语)
																													Italiano(意大利语)
																													Bahasa Indonesia(印度尼西亚语)
																													Magyar(匈牙利语)
																													Nederlands(荷兰语)
																													Norsk(挪威语)
																													Polski(波兰语)
																													Português(葡萄牙语 - 葡萄牙)
																													Português-Brasil(葡萄牙语 - 巴西)
																													Română(罗马尼亚语)
																													Русский(俄语)
																													Suomi(芬兰语)
																													Svenska(瑞典语)
																													Türkçe(土耳其语)
																													Tiếng Việt(越南语)
																													Українська(乌克兰语)
																									报告翻译问题
							
						
											






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;
}