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

[NMRiH] Gibs


Post New Thread Reply   
 
Thread Tools Display Modes
Author
RhymeOfRime
New Member
Join Date: Apr 2021
Plugin ID:
7588
Plugin Version:
4.0
Plugin Category:
Fun Stuff
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Zombies & players explodes into parts upon receiving extra-lethal damage
    Old 04-06-2021 , 11:53   [NMRiH] Gibs
    Reply With Quote #1

    Description:
    Zombies/Players gib when upon receiving extra-lethal damage.
    In order to gib, a zombie/player should receive fatal-blow that put its health below certain health level, which satisfies BOTH of the 2 criterias:

    Criteria 1:
    < -( max_health * sv_gibsys_maxhealth_ratio )
    Eg. This criteria is met when hp reduced below -400hp, given max health = 500hp & sv_gibsys_maxhealth_ratio = 0.8

    Criteria 2:
    < sv_gibsys_mindamage_threshold
    Eg. This criteria is met when hp reduced below -700hp, given sv_gibsys_mindamage_threshold = -700

    Note 1:
    Number of gibs at any time instance will NOT exceed MAX_GIBS defined in the code and the plugin will remove old gibs as new gibs are created.
    I did not make MAX_GIBS into a cvar because changing it in runtime might cause plugin instability.

    Cvars:
    sv_gibsys_num_gibs_rib - Number of ribs to spawn on death.
    sv_gibsys_maxhealth_ratio - Gibbing criteria 1: Additional damage must exceed this portion of maxhealth.
    sv_gibsys_mindamage_threshold - Gibbing criteria 2: Health must be less than this level.
    sv_gibsys_gib_speed - Min speed in which gib flies.

    Model/Particle cvars:
    sv_gibsys_model_rib
    sv_gibsys_model_skull
    sv_gibsys_model_pelvis
    sv_gibsys_model_spine
    sv_gibsys_particle_splat
    sv_gibsys_particle_gib

    Commands:
    sm_gibsys_printGibPoolIndex - Print gib pool indices in console
    sm_gibme - Self gib (only when not infected)

    Update:
    v1.0 Initial publish;
    v2.0 Gib Pool optimization, prevent pool overflow;
    v3.0 Particle removal bug fix, random rotation on gib spawn;
    v4.0 Particle & gib model customization;

    Credits:
    Dysphie
    Attached Files
    File Type: sp Get Plugin or Get Source (gibbingsystem.sp - 273 views - 14.8 KB)
    File Type: smx gibbingsystem.smx (13.1 KB, 128 views)

    Last edited by RhymeOfRime; 05-08-2022 at 03:22. Reason: v4.0 Particle & gib model customization
    RhymeOfRime is offline
    Gollie
    Junior Member
    Join Date: Nov 2021
    Old 11-11-2021 , 09:44   Re: [NMRiH] Gibs
    Reply With Quote #2

    Edit - ignore this - it's the sm_slay command in general that's crashing the server. The !gibme command was a red herring as it allowed me to easily slay myself. so it's not your command at fault - sorry.

    There's a temporary fix here if anyone is interested

    https://i.imgur.com/mRkmOwL.png

    Involves a file into a new folder, editing it and changing 2 numbers


    Ignore everything below this line

    Gibbing System Plugin causing crashes on servers with latest Sourcemod (6524)and Metamod stable (1145) (CentOS docker images)

    This only started happening after the NMRIH 1.12 Halloween 2021 update.

    Can be triggered with the !gibme command or using the sm_slay command to kill another user.

    Tested by:

    * Unloading all 3rd party plugins - no crash

    * Unloading only Gibbing System - no crash

    * Unloading all 3rd party plugins except Gibbing System - crash

    * Unloading all 3rd party plugins AND all possible sourcemod plugins except Gibbing System - crash

    Tested on 2 different servers (one is an upgrade, 2nd is a totally clean install) - both exhibit the crash, both don't crash with gibbing system uninstalled.

    Tested on a Sourcemod-dev and Metamod-dev server - no crashes with Gibbing System loaded.

    These crashes also occurred right at the start of the map immediately after loading, before any zombies spawns and any gibs produced.

    I've zipped up a half dozen crashdumps from troubleshooting and will DM you the download link directly in a few minutes

    Last edited by Gollie; 11-11-2021 at 13:36.
    Gollie is offline
    RhymeOfRime
    New Member
    Join Date: Apr 2021
    Old 11-14-2021 , 01:55   Re: [NMRiH] Gibs
    Reply With Quote #3

    Quote:
    Originally Posted by Gollie View Post
    Edit - ignore this - it's the sm_slay command in general that's crashing the server. The !gibme command was a red herring as it allowed me to easily slay myself. so it's not your command at fault - sorry.

    There's a temporary fix here if anyone is interested

    https://i.imgur.com/mRkmOwL.png

    Involves a file into a new folder, editing it and changing 2 numbers


    Ignore everything below this line

    Gibbing System Plugin causing crashes on servers with latest Sourcemod (6524)and Metamod stable (1145) (CentOS docker images)

    This only started happening after the NMRIH 1.12 Halloween 2021 update.

    Can be triggered with the !gibme command or using the sm_slay command to kill another user.

    Tested by:

    * Unloading all 3rd party plugins - no crash

    * Unloading only Gibbing System - no crash

    * Unloading all 3rd party plugins except Gibbing System - crash

    * Unloading all 3rd party plugins AND all possible sourcemod plugins except Gibbing System - crash

    Tested on 2 different servers (one is an upgrade, 2nd is a totally clean install) - both exhibit the crash, both don't crash with gibbing system uninstalled.

    Tested on a Sourcemod-dev and Metamod-dev server - no crashes with Gibbing System loaded.

    These crashes also occurred right at the start of the map immediately after loading, before any zombies spawns and any gibs produced.

    I've zipped up a half dozen crashdumps from troubleshooting and will DM you the download link directly in a few minutes
    Ah I saw this after your private message. Well if it's not broken, I won't update it then. Thanks regardless. The 1.12 update did break a lot of plugins.
    RhymeOfRime is offline
    MsDysphie
    AlliedModders Donor
    Join Date: Dec 2017
    Old 05-01-2022 , 01:01   Re: [NMRiH] Gibs
    Reply With Quote #4

    Fix for "[SM] Exception reported: Entity X is invalid"
    Attached Files
    File Type: sp Get Plugin or Get Source (gibbingsystem.sp - 133 views - 10.5 KB)
    MsDysphie is offline
    RhymeOfRime
    New Member
    Join Date: Apr 2021
    Old 05-02-2022 , 00:04   Re: [NMRiH] Gibs
    Reply With Quote #5

    Quote:
    Originally Posted by MsDysphie View Post
    Fix for "[SM] Exception reported: Entity X is invalid"
    Changes included.
    RhymeOfRime 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 01:32.


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