Raised This Month: $ Target: $400
 0% 

[CS:GO] Thunder/Lighting Bolt Headshot Kill Effect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-01-2023 , 00:31   Re: [CS:GO] Thunder/Lighting Bolt Headshot Kill Effect
Reply With Quote #4

In this version, I have made some edit or fixes as well, to avoid errors.


This plugin use cookies (aka SM plugin "Client Preferences")
- Means, player can save plugin setting from sm_settings (or using sm_cookies headshot_tesla 1 or 0)
- This data is saved into ...addons/sourcemod/data/sqlite/clientprefs-sqlite.sq3
- After player have made save first time, setting will remain in that state until player change it next time.
- To clarify, player need himself go to !settings and set plugin feature to be always On or Off.
- Another command is: sm_thunder
-- If player not make a save for first time (this will happen on 90% of players), plugin feature would appear how next cvar is set.




Plugin have Console Variable
Code:
//"sm_headshotthundersetting_default" = "0" min. 0.000000 max. 1.000000
//- For new player, is plugin feature enabled by default ? 1 = on, 0 = off
By default, plugin effect is disabled for new players, who haven't save plugin setting at all.
- Changing cvar value on fly:
sm_cvar sm_headshotthundersetting_default 1 or 0
You can enable and disable plugin effect on those players who have not make a settings save.





Admin system.
- You can disable plugin effect from non-admins.
By default, plugin effect is enabled for everyone.
To override plugin effect to admins only, use word "sm_thunder"
...addons/sourcemod/configs/admin_overrides.cfg
PHP Code:

Overrides
{
    
/**
     * By default, commands are registered with three pieces of information:
     * 1)Command Name         (for example, "csdm_enable")
     * 2)Command Group Name    (for example, "CSDM")
     * 3)Command Level        (for example, "changemap")
     *
     * You can override the default flags assigned to individual commands or command groups in this way.
     * To override a group, use the "@" character before the name.  Example:
     * Examples:
     *        "@CSDM"            "b"                // Override the CSDM group to 'b' flag
     *         "csdm_enable"    "bgi"            // Override the csdm_enable command to 'bgi' flags
     *
     * Note that for overrides, order is important.  In the above example, csdm_enable overwrites
     * any setting that csdm_enable previously had.
     *
     * You can make a command completely public by using an empty flag string.
     */

    
"sm_thunder"    "a" // key value "" remove flags

And when you want use admin override to one of admin groups (example "Default")
...addons/sourcemod/configs/admin_groups.cfg
PHP Code:

Groups
{
    
/**
     * Allowed properties for a group:
     *
     *   "flags"           - Flag string.
     *   "immunity"        - Immunity level number, or a group name.
     *                         If the group name is a number, prepend it with an 
     *                         '@' symbol similar to admins_simple.ini.  Users 
     *                         will only inherit the level number if it's higher 
     *                         than their current value.
     */
    
"Default"
    
{
         
Overrides
         
{
            
"sm_thunder"    "allow" // or "deny" to block access
         
}
        
"immunity"        "1"
    
}
    
    
"Full Admins"
    
{
        
/**
         * You can override commands and command groups here.
         * Specify a command name or group and either "allow" or "deny"
         * Examples:
         *         ":CSDM"            "allow"
         *        "csdm_enable"    "deny"
         */
         
Overrides
         
{
         }
        
"flags"            "abcdefghiz"

        
/* Largish number for lots of in-between values. */
        
"immunity"        "99"
    
}






Rant:
If this plugin still need some edit or fix, I look it next time in year 2024
Attached Files
File Type: zip csgo_effect_thunder_headshot.zip (11.9 KB, 86 views)
__________________
Do not Private Message @me

Last edited by Bacardi; 02-01-2023 at 00:32.
Bacardi is offline
 



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


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