Way I can think of:
- Block damage, make fake blood to the poeple you want.
--> But a problem with this way would be, you can put health lower with set_health or anything, but player wont slowdown, ... and I'm not sure this is the best way.
This is the way to make blood..
PHP Code:
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
write_byte(TE_BLOODSPRITE)
engfunc(EngFunc_WriteCoord, flOrigin[0])
engfunc(EngFunc_WriteCoord, flOrigin[1])
engfunc(EngFunc_WriteCoord, flOrigin[2])
write_short(spr_blood_spray)
write_short(spr_blood_drop)
write_byte(247) // color index
write_byte(random_num(1, 5)) // size
message_end()
Or any other ways you can say or give the code of?
Thanks anyway!
Wyświetl pełny artykuł