/** Writes the monsterinfo to the file.*/
        public void read(BinaryReader f)
        {
            if (f.ReadBoolean())
            {
                this.currentmove = new();
                this.currentmove.read(f);
            }
            else
            {
                this.currentmove = null;
            }

            this.aiflags   = f.ReadInt32();
            this.nextframe = f.ReadInt32();
            this.scale     = f.ReadSingle();
            this.stand     = (EntThinkAdapter)f.ReadAdapter();
            this.idle      = (EntThinkAdapter)f.ReadAdapter();
            this.search    = (EntThinkAdapter)f.ReadAdapter();
            this.walk      = (EntThinkAdapter)f.ReadAdapter();
            this.run       = (EntThinkAdapter)f.ReadAdapter();

            this.dodge = (EntDodgeAdapter)f.ReadAdapter();

            this.attack = (EntThinkAdapter)f.ReadAdapter();
            this.melee  = (EntThinkAdapter)f.ReadAdapter();

            this.sight = (EntInteractAdapter)f.ReadAdapter();

            this.checkattack = (EntThinkAdapter)f.ReadAdapter();

            this.pausetime       = f.ReadSingle();
            this.attack_finished = f.ReadSingle();

            this.saved_goal = f.ReadVector();

            this.search_time = f.ReadSingle();
            this.trail_time  = f.ReadSingle();

            this.last_sighting = f.ReadVector();

            this.attack_state = f.ReadInt32();
            this.lefty        = f.ReadInt32();

            this.idle_time = f.ReadSingle();
            this.linkcount = f.ReadInt32();

            this.power_armor_power = f.ReadInt32();
            this.power_armor_type  = f.ReadInt32();
        }
Exemple #2
0
        public gitem_t(
            string classname,
            EntInteractAdapter pickup,
            ItemUseAdapter use,
            ItemDropAdapter drop,
            EntThinkAdapter weaponthink,
            string pickup_sound,
            string world_model,
            int world_model_flags,
            string view_model,
            string icon,
            string pickup_name,
            int count_width,
            int quantity,
            string ammo,
            int flags,
            int weapmodel,
            gitem_armor_t info,
            int tag,
            string precaches
            )
        {
            this.classname         = classname;
            this.pickup            = pickup;
            this.use               = use;
            this.drop              = drop;
            this.weaponthink       = weaponthink;
            this.pickup_sound      = pickup_sound;
            this.world_model       = world_model;
            this.world_model_flags = world_model_flags;
            this.view_model        = view_model;
            this.icon              = icon;
            this.pickup_name       = pickup_name;
            this.count_width       = count_width;
            this.quantity          = quantity;
            this.ammo              = ammo;
            this.flags             = flags;
            this.weapmodel         = weapmodel;
            this.info              = info;
            this.tag               = tag;
            this.precaches         = precaches;

            this.index = gitem_t.id++;
        }
Exemple #3
0
 public gitem_t(string classname, EntInteractAdapter pickup, ItemUseAdapter use, ItemDropAdapter drop, EntThinkAdapter weaponthink)
 {
 }