Пример #1
0
 private void doStart()
 {
     this.ragDollSetup = base.transform.GetComponent <clsragdollify>();
     this.animator     = base.gameObject.GetComponent <Animator>();
     this.setup        = base.transform.GetComponent <mutantScriptSetup>();
     Transform[] componentsInChildren = base.transform.root.GetComponentsInChildren <Transform>();
     Transform[] array = componentsInChildren;
     for (int i = 0; i < array.Length; i++)
     {
         Transform transform = array[i];
         if (transform.name == "weaponLeftGO")
         {
             this.weaponLeft = transform.gameObject;
         }
         if (transform.name == "weaponLeftGO1")
         {
             this.weaponLeft1 = transform.gameObject;
         }
         if (transform.name == "weaponRightGO")
         {
             this.weaponRight = transform.gameObject;
         }
         if (transform.name == "weaponGO")
         {
             this.weaponMain         = transform.gameObject;
             this.weaponMainCollider = transform.GetComponent <Collider>();
         }
     }
 }
Пример #2
0
 private void Start()
 {
     this.ragDollSetup   = base.transform.GetComponent <clsragdollify>();
     this.ai             = base.GetComponent <mutantAI>();
     this.weaponCollider = base.GetComponentInChildren <enemyWeaponMelee>().gameObject.GetComponent <CapsuleCollider>();
     this.pushBody       = base.transform.parent.GetComponent <pushRigidBody>();
 }
Пример #3
0
 private void OnEnable()
 {
     this.tr                  = base.transform;
     this.anim                = base.gameObject.GetComponent <Animator>();
     this.ragDoll             = base.GetComponent <clsragdollify>();
     this.layerMask1          = 67108864;
     this.idleAnimationHash   = Animator.StringToHash("Base Layer.Idle");
     this.flyTagHash          = Animator.StringToHash("flying");
     this.hopIntHash          = Animator.StringToHash("hop");
     this.flyingBoolHash      = Animator.StringToHash("flying");
     this.peckBoolHash        = Animator.StringToHash("peck");
     this.ruffleBoolHash      = Animator.StringToHash("ruffle");
     this.preenBoolHash       = Animator.StringToHash("preen");
     this.landingBoolHash     = Animator.StringToHash("landing");
     this.singTriggerHash     = Animator.StringToHash("sing");
     this.flyingDirectionHash = Animator.StringToHash("flyingDirectionX");
     this.anim.SetFloatReflected("IdleAgitated", this.agitationLevel);
     if (this.anim.enabled)
     {
         this.anim.SetBool(this.flyingBoolHash, true);
         this.anim.SetBool(this.landingBoolHash, false);
     }
     if (!base.IsInvoking("groundHeightCheck"))
     {
         FMODCommon.PreloadEvents(this.AllEventPaths());
     }
     this.fleeing = false;
 }
Пример #4
0
    private void Start()
    {
        this.rb        = base.transform.GetComponent <Rigidbody>();
        this.col       = base.transform.GetComponent <Collider>();
        this.ragdoll   = base.transform.GetComponent <clsragdollify>();
        this.animator  = base.GetComponent <Animator>();
        this.mySkin    = base.transform.GetComponentInChildren <SkinnedMeshRenderer>();
        this.sceneInfo = Scene.SceneTracker;
        GameObject gameObject = GameObject.FindGameObjectWithTag("OceanHeight");

        if (gameObject)
        {
            this.oceanTr = gameObject.transform;
        }
        this.tr       = base.transform;
        this.initBool = true;
        this.setupInvokes();
        if (!base.GetComponent <Rigidbody>())
        {
            base.gameObject.AddComponent <Rigidbody>();
        }
        base.GetComponent <Rigidbody>().isKinematic = true;
        this.animator.speed = this.Speed;
        if (this.typeCaveFish)
        {
            this.randScale            = UnityEngine.Random.Range(0.35f, 0.5f);
            base.transform.localScale = new Vector3(this.randScale, this.randScale, this.randScale);
        }
        this.allPlayers = new List <GameObject>(Scene.SceneTracker.allPlayers);
        this.updatePlayerTargets();
    }
Пример #5
0
 void Start()
 {
     animation.wrapMode = WrapMode.Loop;
     varlocalragdollifier = GetComponent<clsragdollify>();
     if (varlocalragdollifier != null) {
         if (varlocalragdollifier.vargamragdoll != null)
             varcanragdoll = true;
     }
 }
Пример #6
0
 private void Start()
 {
     base.GetComponent<Animation>().wrapMode = WrapMode.Loop;
     this.varlocalragdollifier = base.GetComponent<clsragdollify>();
     if (this.varlocalragdollifier != null && this.varlocalragdollifier.vargamragdoll != null)
     {
         this.varcanragdoll = true;
     }
 }
Пример #7
0
 private void Start()
 {
     base.GetComponent <Animation>().wrapMode = WrapMode.Loop;
     this.varlocalragdollifier = base.GetComponent <clsragdollify>();
     if (this.varlocalragdollifier != null && this.varlocalragdollifier.vargamragdoll != null)
     {
         this.varcanragdoll = true;
     }
 }
Пример #8
0
 private void Start()
 {
     this.skin            = base.transform.GetComponentInChildren <SkinnedMeshRenderer>();
     this.tr              = base.transform;
     this.ragDoll         = base.GetComponent <clsragdollify>();
     this.initFlyingSpeed = this.flyingSpeed;
     this.initRotateSpeed = this.rotateSpeed;
     this.layerMask1      = 67108864;
     this.ragDoll.bird    = true;
     base.Invoke("initThis", 0.5f);
     base.InvokeRepeating("CleanupEventInstances", 1f, 1f);
 }
Пример #9
0
 void OnTriggerEnter()
 {
     if (vargampassenger != null) {
         varlocalragdollifier = vargampassenger.GetComponent<clsragdollify>();
         if (varlocalragdollifier != null) {
             if (!varengaged) {
                 varlocalragdollifier.metgoragdoll();
                 varengaged = true;
             }
             Destroy(transform.root.constantForce,1);
             Destroy(vargampassenger.gameObject);
         }
     }
 }
Пример #10
0
 private void Awake()
 {
     this.ragDollSetup    = base.GetComponent <clsragdollify>();
     this.setup           = base.GetComponent <mutantScriptSetup>();
     this.typeSetup       = base.transform.parent.GetComponent <mutantTypeSetup>();
     this.ai              = base.GetComponent <mutantAI>();
     this.familyFunctions = base.transform.parent.GetComponent <mutantFamilyFunctions>();
     this.targetSwitcher  = base.GetComponentInChildren <mutantTargetSwitching>();
     if (!this.ai.creepy)
     {
         this.animator = base.GetComponent <Animator>();
     }
     else
     {
         this.animator = base.GetComponentInChildren <Animator>();
     }
     this.MP = base.gameObject.GetComponent <mutantPropManager>();
     this.bloodPropertyBlock = new MaterialPropertyBlock();
 }
Пример #11
0
 private void Start()
 {
     this.cls = base.transform.GetComponentInChildren <clsragdollify>();
 }
Пример #12
0
 private void Start()
 {
     this.cls = base.transform.GetComponentInChildren<clsragdollify>();
 }
Пример #13
0
 private void Awake()
 {
     this.anim    = base.gameObject.GetComponent <Animator>();
     this.ragDoll = base.GetComponent <clsragdollify>();
 }
Пример #14
0
 private void Start()
 {
     this.ragDoll = base.GetComponent <clsragdollify>();
 }
Пример #15
0
 private void Awake()
 {
     this.ragDollSetup = base.GetComponent<clsragdollify>();
     this.setup = base.GetComponent<mutantScriptSetup>();
     this.typeSetup = base.transform.parent.GetComponent<mutantTypeSetup>();
     this.ai = base.GetComponent<mutantAI>();
     this.familyFunctions = base.transform.parent.GetComponent<mutantFamilyFunctions>();
     this.targetSwitcher = base.GetComponentInChildren<mutantTargetSwitching>();
     if (!this.ai.creepy)
     {
         this.animator = base.GetComponent<Animator>();
     }
     else
     {
         this.animator = base.GetComponentInChildren<Animator>();
     }
     this.MP = base.gameObject.GetComponent<mutantPropManager>();
     this.bloodPropertyBlock = new MaterialPropertyBlock();
 }
Пример #16
0
 private void doStart()
 {
     this.ragDollSetup = base.transform.GetComponent<clsragdollify>();
     this.animator = base.gameObject.GetComponent<Animator>();
     this.setup = base.transform.GetComponent<mutantScriptSetup>();
     Transform[] componentsInChildren = base.transform.root.GetComponentsInChildren<Transform>();
     Transform[] array = componentsInChildren;
     for (int i = 0; i < array.Length; i++)
     {
         Transform transform = array[i];
         if (transform.name == "weaponLeftGO")
         {
             this.weaponLeft = transform.gameObject;
         }
         if (transform.name == "weaponLeftGO1")
         {
             this.weaponLeft1 = transform.gameObject;
         }
         if (transform.name == "weaponRightGO")
         {
             this.weaponRight = transform.gameObject;
         }
         if (transform.name == "weaponGO")
         {
             this.weaponMain = transform.gameObject;
             this.weaponMainCollider = transform.GetComponent<Collider>();
         }
     }
 }
Пример #17
0
 private void Awake()
 {
     this.anim = base.gameObject.GetComponent<Animator>();
     this.ragDoll = base.GetComponent<clsragdollify>();
 }