Raised This Month: $344 Target: $400
 86%   Almost there!

[CSGO/CSS] Freeze grenades


Post New Thread Reply   
 
Thread Tools Display Modes
Author
joac1144
Senior Member
Join Date: Dec 2012
Location: Copenhagen, Denmark
Plugin ID:
6320
Plugin Version:
1.1
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    When a grenade explodes, everybody who gets hit freezes for a while.
    Old 10-31-2018 , 06:48   [CSGO/CSS] Freeze grenades
    Reply With Quote #1

    Description:
    When a grenade explodes, everybody who gets hit freezes for a while.
    This is just a little fun gameplay plugin, I don't know what it can be used for really.

    This has only been tested in CS:GO, but I suppose it should work for CSS too.

    CVAR list:
    fn_damage - Whether or not grenades do damage along with freezing. 1 = damage, 0 = no damage
    fn_freezemultiplier - How much you multiply with the expected damage to find the freeze time. 50 damage * 0.15 = 7.5 seconds of freeze time. 0.0 = fn_freezetime is used instead.
    fn_freezetime - For how long grenades freeze players. 0.0 = fn_freezemultiplier is used instead.
    fn_freezetimemax - The maximum amount of time a player can be frozen.
    fn_showmessage - Whether or not a message will be displayed in chat when you hit or get hit by someone with a grenade. 1 = message, 0 = no message


    Command list:
    No commands.

    Changelog:
    Quote:
    Version 1.0 - 10-31-2018

    - Plugin released

    Version 1.1 - 11-02-2018

    - Updated code to use convarname.FloatValue

    Installation:
    Download freezenades.smx and put it into your addons/sourcemod/plugins folder.

    Note:
    I'm not that experienced with Sourcemod coding, so if anythings looks bad or something, you are welcome to inform me.

    Attached Files
    File Type: sp Get Plugin or Get Source (freezenades.sp - 1228 views - 4.2 KB)

    Last edited by joac1144; 11-01-2018 at 20:02. Reason: Updating code
    joac1144 is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 10-31-2018 , 07:41   Re: [CSGO/CSS] Freeze grenades
    Reply With Quote #2

    Hit and Run obviously...
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334
    eyal282 is offline
    skyler.b
    AlliedModders Donor
    Join Date: Dec 2017
    Location: israel
    Old 10-31-2018 , 08:38   Re: [CSGO/CSS] Freeze grenades
    Reply With Quote #3

    http://prntscr.com/lco3qc
    I don't think that the victim froze him selfs
    __________________
    Taking private requests

    part of the gurney is the end.
    skyler.b is offline
    joac1144
    Senior Member
    Join Date: Dec 2012
    Location: Copenhagen, Denmark
    Old 10-31-2018 , 08:57   Re: [CSGO/CSS] Freeze grenades
    Reply With Quote #4

    Quote:
    Originally Posted by skyler.b View Post
    http://prntscr.com/lco3qc
    I don't think that the victim froze him selfs
    Fixed

    Last edited by joac1144; 10-31-2018 at 09:03.
    joac1144 is offline
    Ilusion9
    Veteran Member
    Join Date: Jun 2018
    Location: Romania
    Old 10-31-2018 , 09:06   Re: [CSGO/CSS] Freeze grenades
    Reply With Quote #5

    PHP Code:

        char g_freezeMultiplierValue
    [8];
        
    g_freezeMultiplier.GetString(g_freezeMultiplierValuesizeof(g_freezeMultiplierValue));
        
    float freezeMultiplier StringToFloat(g_freezeMultiplierValue); 
    use

    PHP Code:

        g_freezeMultiplier
    .FloatValue 
    https://sm.alliedmods.net/new-api/convars/ConVar
    Ilusion9 is offline
    joac1144
    Senior Member
    Join Date: Dec 2012
    Location: Copenhagen, Denmark
    Old 11-01-2018 , 20:02   Re: [CSGO/CSS] Freeze grenades
    Reply With Quote #6

    Quote:
    Originally Posted by Ilusion9 View Post
    PHP Code:

        char g_freezeMultiplierValue
    [8];
        
    g_freezeMultiplier.GetString(g_freezeMultiplierValuesizeof(g_freezeMultiplierValue));
        
    float freezeMultiplier StringToFloat(g_freezeMultiplierValue); 
    use

    PHP Code:

        g_freezeMultiplier
    .FloatValue 
    https://sm.alliedmods.net/new-api/convars/ConVar
    Done
    joac1144 is offline
    aykocity
    Member
    Join Date: Sep 2017
    Old 11-01-2018 , 23:31   Re: [CSGO/CSS] Freeze grenades
    Reply With Quote #7

    Would you please add this?
    just uses vip and admins

    example

    fn_justflag "abcdefg"
    aykocity is offline
    joac1144
    Senior Member
    Join Date: Dec 2012
    Location: Copenhagen, Denmark
    Old 11-02-2018 , 10:41   Re: [CSGO/CSS] Freeze grenades
    Reply With Quote #8

    Quote:
    Originally Posted by aykocity View Post
    Would you please add this?
    just uses vip and admins

    example

    fn_justflag "abcdefg"
    I don't quite know how exactly to do this.
    If anyone can help out, it would be appreciated.

    I can look into it at some point, but I don't have the time today.
    joac1144 is offline
    BlackSabbarh
    Senior Member
    Join Date: Sep 2018
    Old 04-10-2019 , 05:02   Re: [CSGO/CSS] Freeze grenades
    Reply With Quote #9

    could you add support for other games like ld42?
    BlackSabbarh 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 - 2022, vBulletin Solutions, Inc.
    Theme made by Freecode