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

[CS:S] NadeShake


Post New Thread Reply   
 
Thread Tools Display Modes
Author
VoGon
Member
Join Date: Jun 2009
Location: Portugal
Plugin ID:
1981
Plugin Version:
1.0.2
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    17 
    Plugin Description:
    Makes the screen of players that have been damaged by hegrenades shake.
    Old 10-03-2010 , 12:44   [CS:S] NadeShake
    Reply With Quote #1

    Video
    -----------

    HERE

    Description

    -----------
    Makes the screen of players that have been damaged by hegrenades shake.

    There are 2 possibilities, constant shake amount or shake by damage inflicted by changing sm_nadeshake_nadedmg

    This is my fist attempt at coding a plugin so be gentle...

    Configuration
    -------------
    sm_nadeshake_enable 1 / 0 to enable/disable NadeShake - Defaults to on
    sm_nadeshake_nadedmg 1 / 0 to enable/disable NadeShake by damage inflicted - Defaults to on

    Plugin autocreates sm_nadeshake.cfg in cfg/sourcemod directory

    Requirements
    ------------
    Counter-Strike: Source
    SourceMod 1.3

    Installation

    ------------,9
    Download the smx file and extract into your /cstrike/addons/sourcemod/plugins/ directory.

    Restart server or change map for plugin to activate and autocreate cfg/sourcemod/sm_nadeshake.cfg.

    Credits
    -------
    Big thanks to Altex for his support and for showing me some stuff I was too noob to know.

    V0gelz for his shake stock.

    Bacardi for the damage inflicted code and for being Bacardi that is always there ;)
    Attached Files
    File Type: sp Get Plugin or Get Source (nadeshake.sp - 4107 views - 2.4 KB)
    __________________

    Last edited by VoGon; 06-07-2011 at 15:55. Reason: Bacardi and long time no appear
    VoGon is offline
    Send a message via Skype™ to VoGon
    bouncer
    Veteran Member
    Join Date: Apr 2009
    Old 10-03-2010 , 12:59   Re: NadeShake
    Reply With Quote #2

    video?
    __________________


    bouncer is offline
    VoGon
    Member
    Join Date: Jun 2009
    Location: Portugal
    Old 10-03-2010 , 13:00   Re: NadeShake
    Reply With Quote #3

    Will upload one as soon as possible.
    __________________
    VoGon is offline
    Send a message via Skype™ to VoGon
    honorcode23
    BANNED
    Join Date: Mar 2010
    Location: Chile
    Old 10-03-2010 , 13:31   Re: NadeShake
    Reply With Quote #4

    One suggestion, dont take it personal i just want to help .

    this part of the code
    Code:
    if(StrEqual(Weapon,"hegrenade")== true)
    That == true isnt really necessary, as it is if(1==1) .

    Code:
    if(StrEqual(Weapon,"hegrenade"))
    That's better .
    honorcode23 is offline
    VoGon
    Member
    Join Date: Jun 2009
    Location: Portugal
    Old 10-03-2010 , 13:32   Re: NadeShake
    Reply With Quote #5

    Quote:
    Originally Posted by honorcode23 View Post
    One suggestion, dont take it personal i just want to help .

    this part of the code
    Code:
    if(StrEqual(Weapon,"hegrenade")== true)
    That == true isnt really necessary, as it is if(1==1) .

    Code:
    if(StrEqual(Weapon,"hegrenade"))
    That's better .

    I never take it personal ;) thanks!
    __________________
    VoGon is offline
    Send a message via Skype™ to VoGon
    VoGon
    Member
    Join Date: Jun 2009
    Location: Portugal
    Old 10-03-2010 , 14:04   Re: NadeShake
    Reply With Quote #6

    Also video added
    __________________
    VoGon is offline
    Send a message via Skype™ to VoGon
    M249-M4A1
    I <3 Mac
    Join Date: May 2005
    Location: Not interested
    Old 10-03-2010 , 15:16   Re: NadeShake
    Reply With Quote #7

    A simple and nice plugin, great!
    __________________
    M249-M4A1 is offline
    GrO
    Veteran Member
    Join Date: Jun 2010
    Location: Poland
    Old 10-04-2010 , 08:21   Re: NadeShake
    Reply With Quote #8

    Yey, I'm gonna use it on my server, thanks for nice plugin.
    __________________
    GrO is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 10-04-2010 , 16:48   Re: NadeShake
    Reply With Quote #9

    Hahaha, this look more realistic now. Have to try this also on server.

    *edit
    So now, players what take any dmg from he-grenade take that same amount shake effect (50.0)
    Not big deal and works great.

    I edit and tested using dmg-amount to give that shake effect instead that default 50.0, I like it that way.
    - What bigger is damage, bigger is shake and vice versa, smaller damage, small shake


    [out of topic]
    I manage to hurt myself with he-grenade 94dmg with no-kevlars :O
    and have disabled old grenade system
    Code:
    "sv_legacy_grenade_damage" = "0"
     game replicated
     - Enable to replicate grenade damage behavior of the original Counter-Strike Source game.
    "
    *second edit
    You sould start make other plugin about headshot shake

    Last edited by Bacardi; 10-04-2010 at 17:39. Reason: typos
    Bacardi is offline
    VoGon
    Member
    Join Date: Jun 2009
    Location: Portugal
    Old 10-05-2010 , 05:11   Re: NadeShake
    Reply With Quote #10

    Thx for the comments guys!

    @Bacardi - The shaking based on damage is actually a good idea ;)
    __________________
    VoGon is offline
    Send a message via Skype™ to VoGon
    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 21:28.


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