Welcome to PlagueFest.com! Log in or Sign up to interact with the Plague Fest community.
  1. Welcome Guest! to interact with the community and gain access to all the site's features.

Control zombie spawn + number of spawns?

Discussion in Mapping Discussion started by Serious Samurai @BabyPanda, Jun 23, 2012

  1. May 29, 2012
    Posts
    Hey community
    sorry if theres is a tread about this but i haven´t found something yet.:evilgrin:
    So i want to know how to control where the zombie spawns and how many there will be spawn.
    Thanks for every helpfull answer!
  2. May 14, 2011
    Posts
    Do you mean to say how do you control it on your own server, or through a map, or something else?
  3. Jul 4, 2011
    Posts
    You need a point_servercommand in your map, have a logic_auto (or any trigger) set the zombie ratio by making output like this; OnMapSpawn (or OnNewGame) -> yourpointservercommandsname -> Command -> zr_infect_mzombie_ratio "numberhere".

    Taken from Allied Modders;

    zr_infect_mzombie_ratio 5
    Mother zombie ratio. Every random n-th player is infected. In this case it's 5 where every fifth player will be infected. If it's set to 0 there will only be 1 mother zombie every time.

    You can't controll where they spawn but you can controll when they spawn (zr_infect_spawntime_min and zr_infect_spawntime_max) and have a teleport teleport them away when they do to the desired location.
    • Informative Informative x 2
    • Like Like x 1
      null, Jun 23, 2012 Last edited by Tony Montana, Jun 23, 2012
    • Jan 9, 2012
      Posts
      Is there a list of the zr_ commands?
    • May 14, 2011
      Posts
      Code:
      zr_seffects_moan 50
      zr_class_modify "zombies" "health" 2500
      zr_class_modify "zombies" "speed" 75.0
      zr_class_modify "zombies" "knockback" 4
      zr_classes_overlay_toggle 0
      zr_hitgroup_enable_all
      zr_infect_spawntime_max 12
      zr_infect_spawntime_min 4
      zr_zhp 1
      zr_class_modify "zombies" "health_regen_interval" 20
      zr_class_modify "zombies" "health_regen_amount" 10
      zr_infect_mzombie_ratio 0
      zr_infect_mzombie_ratio 8
      zr_class_modify "Mother zombie" "health" 5000
      zr_infect_mzombie_respawn 1
      zr_class_modify "zombies" "health_infect_gain" 50
      zr_class_modify "zombies" "no_fall_damage" "off"
      zr_respawn 0
      zr_respawn_delay 1
      zr_spawnprotect 1
      zr_spawnprotect_time 10
      zr_respawn_team_zombie 0
      zr_zspawn 1
      zr_zspawn_team_override 1
      zr_zspawn_team_zombie 1
      zr_classes_save 1
      zr_class_modify "zombies" "health" 1.0 true
      zr_class_modify "zombies" "speed" 1.0 true
      zr_class_modify "zombies" "jump_height" 1.0 true
      zr_class_modify "zombies" "knockback" 1.0 true
      zr_classes_random 0
      zr_restrict "rifle" "m249" "flashbang"
      zr_infect_weapons_drop 0
      zr_weapons_zmarket 1
      zr_weapons_zmarket_buyzone 0
      zr_ztele_max_zombie 3
      zr_ztele_max_human 3
      zr_ztele_human_before 1
      zr_ztele_human_after 1
      zr_config_path_models "configs/zr/models.txt"
      zr_config_path_downloads "configs/zr/downloads.txt"
      zr_roundend_overlay 1
      zr_roundend_overlays_zombie "vgui/hud/zombiemod/1024_zombies"
      zr_roundend_overlays_human "vgui/hud/zombiemod/1024_humans"
      zr_veffects_lightstyle 1
      zr_veffects_lightstyle_value "b"
      zr_veffects_fog 1
      zr_veffects_fog_override 1
      zr_veffects_sky 1
      zr_veffects_fog_pcolor "176 192 202"
      zr_veffects_fog_scolor "206 216 222"
      zr_veffects_fog_startdist 30
      zr_veffects_fog_enddist 4000
      zr_infect_explosion 1
      zr_infect_smoke 1
      zr_infect_shake 1
      zr_veffects_sky_path "zombie_skyup.vmt"
      zr_veffects_ragdoll_remove 1
      zr_veffects_ragdoll_delay 1.0
      zr_class_modify "zombies" "fov" 125
      zr_class_modify "zombies" "overlay_path" "vgui/hud/zombiemod/zombie_view"
      zr_overlays_update_time 20
      zr_damage_suicide_zombie 1
      zr_damage_suicide_mzombie 1
      zr_damage_suicide_human 1
      zr_damage_suicide_cmds "kill, spectate, jointeam, joinclass, explode"
      zr_class_modify "zombies" "kill_bonus" 0
      zr_account_cashfill 1
      zr_account_cashfill_value 16000
      zr_ambientsounds 1
      zr_ambientsounds_volume 0.7
      zr_ambientsounds_file "ambient/zombiemod/zombie_ambient.mp3"  
       
      
      Taken from

      http://forums.alliedmods.net/showthread.php?t=134435
    • Jan 9, 2012
      Posts
      Whoa thanks! The values are those in server or examples? I am going to copy this into my notes for future reference.
    • May 14, 2011
      Posts
      The values are the default, I assume different servers use different vaules.

      And np.