Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] The New Weapon:Defibrillator


Post New Thread Reply   
 
Thread Tools Display Modes
Author
panxiaohai
Senior Member
Join Date: Mar 2010
Plugin ID:
2685
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    The New Weapon:Defibrillator
    Old 11-24-2011 , 20:24   [L4D & L4D2] The New Weapon:Defibrillator
    Reply With Quote #1

    Description:
    If you are holing a efibrillator you can use it to kill infected, you also can use it to recover your teamate's health if "l4d_defi_friendly_damage" is negative.

    How to use:


    charge
    : reload;

    attack one : attack ------------- charge >0
    attack many: zoom
    or
    attack+E; ------------- level > 0
    attack many(explosive):
    zoom+duck or attack+E+duck; ------------- level > 0

    Default keys:
    attack :(left button in l4d2, right button in 4d1);
    zoom: middle button
    duck: ctrl

    Convars:

    "l4d_defi_damage_directhit", "80.0", "hit damage ");

    "l4d_defi_damage_explode", "100.0", "explode damage" );
    "l4d_defi_radius_explode", "150.0", "explode radius" );

    "l4d_defi_damage_electricshock", "80.0", "electricshock damage " );
    "l4d_defi_radius_electricshock", "200.0", "electricshock radius" );

    "l4d_defi_charge_duration", "5.0", "charge_duration [5.0, -]seconds");
    "l4d_defi_charge_count_shot", "8", "[5, 10]");
    "l4d_defi_charge_count_
    level", "5", "[1, 5]");

    "l4d_defi_friendly_damage", "10.0", "damage for teamate [-10.0, 100.0] ");

    ChangeLog:
    1.2 - l4d_defi_friendly_damage can be a Negative number.
    1.3 - support l4d1.
    1.4 - change the damage type in l4d1, change the operate keys.
    Attached Thumbnails
    Click image for larger version

Name:	1.jpg
Views:	2902
Size:	93.4 KB
ID:	95793   Click image for larger version

Name:	2.jpg
Views:	2389
Size:	81.8 KB
ID:	95794   Click image for larger version

Name:	3.jpg
Views:	2603
Size:	94.3 KB
ID:	95795   Click image for larger version

Name:	4.jpg
Views:	2208
Size:	78.4 KB
ID:	95796  
    Attached Files
    File Type: sp Get Plugin or Get Source (defibrillator_l4d.sp - 1191 views - 23.2 KB)
    File Type: smx defibrillator_l4d.smx (16.8 KB, 1790 views)

    Last edited by panxiaohai; 12-31-2011 at 21:19.
    panxiaohai is offline
    Mr. Man
    Veteran Member
    Join Date: Mar 2011
    Location: Huh?
    Old 11-24-2011 , 23:59   Re: [L4D2] The New Weapon:Defibrillator
    Reply With Quote #2

    Testing it now, a bit confused about the 3 different modes. I tried a combination of pushing all the keys at once and separately but I can only shoot the jolt.
    Mr. Man is offline
    TheJokerx
    Junior Member
    Join Date: Jul 2011
    Old 11-25-2011 , 10:27   Re: [L4D2] The New Weapon:Defibrillator
    Reply With Quote #3

    it does not create a config file for me. but again a very nice plugin of you
    TheJokerx is offline
    Mr. Man
    Veteran Member
    Join Date: Mar 2011
    Location: Huh?
    Old 11-25-2011 , 10:38   Re: [L4D2] The New Weapon:Defibrillator
    Reply With Quote #4

    I figured out that there are 5 levels of charge (so you don't have to reload) and that you have to hold down the other buttons before pressing attack.
    Mr. Man is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 11-25-2011 , 14:55   Re: [L4D2] The New Weapon:Defibrillator
    Reply With Quote #5

    Quote:
    Originally Posted by TheJokerx View Post
    it does not create a config file for me. but again a very nice plugin of you
    Please try the new version.
    panxiaohai is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 11-25-2011 , 15:03   Re: [L4D2] The New Weapon:Defibrillator
    Reply With Quote #6

    Quote:
    Originally Posted by Mr. Man View Post
    I figured out that there are 5 levels of charge (so you don't have to reload) and that you have to hold down the other buttons before pressing attack.
    It's operation is very like the shotgun. if Level>0 you can using other two operation which is more dangerous and powerful.

    Last edited by panxiaohai; 11-25-2011 at 15:19.
    panxiaohai is offline
    Mr. Man
    Veteran Member
    Join Date: Mar 2011
    Location: Huh?
    Old 11-26-2011 , 12:12   Re: [L4D2] The New Weapon:Defibrillator
    Reply With Quote #7

    Quote:
    Originally Posted by panxiaohai View Post
    It's operation is very like the shotgun. if Level>0 you can using other two operation which is more dangerous and powerful.
    I don't see a lot of difference between tier 2 and 3 for the weapon. Is it possible that you make tier 3 stronger?
    Mr. Man is offline
    tdes
    Junior Member
    Join Date: Nov 2010
    Old 11-27-2011 , 00:38   Re: [L4D2] The New Weapon:Defibrillator
    Reply With Quote #8

    Appear a following mistake to ask to ask while converting is where wrong?

    //// defibrillator_l4d.sp
    // defibrillator_l4d.sp(241) : error 092: number of arguments does not match def
    inition
    // defibrillator_l4d.sp(239) : warning 203: symbol is never used: "shot"
    // defibrillator_l4d.sp(415) : warning 203: symbol is never used: "angle"
    // defibrillator_l4d.sp(415) : warning 203: symbol is never used: "pos"
    // defibrillator_l4d.sp(604) : warning 204: symbol is assigned a value that is n
    ever used: "bot"
    // defibrillator_l4d.sp(611) : warning 204: symbol is assigned a value that is n
    ever used: "bot"
    // defibrillator_l4d.sp(610) : warning 204: symbol is assigned a value that is n
    ever used: "client"
    //
    // 1 Error.
    tdes is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 11-27-2011 , 02:25   Re: [L4D2] The New Weapon:Defibrillator
    Reply With Quote #9

    Quote:
    Originally Posted by tdes View Post
    Appear a following mistake to ask to ask while converting is where wrong?

    //// defibrillator_l4d.sp
    // defibrillator_l4d.sp(241) : error 092: number of arguments does not match def
    inition
    // defibrillator_l4d.sp(239) : warning 203: symbol is never used: "shot"
    // defibrillator_l4d.sp(415) : warning 203: symbol is never used: "angle"
    // defibrillator_l4d.sp(415) : warning 203: symbol is never used: "pos"
    // defibrillator_l4d.sp(604) : warning 204: symbol is assigned a value that is n
    ever used: "bot"
    // defibrillator_l4d.sp(611) : warning 204: symbol is assigned a value that is n
    ever used: "bot"
    // defibrillator_l4d.sp(610) : warning 204: symbol is assigned a value that is n
    ever used: "client"
    //
    // 1 Error.
    Sorry about that, please download again.
    panxiaohai is offline
    CedricHoang
    New Member
    Join Date: Dec 2011
    Old 12-31-2011 , 09:55   Re: [L4D & L4D2] The New Weapon:Defibrillator
    Reply With Quote #10

    use = E
    duck = ?
    CedricHoang 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 12:55.


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