Raised This Month: $ Target: $400
 0% 

[CS:S] No Head Shake v1.0.1 (Updated: 4/13/12)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Plugin ID:
2901
Plugin Version:
1.0.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    12 
    Plugin Description:
    Provides the ability to remove the screen shaking upon being shot in the head.
    Old 04-12-2012 , 12:08   [CS:S] No Head Shake v1.0.1 (Updated: 4/13/12)
    Reply With Quote #1

    Requirements:
    Description:
    • A quick and dirty plugin that removes the shaking effect when clients are shot in the head, with two cvars to control usage.
    ConVars:
    • css_no_head_shake_team: Disables the shaking effect when shot by team mates in the head.
    • css_no_head_shake_enemy: Disables the shaking effect when shot by enemies in the head.
    Installation:
    • Place css_no_head_shake.smx inside of /sourcemod/plugins/
    Attached Files
    File Type: sp Get Plugin or Get Source (css_no_head_shake.sp - 1072 views - 3.2 KB)
    File Type: smx css_no_head_shake.smx (3.6 KB, 669 views)
    __________________

    Last edited by thetwistedpanda; 04-13-2012 at 10:00.
    thetwistedpanda is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 04-12-2012 , 12:11   Re: [CS:S] No Head Shake
    Reply With Quote #2

    This is good for FF OFF servers
    __________________
    View my Plugins | Donate
    TnTSCS is offline
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 04-12-2012 , 13:15   Re: [CS:S] No Head Shake
    Reply With Quote #3

    Keeping track of team switches is not the best method. You're better off just calling get team. The reason i say not the best method is iirc switching a player via one of the many methods there is wont call the event. Other than that it looks good! Ill have a better look and confirm if my theory is correct If it isnt ill approve heh.
    Dr!fter is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 04-12-2012 , 13:21   Re: [CS:S] No Head Shake
    Reply With Quote #4

    As far as I know, CS:S always calls the player_team event when a player's team is changed. Every plugin I use caches the team since it only changes on that event, unless there's a new method from DHooks that doesn't fire the event. And frankly, if there's a method that doesn't call player_team, it should still fake fire the event because that will only cause incompatibility with far more plugins, but m_iTeamNum/CS_SwitchTeam/ChangeClientTeam, the three most prominent methods, all call it.
    __________________

    Last edited by thetwistedpanda; 04-12-2012 at 13:28.
    thetwistedpanda is offline
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 04-12-2012 , 16:47   Re: [CS:S] No Head Shake
    Reply With Quote #5

    Quote:
    Originally Posted by thetwistedpanda View Post
    As far as I know, CS:S always calls the player_team event when a player's team is changed. Every plugin I use caches the team since it only changes on that event, unless there's a new method from DHooks that doesn't fire the event. And frankly, if there's a method that doesn't call player_team, it should still fake fire the event because that will only cause incompatibility with far more plugins, but m_iTeamNum/CS_SwitchTeam/ChangeClientTeam, the three most prominent methods, all call it.
    Indeed it does. Approved then Also Nice job

    Last edited by Dr!fter; 04-12-2012 at 16:49.
    Dr!fter is offline
    Fearts
    ferts of daeth
    Join Date: Oct 2008
    Old 04-12-2012 , 22:06   Re: [CS:S] No Head Shake
    Reply With Quote #6

    Thanks for this adding to all my servers.
    __________________
    Fearts is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 04-12-2012 , 22:18   Re: [CS:S] No Head Shake
    Reply With Quote #7

    Quote:
    Originally Posted by Dr!fter View Post
    Indeed it does. Approved then Also Nice job
    This was apparently discussed on IRC a few days ago; Peace-Maker wrote code that accomplished just this for someone, but apparently didn't release it. I had this stuff sitting around in my BuildWars plugin and just through a copy/paste together when it was requested >.<.
    __________________
    thetwistedpanda is offline
    blue zebra
    BANNED
    Join Date: Jun 2010
    Old 04-13-2012 , 02:46   Re: [CS:S] No Head Shake v1.0.0 (Updated: 4/12/12)
    Reply With Quote #8

    I think, i found a little bug in this plugin.
    When i turn on this plugin, all player skins will be totally dark/black. All new player gets this dark skin. When the player die, the dead body gets the good skin.
    When i disabled this plugin, the old player use the dark skin and the newly entered player got the good skin. Game: CSS. See:
    Attached Thumbnails
    Click image for larger version

Name:	skin_error.jpg
Views:	779
Size:	97.7 KB
ID:	102093   Click image for larger version

Name:	skin_error2.jpg
Views:	737
Size:	96.7 KB
ID:	102094   Click image for larger version

Name:	skin_error3.jpg
Views:	748
Size:	94.2 KB
ID:	102095  

    Last edited by blue zebra; 04-13-2012 at 03:01.
    blue zebra is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 04-13-2012 , 03:30   Re: [CS:S] No Head Shake v1.0.0 (Updated: 4/12/12)
    Reply With Quote #9

    That looks like incompatibility with something else you're currently running. This plugin doesn't have anything to do with models/colors. The code itself is quite simple...
    __________________

    Last edited by thetwistedpanda; 04-13-2012 at 03:33.
    thetwistedpanda is offline
    linglingftw
    Member
    Join Date: Aug 2010
    Old 04-13-2012 , 03:47   Re: [CS:S] No Head Shake v1.0.0 (Updated: 4/12/12)
    Reply With Quote #10

    Panda.. You're amazing

    Last edited by linglingftw; 04-13-2012 at 04:02.
    linglingftw 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 03:46.


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