How to make blood spray like in HL alpha? Created 3 years ago2020-10-31 13:42:51 UTC by cambreaKer cambreaKer

Created 3 years ago2020-10-31 13:42:51 UTC by cambreaKer cambreaKer

Posted 3 years ago2020-10-31 13:42:51 UTC Post #344813
So i'm making a mod for half-life 1 and i have a question, how can i make the npc's have blood spray like in HL alpha\day one?
i've seen a few mods have that so i know it's possible but i don't know how, can anyone help?
Posted 3 years ago2020-11-07 11:20:55 UTC Post #344829
There was a function called UTIL_Setspark or something. Look where this function is defined i guess there is other functions about that blood spray above and below.

If not;
then check UTIL_setsparks definiton. i guess there is functions about TE_spark or something. Go where TE_spark defined. You'll see List of Temporary entities Starts with TE_ there should be blood entity or similar, use it for making your own function like UTIL_setspark. It shouldn't necasserily to be a blood entity any particle effect may be used to simulate original blood.

İf there isn't a temp entity about it, i believe this feature still exist in engine, but i dont know how to make dll functions to call this feature.

Email who made similar alpha half-life mods they may give you further information.

And you have to search these sites and these functions to learn.

documentation(amxmodx.org)
alliedmods.net(search something like "write_byte(TE_PLAYERDECAL)" to find how people use theese functions)
gamebanana Chyvachok's tutorialgamebanana Chyvachok's tutorial
i found this on alliedmods.net "Zomibe hell"i found this on alliedmods.net "Zomibe hell"
Posted 3 years ago2020-11-07 14:16:23 UTC Post #344830
oh thanks for replying, but i've already found a way to add the old blood spray, forgot to put an update here
Posted 3 years ago2020-11-07 15:05:42 UTC Post #344831
nice, is it more accurately resembles original, or more proper way to make it? can you sometime post it here or to tutorial section so everybody can get access to knowledge.
Posted 3 years ago2020-11-07 20:38:05 UTC Post #344832
it was just a little copy&paste job from SHAFT source code, so i won't be making a tutorial on that, i think everybody will figure that out :)
You must be logged in to post a response.