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

[CSGO] Deagle HS Only


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Plugin ID:
7552
Plugin Version:
1.0.2
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin allows your server to only allow damage if the deagle shots are headshot. Any other weapon will keep its normal damage.
    Old 03-09-2021 , 11:53   [CSGO] Deagle HS Only
    Reply With Quote #1

    Deagle HS Only

    by SpirT

    What is this?
    A simple plugin that only allows damage with deagle if the hit is an headshot. All other weapons will keep the same hitbox and damage. I also did this plugin because a lot of people in the CS:GO community (most of them Portuguese) asked for this kind of plugin. I did it as "private" for no cost but decided to upload it here so it's easier for them to get it and for other people to find this out!

    Requirements
    - SourceMod Installed on your server (plugin was tested on 1.10 build 6502)
    - MetaMod Installed on your server (plugin was tested on 1.10 build 1144)

    Installation
    • Upload all files to your server

    ToDo List
    • Nothing for now, but ideas are appreciated.

    GitHub Repo
    Latest Release

    Releases
    -------------
    1.0.2-FIX:
    -> Fixed plugin library register (Library was not being registered)
    -------------
    1.0.2:
    -> Fixed console spam (thanks to Lantejoula for reporting)
    -> Removed unecessary code
    -> Added include file for other plugins to mark my plugin as a required dependency (thanks for the idea Lantejoula)
    -------------
    1.0.0:
    -> Plugin Release
    -------------

    For any issue or bug, reply to the post or contact me on steam.
    Attached Files
    File Type: zip Deagle HS Only (1.0).zip (5.3 KB, 220 views)
    File Type: zip Deagle HS Only (1.0.2).zip (5.3 KB, 131 views)
    File Type: zip Deagle HS Only (1.0.2-fix).zip (5.4 KB, 319 views)
    __________________

    Last edited by SpirT; 04-09-2021 at 05:42. Reason: Update - v.1.0.2
    SpirT is offline
    Effeff
    AlliedModders Donor
    Join Date: Jan 2019
    Location: discord: ff#0533
    Old 03-09-2021 , 12:21   Re: [CSGO] Deagle HS Only
    Reply With Quote #2

    I suggest using SDKHook_TraceAttack to remove aimpunch from teammates and completely ignore non-headshot attacks from deagle. pseudo below, I'd try it first to see if you think it's a good idea or not.

    PHP Code:
    // TraceAttack
    function Action (int victimint &attackerint &inflictorfloat &damageint &damagetypeint &ammotypeint hitboxint hitgroup); 
    inside traceattack callback

    Code:
    if (attacker > 0 && attacker <= MaxClients && IsClientInGame(attacker) && attacker has deagle)
    {
        // hitgroup 1 is headshot
        if (hitgroup != 1 || GetClientTeam(attacker) == GetClientTeam(victim))
        {
            SetEntPropFloat(victim, Prop_Send, "m_flVelocityModifier", 1.0); // not certain if this is needed.
            return Plugin_Stop;
        }
    }
    Effeff is offline
    Carpete_Americana
    Junior Member
    Join Date: Oct 2020
    Location: Portugal
    Old 03-09-2021 , 12:38   Re: [CSGO] Deagle HS Only
    Reply With Quote #3

    Nice release!
    __________________
    My Csgo Community:
    Name: Elemental Gaming
    Steam group: http://steamcommunity.com/groups/elememtalgc
    Discord Server: https://discord.gg/sKs6GPc
    My Steam profile: https://steamcommunity.com/id/-carpete-/
    Carpete_Americana is offline
    Send a message via AIM to Carpete_Americana
    TrS
    New Member
    Join Date: Mar 2021
    Old 03-10-2021 , 04:24   Re: [CSGO] Deagle HS Only
    Reply With Quote #4

    Spirt is the king <3

    My Steam:https://steamcommunity.com/id/TrSOfficial
    My Community:https://steamcommunity.com/groups/RepublicOfWarOficial
    Discord: https://discord.com/invite/b8f9txr5D8
    TrS is offline
    Reply



    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:27.


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