예제 #1
0
    // Token: 0x06000426 RID: 1062 RVA: 0x00014C84 File Offset: 0x00012E84
    private static bool GetCharacterStuff(ref global::ConsoleSystem.Arg args, out global::Character character, out global::CameraMount camera, out global::ItemRepresentation itemRep, out global::ArmorModelRenderer armor)
    {
        character = null;
        itemRep   = null;
        armor     = null;
        camera    = global::CameraMount.current;
        if (!camera)
        {
            args.ReplyWith("Theres no active camera mount.");
            return(false);
        }
        character = (IDBase.GetMain(camera) as global::Character);
        if (!character)
        {
            args.ReplyWith("theres no character for the current mounted camera");
            return(false);
        }
        armor = character.GetLocal <global::ArmorModelRenderer>();
        global::InventoryHolder local = character.GetLocal <global::InventoryHolder>();

        if (local)
        {
            itemRep = local.itemRepresentation;
        }
        return(true);
    }
예제 #2
0
    // Token: 0x0600034C RID: 844 RVA: 0x00010380 File Offset: 0x0000E580
    private void OnTriggerEnter(Collider other)
    {
        global::Character fromCollider = this.GetFromCollider(other);

        if (!fromCollider)
        {
            return;
        }
        global::Radiation local = fromCollider.GetLocal <global::Radiation>();

        if (local)
        {
            local.AddRadiationZone(this);
        }
    }
 // Token: 0x06003887 RID: 14471 RVA: 0x000C8B5C File Offset: 0x000C6D5C
 private void FindSignalee()
 {
     this._parentMain = this._parentView.idMain;
     if (this._parentMain is global::Character)
     {
         global::Character character = (global::Character)this._parentMain;
         this.SetSignalee(character);
         this._holder = character.GetLocal <global::InventoryHolder>();
         if (this._holder)
         {
             this._holder.SetItemRepresentation(this);
         }
         return;
     }
     this._holder = null;
     this.ClearSignals();
 }