// +---------------------------+ // |vInfection[Version 1.1.0] | // +---------------------------+ // |Features: | // +---------------------------+--------+ // |{+}[Realistic Zombie Play] |Key: | // |{+}[Head and Knive Kills] |-------------------------+ // |{+}[Classes] |{+}[Whats Included] | // |{+}[Perfect Models] |{!}[Whats New] | // |{%}[Fixed Popups] |{%}[Whats Fixed] | // |{!}[Infection] |-------------------------+ // |{+}[] | // +---------------------------+-----------------+ // |CHANGELOG: | // +---------------------------------------------+ // |December 25, 2007[MERRY CHRISTMAS] | // |25~12~07 | // +---------------------------------------------+ // |{+}Released to the interweb | // +---------------------------------------------+ // |December 26, 2007 | // |26~12~07 | // +---------------------------------------------+ // |{%}Fixed popups not sending | // |{!}Infection | // +---------------------------------------------+ // |This script was made by 3R10N no stealing :P | // +---------------------------------------------+ event load { es_xset v_infection "1.1.0" es_xmakepublic v_infection es_xset v_uid 0 es_xset v_exists 0 es_xset v_infector 0 es_xkeygroupcreate v_infection mp_restartgame 5 es_doblock vInfection/v_menu_system } event player_activate { es_keycreate v_infection event_var(userid) es_keysetvalue v_infection event_var(userid) class GIGN es_keysetvalue v_infection event_var(userid) infected 0 if (event_var(es_steamid) equalto "BOT") do { es_xset v_rand 0 es_xrand v_rand 1 4 if (server_var(v_rand) equalto 1) then es_keysetvalue v_infection event_var(userid) class gign if (server_var(v_rand) equalto 2) then es_keysetvalue v_infection event_var(userid) class urban if (server_var(v_rand) equalto 3) then es_keysetvalue v_infection event_var(userid) class phoenix if (server_var(v_rand) equalto 4) then es_keysetvalue v_infection event_var(userid) class guerilla } } event player_disconnect { es_keydelete v_infection event_var(userid) } event player_spawn { es_xset v_class 0 es_keygetvalue v_class v_infection event_var(userid) class if (event_var(es_userteam) equalto "3") do { if (server_var(v_class) == "gign") then es_xdoblock vInfection/gign if (server_var(v_class) == "urban") then es_xdoblock vInfection/urban if (server_var(v_class) == "phoenix") then es_xdoblock vInfection/phoenix if (server_var(v_class) == "guerilla") then es_xdoblock vInfection/guerilla } if (event_var(es_userteam) equalto "2") do { if (server_var(v_class) == "gign") then es_xdoblock vInfection/zombiegign if (server_var(v_class) == "urban") then es_xdoblock vInfection/zombieurban if (server_var(v_class) == "phoenix") then es_xdoblock vInfection/zombiephoenix if (server_var(v_class) == "guerilla") then es_xdoblock vInfection/zombieguerilla } } event es_map_start { downloadable models/player/ics/zombieterror_v2/zh_terror001.dx80.vtx downloadable models/player/ics/zombieterror_v2/zh_terror001.dx90.vtx downloadable models/player/ics/zombieterror_v2/zh_terror001.mdl downloadable models/player/ics/zombieterror_v2/zh_terror001.phy downloadable models/player/ics/zombieterror_v2/zh_terror001.sw.vtx downloadable models/player/ics/zombieterror_v2/zh_terror001.vvd downloadable materials/models/player/ics/zombieterror_v2/terrortemp.vmt downloadable materials/models/player/ics/zombieterror_v2/terrortemp.vtf downloadable models/player/ics/zombielunatic/urban.dx80.vtx downloadable models/player/ics/zombielunatic/urban.dx90.vtx downloadable models/player/ics/zombielunatic/urban.mdl downloadable models/player/ics/zombielunatic/urban.phy downloadable models/player/ics/zombielunatic/urban.sw.vtx downloadable models/player/ics/zombielunatic/urban.vvd downloadable materials/models/player/ics/zombielunatic/ct_urban.vmt downloadable materials/models/player/ics/zombielunatic/ct_urban.vtf downloadable materials/models/player/ics/zombielunatic/ct_urban_glass.vmt downloadable materials/models/player/ics/zombielunatic/ct_urban_glass.vtf downloadable models/player/sn4k3/sm_gignzombie_v2/ct_gign.dx80.vtx downloadable models/player/sn4k3/sm_gignzombie_v2/ct_gign.dx90.vtx downloadable models/player/sn4k3/sm_gignzombie_v2/ct_gign.mdl downloadable models/player/sn4k3/sm_gignzombie_v2/ct_gign.phy downloadable models/player/sn4k3/sm_gignzombie_v2/ct_gign.sw.vtx downloadable models/player/sn4k3/sm_gignzombie_v2/ct_gign.vvd downloadable materials/models/player/sn4k3/sm_gignzombie/ct_gign.vmt downloadable materials/models/player/sn4k3/sm_gignzombie/ct_gign.vtf downloadable materials/models/player/sn4k3/sm_gignzombie/ct_gign_glass.vmt downloadable models/player/ics/t_guerilla_z/t_guerilla.dx80.vtx downloadable models/player/ics/t_guerilla_z/t_guerilla.dx90.vtx downloadable models/player/ics/t_guerilla_z/t_guerilla.mdl downloadable models/player/ics/t_guerilla_z/t_guerilla.phy downloadable models/player/ics/t_guerilla_z/t_guerilla.sw.vtx downloadable models/player/ics/t_guerilla_z/t_guerilla.vvd downloadable materials/models/player/ics/t_guerilla_z/t_guerilla.vmt downloadable materials/models/player/ics/t_guerilla_z/t_guerilla.vtf downloadable materials/models/player/ics/t_guerilla_z/t_guerilla_normal.vtf } event player_death { if (event_var(es_attackerteam) equalto "2") do { if (event_var(es_attackerweapon) equalto "weapon_knife") do { es_changeteam event_var(userid) 2 } } if (event_var(es_attackerteam) equalto "3") do { es_changeteam event_var(userid) 3 } } event player_hurt { if (event_var(es_userteam) equalto "2") do { if (event_var(hitgroup) equalto "1") do { es damage event_var(userid) 4096 2 event_var(attacker) } if (event_var(es_attackerweapon) equalto "weapon_knife") do { if (event_var(dmg_health) > 34) do { es damage event_var(userid) 4096 2 event_var(attacker) } if (event_var(health) < 1000) do { es_setplayerprop event_var(userid) "CBasePlayer.m_iHealth" "2048" } } } } event item_pickup { if (event_var(es_userteam) equalto "2") do { es_xset itemtemp 1 if (event_var(item) equalto knife) then es_xset itemtemp 0 if (server_var(itemtemp) notequalto 0) do { es_fire event_var(userid) player_weaponstrip kill es_give event_var(userid) player_weaponstrip es_fire event_var(userid) player_weaponstrip strip es_delayed .5 es_give event_var(userid) weapon_knife } } } event player_say { if (event_var(text) equalto "!change") do { es popup send v_classlist event_var(userid) } } block v_menu_system { popup create v_classlist popup addline v_classlist "Choose your Class" popup addline v_classlist "->1. [GIGN]" popup addline v_classlist "->2. [URBAN]" popup addline v_classlist "->3. [PHOENIX]" popup addline v_classlist "->4. [GUERILLA]" popup addline v_classlist "->0. [EXIT]" popup menuselect v_classlist vInfection/v_menu_selection_itemlist } block v_menu_selection_itemlist { if (server_var(_popup_choice) equalto 1) do { es_keysetvalue v_infection event_var(userid) newclass gign es_tell event_var(userid) #green You will be Gign Soldier next round! } if (server_var(_popup_choice) equalto 2) do { es_keysetvalue v_infection event_var(userid) newclass urban es_tell event_var(userid) #green You will be Urban Soldier next round! } if (server_var(_popup_choice) equalto 3) do { es_keysetvalue v_infection event_var(userid) newclass phoenix es_tell event_var(userid) #green You will be Phoenix Terrorist next round! } if (server_var(_popup_choice) equalto 4) do { es_keysetvalue v_infection event_var(userid) newclass guerilla es_tell event_var(userid) #green You will be Guerilla Terrorist next round! } } block gign { es_keysetvalue v_infection event_var(userid) infected 0 es playerset model event_var(userid) player/ct_gign es_setplayerprop event_var(userid) "CBasePlayer.m_iHealth" "100" es_setplayerprop event_var(userid) "CBasePlayer.localdata.m_flLaggedMovementValue" "1.0" } block urban { es_keysetvalue v_infection event_var(userid) infected 0 es playerset model event_var(userid) player/ct_urban es_setplayerprop event_var(userid) "CBasePlayer.m_iHealth" "100" es_setplayerprop event_var(userid) "CBasePlayer.localdata.m_flLaggedMovementValue" "1.0" } block phoenix { es_keysetvalue v_infection event_var(userid) infected 0 es playerset model event_var(userid) player/t_phoenix es_setplayerprop event_var(userid) "CBasePlayer.m_iHealth" "100" es_setplayerprop event_var(userid) "CBasePlayer.localdata.m_flLaggedMovementValue" "1.0" } block guerilla { es_keysetvalue v_infection event_var(userid) infected 0 es playerset model event_var(userid) player/t_guerilla es_setplayerprop event_var(userid) "CBasePlayer.m_iHealth" "100" es_setplayerprop event_var(userid) "CBasePlayer.localdata.m_flLaggedMovementValue" "1.0" } block zombiegign { es_keysetvalue v_infection event_var(userid) infected 1 es playerset model event_var(userid) player/sn4k3/sm_gignzombie_v2/ct_gign es_setplayerprop event_var(userid) "CBasePlayer.m_iHealth" "2048" es_setplayerprop event_var(userid) "CBasePlayer.localdata.m_flLaggedMovementValue" "1.3" } block zombieurban { es_keysetvalue v_infection event_var(userid) infected 1 es playerset model event_var(userid) player/ics/zombielunatic/urban es_setplayerprop event_var(userid) "CBasePlayer.m_iHealth" "2048" es_setplayerprop event_var(userid) "CBasePlayer.localdata.m_flLaggedMovementValue" "1.3" } block zombiephoenix { es_keysetvalue v_infection event_var(userid) infected 1 es playerset model event_var(userid) player/ics/zombieterror_v2/zh_terror001 es_setplayerprop event_var(userid) "CBasePlayer.m_iHealth" "2048" es_setplayerprop event_var(userid) "CBasePlayer.localdata.m_flLaggedMovementValue" "1.3" } block zombieguerilla { es_keysetvalue v_infection event_var(userid) infected 1 es playerset model event_var(userid) player/ics/t_guerilla_z/t_guerilla es_setplayerprop event_var(userid) "CBasePlayer.m_iHealth" "2048" es_setplayerprop event_var(userid) "CBasePlayer.localdata.m_flLaggedMovementValue" "1.3" }