Tank with two shield can not be hurt (gun) from left or right side;
Survivor with a shield on back (front ) can not be hurt (infected, witch, rock) from back ( front );
This is a test version ,more options will be added;
Requirement: sdk hooks
Command:
!shield : a menu for shield operation;
!shield + password : give me a shield;
Convars:
"l4d_shield_chance_tank", "100", "chance of shield tank[0.0, 100.0]" );
"l4d_shield_chance_drop", "100", "chance of drop from dead one who have shield[0.0, 100.0]" );
"l4d_shield_password", "1234", "!shield + password"
Update:
fix the crashing prblem;
version 1.1
If you hold a shield , infected can not hurt you from front;
version 1.2
fix some problem.
A simple version (shield_simple_l4d)
Shield is not a melee weapon anymore , it is just a shield, you hold it to eliminate damage;
"l4d_shield_enabled", "1", "0: diable shield, 1:enable shield");
"l4d_shield_damage_from_ci", "0", "0: can not hurt from common infected, 1:normal"
"l4d_shield_damage_from_si", "0", "0: can not hurt from special infected "
"l4d_shield_damage_from_tankrock", "0", "0: can not hurt from tankrock "
"l4d_shield_damage_from_witch", "0", "0: can not hurt from witch "
"l4d_shield_damage_from_back", "0", "0: can not hurt from back if if it's on the survivor's back, 1:normal"
"l4d_shield_password", "1234", "give me a shield !shield + password"
Last edited by panxiaohai; 12-01-2011 at 03:24.
|