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

[CS:GO/ANY] Player Souls


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FrAgOrDiE
AlliedModders Donor
Join Date: May 2018
Location: Italy
Plugin ID:
7126
Plugin Version:
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 05-25-2020 , 08:29   [CS:GO/ANY] Player Souls
    Reply With Quote #1

    Description
    This plugin spawns souls above dead bodies. Players can interact with souls by pressing CTRL + E: if you`re interacting with a teammate`s soul you`re gonna respawn him, otherwise you will destroy his soul.

    CVARS
    Code:
    // Store credits a client will get respawning a player
    // -
    // Default: "0"
    // Minimum: "0.000000"
    sm_souls_credits_on_respawn "0"
    
    // Store credits a client will get stealing a player's soul
    // -
    // Default: "0"
    // Minimum: "0.000000"
    sm_souls_credits_on_steal "0"
    
    // SQL database entry in configs/databases.cfg
    // -
    // Default: "souls"
    sm_souls_db_confname "souls"
    
    // Disallow attacking while interacting with a soul
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_souls_disable_attack "1"
    
    // Should souls not be spawned when Last Request is available? (Only for JailBreak servers)
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_souls_disable_on_lr "1"
    
    // Choose if respawning players is enabled or not
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_souls_enable_respawning "1"
    
    // Enable support for SQL
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_souls_enable_sql "0"
    
    // Choose if stealing a soul is enabled or not
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_souls_enable_stealing "1"
    
    // Time required to steal/respawn a soul
    // -
    // Default: "6"
    sm_souls_interact_time "6"
    
    // For which teams should souls be spawned (1 = only Ts, 2 = only CTs, 3 = BOTH)
    // -
    // Default: "3"
    // Minimum: "1.000000"
    // Maximum: "3.000000"
    sm_souls_teams "3"
    
    // Only the warden's soul will be spawned
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_souls_warden_only "0"
    API
    PHP Code:
    /** 
     * Returns client's stolen souls (sql).
     *
     * @param        Client Steam64ID.
     */
    native int Souls_GetClientStolenSouls(char[] sSteam64);

    /** 
     * Returns client's respawns (sql).
     *
     * @param        Client Steam64ID.
     */
    native int Souls_GetClientRespawnedClients(char[] sSteam64);

    /** 
     * Toggles soul for a dead player.
     *
     * @param        Client Index.
     * @param        true to enable, false to disable.
     */
    native void Souls_ToggleSoul(int clientbool toggle)


    /**
     * Called when a client interact (respawn or steal) with a soul.
     *
     * @param client        Client Index.
     * @param target        Target Index which who the client is interacting with.
     *
     * @noreturn
     */
    forward void Souls_OnSoulInteraction(int clientint target
    Screenshots




    How to use SQL
    First set sm_souls_enable_sql "1" in cfg/plugin.galaxy-souls.cfg, then add a new entry in addons/sourcemod/configs/databases.cfg like this:
    Code:
    "souls"
    {
    	"driver"		"mysql"
    	"host"		"ADD_THIS"
    	"database"	"ADD_THIS"
    	"user"		"ADD_THIS"
    	"pass"		"ADD_THIS"
    	//port"		"ADD_THIS"
    }
    Download
    GitHub
    __________________
    Add me on discord: FrAgOrDiE#5182
    Add me on steam: https://steamcommunity.com/id/fragordie002/
    Join my discord server: http://discord.gg/JpAUXMn

    Last edited by FrAgOrDiE; 11-03-2020 at 08:26.
    FrAgOrDiE is offline
    Eviona
    Junior Member
    Join Date: May 2020
    Old 05-25-2020 , 09:33   Re: [CS:GO/ANY] Player Souls
    Reply With Quote #2

    Quote:
    Originally Posted by FrAgOrDiE View Post
    Description
    This plugin spawns souls above dead bodies. Players can interact with souls by pressing CTRL + E: if you`re interacting with a teammate`s soul you`re gonna respawn him, otherwise you will break his soul.

    CVARS
    Code:
    // SQL database entry in configs/databases.cfg
    // -
    // Default: "souls"
    sm_souls_db_confname "souls"
    
    // Disallow attacking while interacting with a soul
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_souls_disable_attack "1"
    
    // Enable support for SQL
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_souls_enable_sql "1"
    
    // Time required to steal/respawn a soul
    // -
    // Default: "6"
    sm_souls_interact_time "6"
    
    // For which teams should souls be spawned (1 = only Ts, 2 = only CTs, 3 = BOTH)
    // -
    // Default: "3"
    sm_souls_teams "3"
    API
    PHP Code:
    /** 
     * Returns client's stolen souls (sql).
     *
     * @param        Client Steam64ID.
     */
    native int Souls_GetClientStolenSouls(char[] sSteam64);

    /** 
     * Returns client's respawns (sql).
     *
     * @param        Client Steam64ID.
     */
    native int Souls_GetClientRespawnedClients(char[] sSteam64);

    /** 
     * Toggles soul for a dead player.
     *
     * @param        Client Index.
     * @param        true to enable, false to disable.
     */
    native void Souls_ToggleSoul(int clientbool toggle)


    /**
     * Called when a client interact (respawn or steal) with a soul.
     *
     * @param client        Client Index.
     * @param target        Target Index which who the client is interacting with.
     *
     * @noreturn
     */
    forward void Souls_OnSoulInteraction(int clientint target
    Screenshots


    How to use SQL
    First set sm_souls_enable_sql "0" in cfg/plugin.galaxy-souls.cfg, then add a new entry in addons/sourcemod/configs/databases.cfg like this:
    Code:
    "souls"
    {
    	"driver"		"mysql"
    	"host"		"ADD_THIS"
    	"database"	"ADD_THIS"
    	"user"		"ADD_THIS"
    	"pass"		"ADD_THIS"
    	//port"		"ADD_THIS"
    }
    Download
    GitHub

    Hi nice plugin, little advice how about sm_souls_warden_only "1" (for jailbreak mode) only warden can be respawned on ct (no t respawns) it would be awesome jailbreak plugin
    Eviona is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 05-25-2020 , 10:13   Re: [CS:GO/ANY] Player Souls
    Reply With Quote #3

    No credits?
    [L4D] Death Soul
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    FrAgOrDiE
    AlliedModders Donor
    Join Date: May 2018
    Location: Italy
    Old 05-25-2020 , 10:20   Re: [CS:GO/ANY] Player Souls
    Reply With Quote #4

    Hey, I added "sm_souls_warden_only" convar ^^
    https://github.com/FrAgOrDiE02/Galax...ec3c456ad69ea3
    __________________
    Add me on discord: FrAgOrDiE#5182
    Add me on steam: https://steamcommunity.com/id/fragordie002/
    Join my discord server: http://discord.gg/JpAUXMn
    FrAgOrDiE is offline
    Eviona
    Junior Member
    Join Date: May 2020
    Old 05-25-2020 , 11:15   Re: [CS:GO/ANY] Player Souls
    Reply With Quote #5

    Quote:
    Originally Posted by FrAgOrDiE View Post
    Hey, I added "sm_souls_warden_only" convar ^^
    https://github.com/FrAgOrDiE02/Galax...ec3c456ad69ea3
    Wow that was fast thanks
    Eviona is offline
    Eviona
    Junior Member
    Join Date: May 2020
    Old 05-25-2020 , 12:22   Re: [CS:GO/ANY] Player Souls
    Reply With Quote #6

    Quote:
    Originally Posted by FrAgOrDiE View Post
    Hey, I added "sm_souls_warden_only" convar ^^
    https://github.com/FrAgOrDiE02/Galax...ec3c456ad69ea3
    Tried it, i set sm_souls_warden_only "1" and sm_souls_teams "2" (warden can't revive like this not available, also tried to set sm_souls_teams "0" and no one can revive) any help?
    Eviona is offline
    FrAgOrDiE
    AlliedModders Donor
    Join Date: May 2018
    Location: Italy
    Old 05-25-2020 , 18:56   Re: [CS:GO/ANY] Player Souls
    Reply With Quote #7

    I thought you meant something else, in fact the convar just allows you spawn soul only for the warden
    __________________
    Add me on discord: FrAgOrDiE#5182
    Add me on steam: https://steamcommunity.com/id/fragordie002/
    Join my discord server: http://discord.gg/JpAUXMn
    FrAgOrDiE is offline
    Eviona
    Junior Member
    Join Date: May 2020
    Old 05-25-2020 , 19:41   Re: [CS:GO/ANY] Player Souls
    Reply With Quote #8

    Quote:
    Originally Posted by FrAgOrDiE View Post
    I thought you meant something else, in fact the convar just allows you spawn soul only for the warden
    Yeah i meant same thing but when warden dies no soul sign and warden can't be respawned thats the problem i tried to play witch convars tried all different combinations like sm_souls_warden_only 1,
    sm_souls_teams 1,2,3 and stuff nothing works

    Last edited by Eviona; 05-25-2020 at 20:14.
    Eviona is offline
    FrAgOrDiE
    AlliedModders Donor
    Join Date: May 2018
    Location: Italy
    Old 05-25-2020 , 23:24   Re: [CS:GO/ANY] Player Souls
    Reply With Quote #9

    Please try to install the latest version from github and then let me know if it's still not working, because I made a few changes since I wrote it was done
    __________________
    Add me on discord: FrAgOrDiE#5182
    Add me on steam: https://steamcommunity.com/id/fragordie002/
    Join my discord server: http://discord.gg/JpAUXMn
    FrAgOrDiE is offline
    FrAgOrDiE
    AlliedModders Donor
    Join Date: May 2018
    Location: Italy
    Old 05-25-2020 , 23:26   Re: [CS:GO/ANY] Player Souls
    Reply With Quote #10

    Quote:
    Originally Posted by Dragokas View Post
    No credits?
    [L4D] Death Soul
    Hello, you private messaged me but imma reply here too, I had no idea you made a plugin like this for l4d 😧
    __________________
    Add me on discord: FrAgOrDiE#5182
    Add me on steam: https://steamcommunity.com/id/fragordie002/
    Join my discord server: http://discord.gg/JpAUXMn
    FrAgOrDiE 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 18:48.


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