I'm talking about this:
That 'magical' numbers 41 to 45 depends on the entity that decal will be drawn.
I found a decal list: https://forums.alliedmods.net/showthread.php?t=20448
but I want to know what decal is being used by each entity
Код:
message_begin_f(MSG_PVS, SVC_TEMPENTITY, vecEndPos, 0);
write_byte(TE_DECAL);
write_coord_f(vecEndPos[0]);
write_coord_f(vecEndPos[1]);
write_coord_f(vecEndPos[2]);
write_byte(random_num(41, 45)); // 41 to 45 decal index - bullet hole
write_short(ent);
message_end();
I found a decal list: https://forums.alliedmods.net/showthread.php?t=20448
but I want to know what decal is being used by each entity
Последнее редактирование: