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

L4D[1/2] Pill's side effect


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Predailien12
Senior Member
Join Date: Feb 2010
Location: Your as* hol*
Plugin ID:
1451
Plugin Version:
1.1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    when you use pill, you will get side effect damage by probability.
    Unapprover:
    Reason for Unapproving:
    See http://forums.alliedmods.net/showpost.php?p=1211388&postcount=8
    Old 02-03-2010 , 03:19   L4D[1/2] Pill's side effect
    Reply With Quote #1

    this is version 1.1.0.

    when you use pill and success.

    you will get side effect by some percent.

    you can set the probabilities in cfg file.

    and when you get side effect, character will make some fun sound.

    here example.

    =======================example=========== ============
    if probability that occurs side effect = 20%

    there are 2 cases.

    1. you will be cured with buffer health.
    2. you will get side effect damage. ( the damage is random integer. you
    can set minimum maximum damage
    in cfg file)

    and if survivor A's health become 0 or down the 0 because of side effect,

    there will be 2 more case.

    1.A will be inccaped.
    2.A will die.

    you can also set the probability that make survivor die when their health became 0 or down the 0 in cfg file.


    here. probability computation. (all of probabilities, you can change)

    =====================example================= ======
    if side effect = 20%
    if be cured = 80%
    be incapped = ( if die probability = 10%, its one is 90%)
    (20/100)*(90/100) = 18/100 = 18%
    die = (20/100)*(10/100) = 2%.
    ============================================= =====

    have a good day~
    Attached Files
    File Type: smx PillSideEffect-english.smx (3.8 KB, 327 views)
    File Type: sp Get Plugin or Get Source (PillSideEffect-english.sp - 799 views - 3.8 KB)

    Last edited by Predailien12; 02-03-2010 at 03:22.
    Predailien12 is offline
    ldoh0112
    Member
    Join Date: Nov 2009
    Location: The Republic of Korea
    Old 02-04-2010 , 01:30   Re: L4D[1/2] Pill's side effect
    Reply With Quote #2

    Thanks.
    ldoh0112 is offline
    alinabush
    New Member
    Join Date: Mar 2010
    Old 03-18-2010 , 08:04   Re: L4D[1/2] Pill's side effect
    Reply With Quote #3

    when you use pill and success.

    you will get side effect by some percent.

    you can set the probabilities in cfg file.

    and when you get side effect, character will make some fun sound.

    here example.
    __________________
    aRM
    alinabush is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 03-18-2010 , 08:39   Re: L4D[1/2] Pill's side effect
    Reply With Quote #4

    This similar to the pills addiction plugin.
    I want an adrenaline side effect plugin
    alexip121093 is offline
    Send a message via MSN to alexip121093
    webname
    Junior Member
    Join Date: May 2009
    Old 04-16-2010 , 06:58   Re: L4D[1/2] Pill's side effect
    Reply With Quote #5

    sourcemod does not seem to like the autoexecconfig file name of "l4d2_pill's_side_effect" for me it looks for a "l4d2_pill" cfg file suggesting the ' in the
    name is the problem
    webname is offline
    chris1701
    Senior Member
    Join Date: Nov 2009
    Old 04-16-2010 , 07:06   Re: L4D[1/2] Pill's side effect
    Reply With Quote #6

    Can you add one more sideeffect which is increasing moving speed and blindhud (HUD flashing between black and red) just like jockey blindluck
    chris1701 is offline
    kwski43
    Senior Member
    Join Date: Mar 2009
    Old 04-18-2010 , 12:56   Re: L4D[1/2] Pill's side effect
    Reply With Quote #7

    Change Plugin Game to Left4Dead instead of Any because it can't be found by plugin search by game and less people will use it.
    __________________

    Last edited by kwski43; 04-18-2010 at 13:03.
    kwski43 is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 06-17-2010 , 09:19   Re: L4D[1/2] Pill's side effect
    Reply With Quote #8

    @Predailien12

    The name you used for your autoexec config file is not a valid filename. I recommend sticking to alphanumeric characters, hyphens, and/or underscores.

    Also, there are much more efficient ways to do what your timers are doing. Checking your probability values only when pills are used would be a much better solution than checking every 0.01 seconds. That is very wasteful.
    psychonic is offline
    BloodyBlade
    Senior Member
    Join Date: Feb 2018
    Old 10-01-2019 , 13:09   Re: L4D[1/2] Pill's side effect
    Reply With Quote #9

    * Converted plugin source to the latest syntax. Requires SourceMod 1.8 or newer.
    Changed: l4d2_Pill's Side Effect to l4d2_Pills_Side_Effect
    Removed: Timers
    The checks have been moved to the pills usage event.
    Attached Files
    File Type: sp Get Plugin or Get Source (PillSideEffect-english.sp - 388 views - 3.4 KB)
    BloodyBlade 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 23:54.


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