Willkommen ~Gast!
Registrieren || Einloggen || Hilfe/FAQ || Staff
Probleme mit der Registrierung im Forum? Melde dich unter registerEin Bild.
Autor Beitrag
000
17.07.2001, 13:15
Executioner



Hello everyone. Here is my first in a series of tutorials I will be writing here within the next couple of days. I figure everyone in the HL community has helped me so much with programming, I need to give something back to the community. In this tutorial I will teach you how to use the UTIL_Bloodstream effect.

UTIL_BloodStream( tr.vecEndPos, gpGlobals->v_forward * -35 + gpGlobals->v_up * 2, (unsigned short)73, 100 );

There is some sample code for using UTIL_Bloodstream. Dont just cut and paste this though, Im going to explain which each part does.

UTIL_BloodStream
Thats the function itself for making the blood bursts. You can find more UTIL_ functions in the util.h file

tr.vecEndPos, gpGlobals->v_forward * -35 + gpGlobals->v_up * 2

That is where the bloodbursts will spawn t and what direction they will go in. tr.vecEndPos is where the bloodstream spawns, and the rest of the code makes the blood go towards the attacker 35 units and up 2 units.

(unsigned short)73

That is the color of the bloodstream. I''m still having trouble figuring this out, but that is the closest I have gotten to complete red so far. Half-Life indeed has a very screwed up color system.

100

This is the number of blood particles being sprayed.

ähhmmm ja, wo muss das alles einfügen?!? also ich schätze irgendwo in die player.cpp, ja aba wo genau?

plz helft mir! --- thx

ps: und da hab ich noch was in der util.h entdekt undzwar util_blooddrips sieht genauso aus, wenn ich das ein wenig umändere müsste das doch auch gehn, oder nich?

--

www.virus-mod.de.vu <- die neue Mod, zur Vorgeschichte von Half-Life (*lol* steht noch nich in der Story auf der Hp ... is eben noch nich formuliert)

zum Seitenanfang zum Seitenende Profil || Suche
001
17.07.2001, 15:19
Hanky



bei TraceAttack oder TakeDamage..

..ich denke aber bei TraceAttack!

Für Monstaas: in der client.cpp glaube ich!

--

hankYs Page

zum Seitenanfang zum Seitenende Profil || Suche
002
17.07.2001, 18:34
Executioner



ok thx, nur kann ichs nich testen, obs funzt, is ja multi player und bots kann ich nich machen *g*

aba thx

--

www.virus-mod.de.vu <- die neue Mod, zur Vorgeschichte von Half-Life (*lol* steht noch nich in der Story auf der Hp ... is eben noch nich formuliert)

zum Seitenanfang zum Seitenende Profil || Suche