1
1
/*
2
- * Copyright © 2013-2016 Davorin Učakar, RangeMachine
2
+ * Copyright © 2013-2018 Davorin Učakar, RangeMachine
3
3
*
4
4
* Permission is hereby granted, free of charge, to any person obtaining a
5
5
* copy of this software and associated documentation files (the "Software"),
@@ -529,7 +529,7 @@ private void personaliseKerbal(Component component, ProtoCrewMember kerbal, Part
529
529
kerbalIVA . textureVeteran = newTexture ;
530
530
}
531
531
break ;
532
-
532
+
533
533
case "helmet" :
534
534
case "mesh_female_kerbalAstronaut01_helmet" :
535
535
if ( isEva )
@@ -562,7 +562,8 @@ private void personaliseKerbal(Component component, ProtoCrewMember kerbal, Part
562
562
}
563
563
break ;
564
564
565
- default : // Jetpack.
565
+ default :
566
+ // Jetpack.
566
567
if ( isEva )
567
568
{
568
569
smr . enabled = needsSuit ;
@@ -583,11 +584,31 @@ private void personaliseKerbal(Component component, ProtoCrewMember kerbal, Part
583
584
material . SetTexture ( Util . BUMPMAP_PROPERTY , newNormalMap ) ;
584
585
}
585
586
}
587
+
588
+ if ( isEva )
589
+ {
590
+ foreach ( Transform trans in component . GetComponentsInChildren < Transform > ( ) )
591
+ {
592
+ if ( trans . name == "EVAparachute" )
593
+ {
594
+ foreach ( Renderer renderer in trans . GetComponentsInChildren < Renderer > ( true ) )
595
+ {
596
+ if ( ! needsSuit )
597
+ {
598
+ renderer . transform . localPosition += Vector3 . forward * 0.1f ;
599
+ renderer . transform . localPosition += Vector3 . up * - 0.03f ;
600
+ }
601
+ else
602
+ renderer . transform . localPosition = Vector3 . zero ;
603
+ }
604
+ }
605
+ }
606
+ }
586
607
}
587
608
588
609
/**
589
- * Personalise Kerbals in an internal space of a vessel. Used by IvaModule.
590
- */
610
+ * Personalise Kerbals in an internal space of a vessel. Used by IvaModule.
611
+ */
591
612
592
613
public void personaliseIva ( Kerbal kerbal )
593
614
{
0 commit comments