📄 gamespawn.java
字号:
new spawn_t("point_combat", new EntThinkAdapter() { public String getID(){ return "SP_point_combat"; } public boolean think(edict_t ent) { GameMisc.SP_point_combat(ent); return true; } }), new spawn_t("misc_explobox", new EntThinkAdapter() { public String getID(){ return "SP_misc_explobox"; } public boolean think(edict_t ent) { GameMisc.SP_misc_explobox(ent); return true; } }), new spawn_t("misc_banner", new EntThinkAdapter() { public String getID(){ return "SP_misc_banner"; } public boolean think(edict_t ent) { GameMisc.SP_misc_banner(ent); return true; } }), new spawn_t("misc_satellite_dish", new EntThinkAdapter() { public String getID(){ return "SP_misc_satellite_dish"; } public boolean think(edict_t ent) { GameMisc.SP_misc_satellite_dish(ent); return true; } }), new spawn_t("misc_actor", new EntThinkAdapter() { public String getID(){ return "SP_misc_actor"; } public boolean think(edict_t ent) { M_Actor.SP_misc_actor(ent); return false; } }), new spawn_t("misc_gib_arm", new EntThinkAdapter() { public String getID(){ return "SP_misc_gib_arm"; } public boolean think(edict_t ent) { GameMisc.SP_misc_gib_arm(ent); return true; } }), new spawn_t("misc_gib_leg", new EntThinkAdapter() { public String getID(){ return "SP_misc_gib_leg"; } public boolean think(edict_t ent) { GameMisc.SP_misc_gib_leg(ent); return true; } }), new spawn_t("misc_gib_head", new EntThinkAdapter() { public String getID(){ return "SP_misc_gib_head"; } public boolean think(edict_t ent) { GameMisc.SP_misc_gib_head(ent); return true; } }), new spawn_t("misc_insane", new EntThinkAdapter() { public String getID(){ return "SP_misc_insane"; } public boolean think(edict_t ent) { M_Insane.SP_misc_insane(ent); return true; } }), new spawn_t("misc_deadsoldier", new EntThinkAdapter() { public String getID(){ return "SP_misc_deadsoldier"; } public boolean think(edict_t ent) { GameMisc.SP_misc_deadsoldier(ent); return true; } }), new spawn_t("misc_viper", new EntThinkAdapter() { public String getID(){ return "SP_misc_viper"; } public boolean think(edict_t ent) { GameMisc.SP_misc_viper(ent); return true; } }), new spawn_t("misc_viper_bomb", new EntThinkAdapter() { public String getID(){ return "SP_misc_viper_bomb"; } public boolean think(edict_t ent) { GameMisc.SP_misc_viper_bomb(ent); return true; } }), new spawn_t("misc_bigviper", new EntThinkAdapter() { public String getID(){ return "SP_misc_bigviper"; } public boolean think(edict_t ent) { GameMisc.SP_misc_bigviper(ent); return true; } }), new spawn_t("misc_strogg_ship", new EntThinkAdapter() { public String getID(){ return "SP_misc_strogg_ship"; } public boolean think(edict_t ent) { GameMisc.SP_misc_strogg_ship(ent); return true; } }), new spawn_t("misc_teleporter", new EntThinkAdapter() { public String getID(){ return "SP_misc_teleporter"; } public boolean think(edict_t ent) { GameMisc.SP_misc_teleporter(ent); return true; } }), new spawn_t("misc_teleporter_dest", GameMisc.SP_misc_teleporter_dest), new spawn_t("misc_blackhole", new EntThinkAdapter() { public String getID(){ return "SP_misc_blackhole"; } public boolean think(edict_t ent) { GameMisc.SP_misc_blackhole(ent); return true; } }), new spawn_t("misc_eastertank", new EntThinkAdapter() { public String getID(){ return "SP_misc_eastertank"; } public boolean think(edict_t ent) { GameMisc.SP_misc_eastertank(ent); return true; } }), new spawn_t("misc_easterchick", new EntThinkAdapter() { public String getID(){ return "SP_misc_easterchick"; } public boolean think(edict_t ent) { GameMisc.SP_misc_easterchick(ent); return true; } }), new spawn_t("misc_easterchick2", new EntThinkAdapter() { public String getID(){ return "SP_misc_easterchick2"; } public boolean think(edict_t ent) { GameMisc.SP_misc_easterchick2(ent); return true; } }), new spawn_t("monster_berserk", new EntThinkAdapter() { public String getID(){ return "SP_monster_berserk"; } public boolean think(edict_t ent) { M_Berserk.SP_monster_berserk(ent); return true; } }), new spawn_t("monster_gladiator", new EntThinkAdapter() { public String getID(){ return "SP_monster_gladiator"; } public boolean think(edict_t ent) { M_Gladiator.SP_monster_gladiator(ent); return true; } }), new spawn_t("monster_gunner", new EntThinkAdapter() { public String getID(){ return "SP_monster_gunner"; } public boolean think(edict_t ent) { M_Gunner.SP_monster_gunner(ent); return true; } }), new spawn_t("monster_infantry", new EntThinkAdapter() { public String getID(){ return "SP_monster_infantry"; } public boolean think(edict_t ent) { M_Infantry.SP_monster_infantry(ent); return true; } }), new spawn_t("monster_soldier_light", M_Soldier.SP_monster_soldier_light), new spawn_t("monster_soldier", M_Soldier.SP_monster_soldier), new spawn_t("monster_soldier_ss", M_Soldier.SP_monster_soldier_ss), new spawn_t("monster_tank", M_Tank.SP_monster_tank), new spawn_t("monster_tank_commander", M_Tank.SP_monster_tank), new spawn_t("monster_medic", new EntThinkAdapter() { public String getID(){ return "SP_monster_medic"; } public boolean think(edict_t ent) { M_Medic.SP_monster_medic(ent); return true; } }), new spawn_t("monster_flipper", new EntThinkAdapter() { public String getID(){ return "SP_monster_flipper"; } public boolean think(edict_t ent) { M_Flipper.SP_monster_flipper(ent); return true; } }), new spawn_t("monster_chick", new EntThinkAdapter() { public String getID(){ return "SP_monster_chick"; } public boolean think(edict_t ent) { M_Chick.SP_monster_chick(ent); return true; } }), new spawn_t("monster_parasite", M_Parasite.SP_monster_parasite), new spawn_t("monster_flyer", new EntThinkAdapter() { public String getID(){ return "SP_monster_flyer"; } public boolean think(edict_t ent) { M_Flyer.SP_monster_flyer(ent); return true; } }), new spawn_t("monster_brain", new EntThinkAdapter() { public String getID(){ return "SP_monster_brain"; } public boolean think(edict_t ent) { M_Brain.SP_monster_brain(ent); return true; } }), new spawn_t("monster_floater", new EntThinkAdapter() { public String getID(){ return "SP_monster_floater"; } public boolean think(edict_t ent) { M_Float.SP_monster_floater(ent); return true; } }), new spawn_t("monster_hover", new EntThinkAdapter() { public String getID(){ return "SP_monster_hover"; } public boolean think(edict_t ent) { M_Hover.SP_monster_hover(ent); return true; } }), new spawn_t("monster_mutant", M_Mutant.SP_monster_mutant), new spawn_t("monster_supertank", M_Supertank.SP_monster_supertank), new spawn_t("monster_boss2", new EntThinkAdapter() { public String getID(){ return "SP_monster_boss2"; } public boolean think(edict_t ent) { M_Boss2.SP_monster_boss2(ent); return true; } }), new spawn_t("monster_boss3_stand", new EntThinkAdapter() { public String getID(){ return "SP_monster_boss3_stand"; } public boolean think(edict_t ent) { M_Boss3.SP_monster_boss3_stand(ent); return true; } }), new spawn_t("monster_jorg", new EntThinkAdapter() { public String getID(){ return "SP_monster_jorg"; } public boolean think(edict_t ent) { M_Boss31.SP_monster_jorg(ent); return true; } }), new spawn_t("monster_commander_body", new EntThinkAdapter() { public String getID(){ return "SP_monster_commander_body"; } public boolean think(edict_t ent) { GameMisc.SP_monster_commander_body(ent); return true; } }), new spawn_t("turret_breach", new EntThinkAdapter() { public String getID(){ return "SP_turret_breach"; } public boolean think(edict_t ent) { GameTurret.SP_turret_breach(ent); return true; } }), new spawn_t("turret_base", new EntThinkAdapter() { public String getID(){ return "SP_turret_base"; } public boolean think(edict_t ent) { GameTurret.SP_turret_base(ent); return true; } }), new spawn_t("turret_driver", new EntThinkAdapter() { public String getID(){ return "SP_turret_driver"; } public boolean think(edict_t ent) { GameTurret.SP_turret_driver(ent); return true; } }), new spawn_t(null, null) }; /** * ED_CallSpawn * * Finds the spawn function for the entity and calls it. */ public static void ED_CallSpawn(edict_t ent) { spawn_t s; gitem_t item; int i; if (null == ent.classname) { GameBase.gi.dprintf("ED_CallSpawn: null classname\n"); return; } // check item spawn functions for (i = 1; i < GameBase.game.num_items; i++) { item = GameItemList.itemlist[i]; if (item == null) GameBase.gi.error("ED_CallSpawn: null item in pos " + i); if (item.classname == null) continue; if (item.classname.equalsIgnoreCase(ent.classname)) { // found it GameItems.SpawnItem(ent, item); return; } } // check normal spawn functions for (i = 0; (s = spawns[i]) != null && s.name != null; i++) { if (s.name.equalsIgnoreCase(ent.classname)) { // found it if (s.spawn == null) GameBase.gi.error("ED_CallSpawn: null-spawn on index=" + i); s.spawn.think(ent); return; } } GameBase.gi.dprintf(ent.classname + " doesn't have a spawn function\n"); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -