510 {
511
513 {
519
522
523 if ( PluginSceneManager.GetInstance().GetLoadPlayerPos() )
524 {
525
526 vector start_pos = cfg_ply_pos.GetValue().ToVector();
527
528 if ( start_pos != vector.Zero )
529 {
530
531 scn_player.SetPosition(cfg_ply_pos.GetValue().ToVector());
532
533
534 scn_player.SetRotation(cfg_ply_rot.GetValue());
535 }
536 }
537
538
539
540 float health2 = cfg_ply_hlt.GetValue();
541 if (health2 <= 0)
542 health2 = scn_player.GetMaxHealth();
543
544 scn_player.SetHealth(health2);
545
546
548 }
549
550 }
const int CFG_TYPE_STRING
const string PARAM_OBJ_ISCR
const string PARAM_PLAYER
const string PARAM_OBJ_ROT
const string PARAM_OBJ_HLT
const string PARAM_OBJ_POS
string DecodeInitScript(string script)
ScenePlayer CreateScenePlayer()
proto native CGame GetGame()