Advertisement
IrvinHeslan

Map Ent Deletter

Jan 16th, 2016
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.97 KB | None | 0 0
  1. entlist={ "phys_ragdollmagnet" , "env_sprite" , "prop_physics" , "light" , "light_spot" , "light_dynamic" , "env_projectedtexture" , "point_spotlight" , "light_environment" , "light_directional" , "light" , "ambient_generic" , "cycler" , "gibshooter" , "keyframe_rope" , "keyframe_track" , "material_modify_control" , "math_colorblend" , "math_counter" , "math_remap" , "momentary_rot_button" , "move_keyframed" , "move_rope" , "move_track" , "script_intro" , "script_tauremoval" , "shadow_control" , "sky_camera" , "test_sidelist" , "test_traceline" , "vgui_screen" , "logic_auto" , "logic_autosave" , "logic_branch" , "logic_case" , "logic_collision_pair" , "logic_compare" , "logic_lineto" , "logic_measure_movement" , "logic_multicompare" , "logic_navigation" , "logic_relay" , "logic_timer" , "info_camera_link" , "info_constraint_anchor" , "info_hint" , "info_intermission" , "info_ladder_dismount" , "info_landmark" , "info_lighting" , "info_mass center" , "info_no_dynamic_shadow", "info_node", "info_node_air" , "info_node_air hint" , "info_node_climb" , "info_node_hint" ,"info_node_link" , "info_node_link_controller" , "info_npc_spawn_destination" , "info_null" , "info_overlay" , "info_particle_system" , "info_player_combine" , "info_player_deathmatch" , "info_player_logo" , "info_player_rebel" , "info_player_start" , "info_projecteddecal" , "info_snipertarget" , "info_target" , "info_target_gunshipcrash" , "info_teleporter_countdown", "info_teleport_destination" , "infodecal" , "ambient_generic" , "cycler" , "gibshooter" , "keyframe_rope" , "keyframe_track" , "material_modify_control" , "math_colorblend" , "math_counter" , "math_remap" , "momentary_rot_button" , "move_keyframed" , "move_rope" , "move_track" , "script_intro" , "script_tauremoval" , "shadow_control" , "sky_camera" , "test_sidelist" , "test_traceline" , "vgui_screen" , "water_lod_control" , "cycler_actor" , "generic_actor" , "info_npc_spawn_destination" , "monster_generic" , "phys_ballsocket" , "phys_constraint" , "phys_constraintsystem" , "phys_convert" , "phys_hinge" , "phys_keepupright" , "phys_lengthconstraint" , "phys_magnet" , "phys_motor" , "phys_pulleyconstraint" , "phys_ragdollconstraint" , "phys_ragdollmagnet" , "phys_slideconstraint" , "phys_spring" , "phys_thruster" , "phys_torque" , "physics_cannister" , "player_loadsaved" , "player_speedmod" , "player_weaponstrip" , "point_anglesensor" , "point_angularvelocitysensor" , "point_antlion_repellant" , "point_apc_controller" , "point_bugbait" , "point_camera" , "point_clientcommand" , "point_commentary_node" , "point_devshot_camera" , "point_enable_motion_fixup" , "point_hurt" , "point_message" , "point_playermoveconstraint" , "point_servercommand" , "point_spotlight" , "point_teleport" , "point_template" , "point_tesla" , "point_viewcontrol" , "vehicle_viewcontroller" , "prop_combine_ball" , "prop_detail" ,  "prop_dynamic" , "prop_dynamic_ornament" , "prop_dynamic_override" , "prop_physics" , "prop_physics_multiplayer" , "prop_physics_override" , "prop_ragdoll" , "prop_static" , "prop_thumper" , "trigger_autosave" , "trigger_changelevel" , "trigger_finale" , "trigger_gravity" , "trigger_hurt" , "trigger_impact" , "trigger_look" , "trigger_multiple" , "trigger_once" , "trigger_physics_trap" , "trigger_playermovement" , "trigger_proximity" , "trigger_push" , "trigger_remove" , "trigger_rpgfire","trigger_soundscape" , "trigger_teleport" , "trigger_transition" , "trigger_vphysics_motion" , "trigger_waterydeath" , "trigger_weapon_dissolve" , "trigger_weapon_strip" , "trigger_wind" , "func_tracktrain" , "spotlight_end" , "beam" , "env_soundscape", "env_smokestack" ,"env_fog_controller" , "func_brush" , "func_breakable_surf" ,"_firesmoke" , "env_fire" , "env_firesource" , "func_breakable" , "entityflame" , "prop_physics" , "aiscripted_schedule" , "func_occluder" , "env_tonemap_controller" , "env_physexplosion" , "env_shake" , "func_physbox" }
  2.  
  3.  
  4. for k, v in pairs( ents.GetAll() ) do
  5.     if table.HasValue(entlist,v:GetClass())== true then  
  6.       v:Remove()
  7.     end  
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement