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

[CS] Gore Lite


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 02-27-2024 , 11:44   [CS] Gore Lite
Reply With Quote #1

This is a lightweight version of Ultimate Gore plugin for Counter-Strike and Condition Zero.

Gibs used are the default Half-Life ones, so no custom messages are needed.

There is only 1 cvar "amx_gore" with 3 flags (default "ab"):

a = Blood spray on death by headshot
b = Gib on death by C4 explosion
c = Gib on death by nade

Remember to set these cvars in your server.cfg
Code:
violence_ablood 3
violence_hblood 3
violence_agibs 3
violence_hgibs 3
Compatible with HLDS / ReHLDS and zBots.

That's it. Have fun.
Attached Files
File Type: sma Get Plugin or Get Source (cs_gore_lite.sma - 33 views - 3.0 KB)
__________________

Last edited by anssik; 02-29-2024 at 16:23. Reason: v0.2
anssik is offline
WATCH_D0GS UNITED
Senior Member
Join Date: Jan 2023
Old 02-27-2024 , 15:31   Re: [CS] Gore Lite
Reply With Quote #2

Thanks for sharing!

Added some optimizations and fixes

PHP Code:
Fixed regular weapons causing body gibs when player who got shoot and killed is close to another player who got grenade explosion gib.

Optimized method for registering ham for bots.
This method does not cause the first bot (which is the one used for registeringto be ignored from the function in the first moment it occurs, for example Ham_Spawn
Not added disable_event because it is for AMXX 1.9+
Attached Files
File Type: sma Get Plugin or Get Source (cs_gore_lite.sma - 27 views - 3.0 KB)
__________________
💻Know Our New Blog👄
🔗tube2downs.blogspot.com

Last edited by WATCH_D0GS UNITED; 02-27-2024 at 16:00.
WATCH_D0GS UNITED is offline
WATCH_D0GS UNITED
Senior Member
Join Date: Jan 2023
Old 02-27-2024 , 15:40   Re: [CS] Gore Lite
Reply With Quote #3

Something else to do could be:

*Make the player body invisible after gibs (it gets visible after drop motion) few seconds after death.
*Fix bot_kill causing gibs.

Last edited by WATCH_D0GS UNITED; 02-27-2024 at 15:59.
WATCH_D0GS UNITED is offline
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 02-29-2024 , 16:26   Re: [CS] Gore Lite
Reply With Quote #4

Updated to 0.2.

This fixes the problem where gib happens if player has taken damage from grenade/C4, but then dies by other damage like bullets. This is because the entity field m_bitsDamageType only gets cleared on round start and not between instances of damage. Adding Ham_TakeDamage hook and tracking last damagebits resolved this.

Quote:
Originally Posted by WATCH_D0GS UNITED View Post
*Make the player body invisible after gibs (it gets visible after drop motion) few seconds after death.
I did not observe this behaviour, there is no body when gib happens.

Quote:
Originally Posted by WATCH_D0GS UNITED View Post
*Fix bot_kill causing gibs.
This will still happen, if last damage taken was by grenade/C4 and then player dies without taking any other damage, for example by bot_kill or slay command.

Also I did not see any need to change the function used to register bots, I now tested the plugin and it always worked, that is to say I could not make it fail.
__________________

Last edited by anssik; 02-29-2024 at 16:29.
anssik is offline
WATCH_D0GS UNITED
Senior Member
Join Date: Jan 2023
Old 02-29-2024 , 20:33   Re: [CS] Gore Lite
Reply With Quote #5

Ok.

But your new method checks for something every time a player is receiving damage.
In the way We have fixed, the checks occurs already in Ham_Player_Killed.

PHP Code:
  if(killer && shouldgib)
    return 
Also in client_putinserver() your checks occurs for every player for bot registration.

You could make this in FM_CreateFakeClient so the checks will occur only for bots.

About register bots, indeed in your plugin the method We provided is actually not needed. That method actually solves the problem of the first bot in Ham_Spawn.

But these are only suggestions, the plugin is yours buddy.

Thanks.
__________________
💻Know Our New Blog👄
🔗tube2downs.blogspot.com
WATCH_D0GS UNITED 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 15:29.


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