View Single Post
Author Message
dYZER
Member
Join Date: Jan 2010
Location: Germany
Old 01-25-2010 , 13:11   [L4D2] Common Zombies Autodifficulty v1.4
Reply With Quote #1

v.1.4
updated

auto diffculty, at playing survival players 1+ ingame
..cuz i hate the specials zombies, i play mostly "director_no_specials 1"

...i was playing at some multiplayer servers 4+ survivals, and i miss some zombies(waves)

INFO

what this do,

changing the spawning common zombies, and makes harder and more "common zombies" by joining players 1-12+ in survivals team.
calculation with players and game difficult, and spawn more and harder zombies...

how...
at the moment calculate this vars (look down,code), by Survivals(with or without bots) and a "changeable factor" thats can be set for each ingame difficult (easy,hard,...)

ingame trigger, "!cz" "!cZadif" "!czv"
"!cz" "!cZadif"info display
"!czv" vote game difficulty in survival mode


recalcuted vars,atm
Code:
    z_health
    z_common_limit
    z_background_limit
    z_non_head_damage_factor_easy
    z_non_head_damage_factor_expert
    z_non_head_damage_factor_hard
    z_non_head_damage_factor_normal
    z_attack_incapacitated_damage
    z_mob_spawn_max_interval_easy
    z_mob_spawn_min_interval_easy
    z_mob_spawn_max_interval_normal
    z_mob_spawn_min_interval_normal
    z_mob_spawn_max_interval_hard
    z_mob_spawn_min_interval_hard
    z_mob_spawn_max_interval_expert
    z_mob_spawn_min_interval_expert
    z_mob_spawn_max_size
    z_mob_spawn_min_size
    z_mob_spawn_finale_size
    z_mega_mob_size
    z_mega_mob_spawn_max_interval
    z_mega_mob_spawn_min_interval
    z_skirmish_spawn_max_interval
    z_skirmish_spawn_min_interval
    z_skirmish_spawn_max_size
    z_skirmish_spawn_min_size
    z_tank_health
    z_hunter_health
    z_gas_health (smokeer)
    z_exploding_health
    z_charger_health
    z_spitter_health 
    z_jockey_health
    z_witch_health
convars main
"l4d_cZadif 1/0" // turns on/off ||default "1"
l4d_cZadifak1 2 //// faktor 1 is easy/1 ||default "2"
l4d_cZadifak2 4 //// faktor 2 is normal/2 ||default "4"
l4d_cZadifak3 6 //// faktor 2 is hard/3 /||default "6"
l4d_cZadifak4 8 //// faktor 2 is expert/4 ||default "8"
l4d_cZadifbot 1/0 /// with surv-bots counting (nick,bob the builder,zoey
l4d_cZadifnfo 1/0 /// auto info anouncing (print2chat/all) ||default "1"
l4d_cZadif_version /// version output

convars based on config ( base value for calcing )
*use the xls ("c" col) 4 offline info
Code:
l4d_cZadi_z_hp "z_health",
l4d_cZadi_z_co_li "z_common_limit"
l4d_cZadi_z_bg_li "z_background_limit"
l4d_cZadi_z_nhd_ea "z_non_head_damage_factor_easy"
l4d_cZadi_z_nhd_ex "z_non_head_damage_factor_expert"
l4d_cZadi_z_nhd_ha "z_non_head_damage_factor_hard"
l4d_cZadi_z_nhd_no "z_non_head_damage_factor_normal"
l4d_cZadi_z_ainc_d "z_attack_incapacitated_damage"
l4d_cZadi_z_mob_maxi_ea "z_mob_spawn_max_interval_easy"
l4d_cZadi_z_mob_mini_ea "z_mob_spawn_min_interval_easy"
l4d_cZadi_z_mob_maxi_no "z_mob_spawn_max_interval_normal"
l4d_cZadi_z_mob_mini_no "z_mob_spawn_min_interval_normal"
l4d_cZadi_z_mob_maxi_ha "z_mob_spawn_max_interval_hard"
l4d_cZadi_z_mob_mini_ha "z_mob_spawn_min_interval_hard"
l4d_cZadi_z_mob_maxi_ex "z_mob_spawn_max_interval_expert"
l4d_cZadi_z_mob_mini_ex "z_mob_spawn_min_interval_expert"
l4d_cZadi_z_mob_maxs = "z_mob_spawn_max_size"
l4d_cZadi_z_mob_mins = "z_mob_spawn_min_size"
l4d_cZadi_z_mob_f_s = "z_mob_spawn_finale_size"
l4d_cZadi_z_mob_m_s = "z_mega_mob_size"
l4d_cZadi_z_hunter_hp = z_hunter_health
l4d_cZadi_z_smoker_hp = z_gas_health
l4d_cZadi_z_boomer_hp = z_exploding_health
l4d_cZadi_z_charger_hp = z_charger_health
l4d_cZadi_z_splitter_hp = z_spitter_health
l4d_cZadi_z_jockey_hp = z_jockey_health
l4d_cZadi_z_witch_hp = z_witch_health
l4d_cZadi_z_tank_hp = z_tank_health
l4d_cZadi_z_mob_maxi_sk = z_skirmish_spawn_max_interval
l4d_cZadi_z_mob_mini_sk = z_skirmish_spawn_min_interval
l4d_cZadi_z_smob_maxs = z_skirmish_spawn_max_size
l4d_cZadi_z_smob_mins = z_skirmish_spawn_min_size
l4d_cZadi_z_mmob_max_int = z_mega_mob_max_interval
l4d_cZadi_z_mmob_min_int = z_mega_mob_min_interval


*
example calc

l4d_cZadi_z_hp = 50
2player normal(fak4) (based at "l4d_cZadi_z_hp 50") = 82 hp
z_non_head_damage_factor_normal 0.86
z_common_limit 38
z_mob_spawn_min_size 12
2
player expert(fak8) (based at "l4d_cZadi_z_hp 50") = 178 hp
z_non_head_damage_factor_expert 0.32
z_common_limit 46
z_mob_spawn_min_size 16

8player normal(fak4) (based at "l4d_cZadi_z_hp 50") = 178 hp
z_non_head_damage_factor_normal 0.45
z_common_limit 62
z_mob_spawn_min_size 30

l4d_cZadi_z_hp = 70
2player normal(fak4) (based at "l4d_cZadi_z_hp 70") = 102 hp
z_non_head_damage_factor_normal 0.86


2
player expert(fak8) (based at "l4d_cZadi_z_hp 70") = 198 hp
z_non_head_damage_factor_expert 0.32


8player normal(fak4) (based at "l4d_cZadi_z_hp 70") = 198 hp
z_non_head_damage_factor_normal 0.45

z_mob_spawn_min_size 30


*2hard
l4d_cZadi_z_hp = 70
l4d_cZadifak2 = 12
2player normal(fak12) (based at "l4d_cZadi_z_hp 70") = 358 hp
z_non_head_damage_factor_normal 0.59
z_common_limit 54
z_mob_spawn_min_size 20

8player normal(fak12) (based at "l4d_cZadi_z_hp 70") = 1222 hp
z_non_head_damage_factor_normal -0.66 >(only headshots and critical hits) or change the base value of "l4d_cZadi_z_nhd_ex 0.5"
z_common_limit 126
z_mob_spawn_min_size 86
*u got a fast server ?)

*much much more, use the xls file


config file
"l4d_czadif.cfg"


compatible
? with l4d1 untested

xls calculations
excel
http://spreadsheets.google.com/ccc?k...TbVdYR2c&hl=en
example old pix from the excel

8player [IMG]http://img697.**************/img697/994/czad8player.th.jpg[/IMG] 4player [IMG]http://img442.**************/img442/1037/czad4player.th.jpg[/IMG] 2player [IMG]http://img526.**************/img526/6986/czad2player.th.jpg[/IMG]

changeable player green, and the factor 2,4,6,8 red, will be recalced


credits and why this
[quote] thnx Jonny for the start
the core script is based at
(special) "Autodifficulty (loot) script" from Jonny
http://forums.alliedmods.net/showthread.php?t=115763
, but that one, was used only use special zombies and one common "z_heal"


need 2fix

hocked vote_end bug? since l4d2 update ?

*recalcing pounce dmg, req round restart 2 trigger ? but set...
*common zombie dmg, whats the var ?


fixed
v1.4
-added xls to the web http://spreadsheets.google.com/ccc?k...TbVdYR2c&hl=en
-fixed min/max intervals
1.3
- added difficulty vote for survival mode trigger !czv
- added survival mode (with and without/director_no_specials 1)
1.2
- fixed for singleplayer mode, the triggers
- factor +0.x (didnt know how its worx correct)
- fixed compiling errors (float)
1.1 added special zombies (tank,hunter,...) hp support
1.0
- pimp up 2 v1.0, no bugs founded
- delete your old "l4d_czadif.cfg" file
0.9
-add "l4d_cZadifnfo" 1/0 option enable/dis all prints info to chat
0.8
-add based common zombie setting 4 changing
0.7
-mass join/left/spawning/- timer added at that recalc
0.6
-ingame difficult vote (vote_passed hooked)/- recalcing
-join/left player/bots
-change all cvars ...starting with "l4d_cZadif*"
-remove z_pounce_damage no working with commons (static? at easy,hard,..,game mode ?)
-add info trigger !cZadif same info as !cz


help!
so any1 wanna help 2 fix or update/balance, so help out
my english teacher has never help me too


***NOTE delete your old .config after updating !!!

hf
download here we go
0.5 (l4d2_commonautodif.sp - 17 +54.7z views - 10.1 KB)
0.6 (19 views)
0.7 (l4d2_commonautodif.sp - 94 views - 12.1 KB)
1.0 (l4d2_commonautodif.sp - 112 views - 17.6 KB)
1.1 (l4d2_commonautodif.sp - 250 views - 20.4 KB)
1.3 (l4d_czadif.sp - 16 views - 25.7 KB)
Attached Files
File Type: sp Get Plugin or Get Source (l4d_czadif.sp - 2702 views - 25.8 KB)

Last edited by dYZER; 07-27-2010 at 09:33. Reason: update
dYZER is offline