Raised This Month: $ Target: $400

HL 1 blood effects from dead bodies?

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 07-23-2023 , 18:11   HL 1 blood effects from dead bodies?
Reply With Quote #1

In Half-Life 1, when you shoot dead bodies, they release blood and the blood is being dispersed around the body. In Counter-Strike 1.6, when you shoot dead bodies, the bullets simply pass through the bodies and no blood effects appear.

Is there a way to make dead bodies in Counter-Strike to release blood effects, like the dead bodies in Half-Life 1, when you shoot them?

I have a Zombie mod for CS 1.6, and i want the dead bodies in this mod to release blood effects when someone attacks them.
GlobalPlague is offline
Senior Member
Join Date: Oct 2009
Location: Bulgaria
Old 08-14-2023 , 04:58   Re: HL 1 blood effects from dead bodies?
Reply With Quote #2

With this you can get the vector[3] position of where the hit comes from (i.e. end of gun barrel, I assume it should work for knife too and it would look good enough to create the illusion the blood comes from the corpse).


You may take a look at the sprites TE_BLOOD, TE_BLOODSTREAM and TE_BLOODSPRITE (the one you see in HL1 is TE_BLOOD).


In order to check whether you are around a corpse, you may want to use
https://www.amxmodx.org/api/amxmodx/get_user_aiming and check whether the entity you are looking at has the model of one of your zombie player models.

Or maybe a combination of https://www.amxmodx.org/api/engine/find_ent_in_sphere and https://www.amxmodx.org/api/engine/is_in_viewcone if aiming doesn't work.

Either the above or mp_corpsestay 0 and you create your own entities where players die and set some parameters.
Originally Posted by Kakarot47 View Post
There is no bug. with 100% gurenty

Last edited by hellmoss; 08-14-2023 at 05:03.
hellmoss is offline

Thread Tools
Display Modes

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 07:20.

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