SHARE
TWEET

EventsAfterSpawn

Faecous Jul 16th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.             if (unit.Entity.Name == "MyGame")
  3.             {
  4.                 unitObject.AddComponent<SinkOnDeath>();
  5.             }
  6.             if (unit.Entity.ID == "0751142d-5f06-40c1-944d-20e8fb22df41")
  7.             {
  8.                 UMH.comment = "VikingBoatRider";
  9.                 unitObject.AddComponent<MountPos>();
  10.                 unit.massMultiplier = 1f;
  11.                 unit.health = 100f;
  12.                 unitObject.GetComponent<Unit>().Head.transform.localScale = new Vector3(0f, 0f, 0f);
  13.                 unitObject.AddComponent<Unit>().data.immunityForSeconds = 5f;
  14.                 unitObject.GetComponent<MountPos>().breakForce = 0f;
  15.                 unitObject.GetComponent<MountPos>().jointStrength = 0f;
  16.                 unitObject.GetComponent<MountPos>().angularJointStrength = 0f;
  17.                 unitObject.GetComponent<MountPos>().killRiderIfVehicleDies = false;
  18.                 unitObject.GetComponent<MountPos>().killVehicleIfRiderDies = true;
  19.                 unitObject.GetComponent<MountPos>().disablePossession = false;
  20.                 unitObject.GetComponent<MountPos>().neverLetGo = false;
  21.                 unitObject.GetComponent<MountPos>().inheritVelocity = true;
  22.                 unitObject.GetComponent<MountPos>().sendGroundedToMount = false;
  23.                 unitObject.GetComponent<MountPos>().forwardDropForce = 0f;
  24.                 unitObject.GetComponent<MountPos>().upwardsDropForce -= 50000f;
  25.                 unitObject.GetComponent<MountPos>().mountType = MountPos.MountType.Sit;
  26.                 unitObject.GetComponent<MountPos>().LockedLegs = false;
  27.                 unitObject.AddComponent<Unit>().data.takeFallDamage = false;
  28.             }
  29.             UMH.comment = "_________________________________________________________________________________________________________________";
  30.             if (unit.Entity.ID == "c0fcecb7-63e2-430c-b361-fa7cd3d89945")
  31.             {
  32.                 UMH.comment = "VikingBoatCarrier";
  33.                 unit.excludeFromWinCondition = true;
  34.                 unit.health = 100f;
  35.                 unit.massMultiplier = 60f;
  36.                 unit.sizeMultiplier = 0.6f;
  37.                 unitObject.AddComponent<MountPos>();
  38.                 unitObject.AddComponent<Unit>().m_PreferedDistance = 10f;
  39.                 unitObject.GetComponent<MountPos>().upwardDismountForce *= 2f;
  40.                 unitObject.GetComponent<MountPos>().forwardDismountForce *= 1E+07f;
  41.                 unitObject.GetComponent<Unit>().data.takeFallDamage = false;
  42.                 unitObject.GetComponent<MountPos>().giveForwardObjectToRider = true;
  43.                 unitObject.GetComponent<MountPos>().disablePossession = false;
  44.                 unitObject.GetComponent<MountPos>().forwardDropForce *= 100000f;
  45.                 unitObject.GetComponent<MountPos>().mountType = MountPos.MountType.Hold;
  46.                 unitObject.GetComponent<MountPos>().angles = 360f;
  47.                 unitObject.GetComponent<MountPos>().removeArmColliders = true;
  48.                 unitObject.GetComponentInChildren<LegRight>().GetComponentInChildren<Rigidbody>().detectCollisions = false;
  49.                 unitObject.GetComponentInChildren<LegLeft>().GetComponentInChildren<Rigidbody>().detectCollisions = false;
  50.                 unitObject.GetComponentInChildren<KneeRight>().GetComponentInChildren<Rigidbody>().detectCollisions = false;
  51.                 unitObject.GetComponentInChildren<KneeLeft>().GetComponentInChildren<Rigidbody>().detectCollisions = false;
  52.             }
  53.             if (unit.Entity.Name == "Longship")
  54.             {
  55.                 unit.health = 10000f;
  56.                 unit.excludeFromWinCondition = true;
  57.                 unit.massMultiplier = 1000f;
  58.                 unitObject.GetComponentInChildren<Unit>().data.centerOfMass -= new Vector3(0f, 1f, 0f);
  59.                 unitObject.AddComponent<Unit>().data.takeFallDamage = false;
  60.             }
  61.             if (unit.Entity.Name == "Midas")
  62.             {
  63.                 unitObject.GetComponentInChildren<Unit>().m_AttackDistance = 0.01f;
  64.             }
  65.             if (unit.Entity.Name == "ShiiCho")
  66.             {
  67.                 unitObject.AddComponent<SinkOnDeath>();
  68.                 unitObject.AddComponent<CharacterMovement>();
  69.                 unitObject.GetComponent<Unit>().data.canFall = true;
  70.                 unitObject.GetComponentInChildren<Unit>().data.muscleControl = 10000f;
  71.                 unitObject.GetComponentInChildren<Unit>().data.ragdollControl = 10000f;
  72.                 unitObject.GetComponentInChildren<Unit>().m_AttackDistance = 1.3f;
  73.                 unitObject.GetComponentInChildren<Unit>().thickness = 1f;
  74.                 unitObject.GetComponentInChildren<CharacterMovement>().slideControl = 10000f;
  75.                 unitObject.GetComponentInChildren<CharacterMovement>().movememtForce *= 2f;
  76.                 unitObject.GetComponentInChildren<CharacterMovement>().standForce = 10000f;
  77.                 unitObject.GetComponentInChildren<DataHandler>().canFall = false;
  78.                 unitObject.GetComponentInChildren<DataHandler>().muscleControl = 10000f;
  79.                 unitObject.GetComponentInChildren<DataHandler>().ragdollControl = 10000f;
  80.                 unit.skinColor = ((team == Team.Red) ? Color.Lerp(Color.magenta, Color.red, 0.2f) : Color.Lerp(Color.cyan, Color.blue, 0.5f));
  81.                 unit.skinColor = Color.Lerp(unit.skinColor, Color.yellow, 0.35f);
  82.             }
  83.         }
  84.     }
  85. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top