Raised This Month: $12 Target: $400
 3% 

[L4D2] Shield


Post New Thread Reply   
 
Thread Tools Display Modes
Author
panxiaohai
Senior Member
Join Date: Mar 2010
Plugin ID:
2668
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 11-18-2011 , 20:37   [L4D2] Shield
    Reply With Quote #1

    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"
    Attached Thumbnails
    Click image for larger version

Name:	c2m1_highway0381.jpg
Views:	3277
Size:	91.0 KB
ID:	95488   Click image for larger version

Name:	c2m1_highway0383.jpg
Views:	2535
Size:	79.8 KB
ID:	95489   Click image for larger version

Name:	c2m1_highway0386.jpg
Views:	2458
Size:	84.5 KB
ID:	95490   Click image for larger version

Name:	c2m1_highway0087.jpg
Views:	2096
Size:	92.7 KB
ID:	95567  
    Attached Files
    File Type: smx shield_l4d.smx (13.3 KB, 894 views)
    File Type: sp Get Plugin or Get Source (shield_l4d.sp - 1797 views - 22.0 KB)
    File Type: smx shield_simple_l4d.smx (9.1 KB, 691 views)
    File Type: sp Get Plugin or Get Source (shield_simple_l4d.sp - 1459 views - 12.6 KB)

    Last edited by panxiaohai; 12-01-2011 at 03:24.
    panxiaohai is offline
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 11-19-2011 , 01:00   Re: [L4D2] Shield
    Reply With Quote #2

    aaaaaaaaaaaaaaaaa You always surprise me

    __________________

    server crash, your mistake is:

    PHP Code:
        PrecacheModel("models/weapons/melee/v_riotshield.mdl"true );
        
    PrecacheModel("models/weapons/melee/v_riotshield.mdl",true); 
    to
    PHP Code:
        PrecacheModel("models/weapons/melee/v_riotshield.mdl"true );
        
    PrecacheModel("models/weapons/melee/w_riotshield.mdl",true); 
    Where are you hurry???
    Attached Thumbnails
    Click image for larger version

Name:	1.JPG
Views:	927
Size:	10.0 KB
ID:	95501  
    __________________

    Last edited by disawar1; 11-19-2011 at 05:30. Reason: ERROR
    disawar1 is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 11-19-2011 , 08:33   Re: [L4D2] Shield
    Reply With Quote #3

    Quote:
    Originally Posted by disawar1 View Post
    aaaaaaaaaaaaaaaaa You always surprise me

    __________________

    server crash, your mistake is:

    PHP Code:
        PrecacheModel("models/weapons/melee/v_riotshield.mdl"true );
        
    PrecacheModel("models/weapons/melee/v_riotshield.mdl",true); 
    to
    PHP Code:
        PrecacheModel("models/weapons/melee/v_riotshield.mdl"true );
        
    PrecacheModel("models/weapons/melee/w_riotshield.mdl",true); 
    Where are you hurry???
    Sorry about that, I crashed too when I am testing, but I forget change the letter when copy and paste.
    panxiaohai is offline
    Mr. Man
    Veteran Member
    Join Date: Mar 2011
    Location: Huh?
    Old 11-19-2011 , 11:37   Re: [L4D2] Shield
    Reply With Quote #4

    Quote:
    Originally Posted by panxiaohai View Post
    Sorry about that, I crashed too when I am testing, but I forget change the letter when copy and paste.
    By the way, are you interested in fixing this plugin: http://forums.alliedmods.net/showthr...highlight=BOSS
    Mr. Man is offline
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 11-19-2011 , 22:24   Re: [L4D2] Shield
    Reply With Quote #5

    Mr. Man I think I have what you need, i fixing this plugin last month
    __________________

    Last edited by disawar1; 11-20-2011 at 07:01. Reason: ----> STOP SPAM PLS THIS IS panxiaohai TOPIC!!!!
    disawar1 is offline
    Mr. Man
    Veteran Member
    Join Date: Mar 2011
    Location: Huh?
    Old 11-19-2011 , 23:11   Re: [L4D2] Shield
    Reply With Quote #6

    Quote:
    Originally Posted by disawar1 View Post
    Mr. Man I think I have what you need, i fixing this plugin last month
    Oh? Do you have an updated copy?

    I posted some of the problems I ran into in that thread. (Sorry for the thread hijack!)
    Mr. Man is offline
    paul92
    Senior Member
    Join Date: Sep 2010
    Old 11-29-2011 , 16:26   Re: [L4D2] Shield
    Reply With Quote #7

    Can you use the shield to attack (like a melee weapon?)
    If yes, while you use the shield, you can't take damage from FRONT damage instead of BACK damage, right?
    If yes, AWESOME. If it isn't like a melee weapon, could you make it so? (And protect from FRONT damage, if using the shield, and from BACK if it's on the survivor's back)
    paul92 is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 12-01-2011 , 03:24   Re: [L4D2] Shield
    Reply With Quote #8

    Quote:
    Originally Posted by paul92 View Post
    Can you use the shield to attack (like a melee weapon?)
    If yes, while you use the shield, you can't take damage from FRONT damage instead of BACK damage, right?
    If yes, AWESOME. If it isn't like a melee weapon, could you make it so? (And protect from FRONT damage, if using the shield, and from BACK if it's on the survivor's back)
    I make a simple version for you, I think you can try it.
    panxiaohai is offline
    paul92
    Senior Member
    Join Date: Sep 2010
    Old 12-01-2011 , 09:09   Re: [L4D2] Shield
    Reply With Quote #9

    I tried it, but looks like there is no difference from the normal one...
    I still can't use the shield, and kill some common infected with it.
    I can only put it on the back...
    What is the difference? What i miss?
    paul92 is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 12-01-2011 , 09:49   Re: [L4D2] Shield
    Reply With Quote #10

    Quote:
    Originally Posted by paul92 View Post
    I tried it, but looks like there is no difference from the normal one...
    I still can't use the shield, and kill some common infected with it.
    I can only put it on the back...
    What is the difference? What i miss?
    I do not understand your meaning, I have confused about your sentence.

    The new version is simple;
    If you have a shield and hold it(you can not use it to attack as a melee weapon, because it is a shield now, it's only fucntion is prevent damage ) , you will not be hurt from front , if you hold other wepon (the shiedl go to your back), you will not be hurt from back.

    I can add convars to enable shield's attacking, but I think it will be too powerful.

    The old version can talk two shield, the new one can only take one shield.
    The old version have two mode: front and back, the mode is select from menu. The new version switch mode between front and back automatically.
    The new version is like you said: protect from FRONT damage, if using the shield, and from BACK if it's on the survivor's back

    Last edited by panxiaohai; 12-01-2011 at 10:05.
    panxiaohai is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 02:23.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode