Quote:
Originally Posted by marcellus
are u talking about this ?
Code:
// eject a shell from the weapon every shot
public eject_brass(Float: vecOrigin[3],Float: vecVelocity[3],Float: rotation, soundtype )
{
engfunc(EngFunc_MessageBegin, MSG_BROADCAST, SVC_TEMPENTITY, vecOrigin, 0);
write_byte( TE_MODEL);
engfunc(EngFunc_WriteCoord, vecOrigin[0]);
engfunc(EngFunc_WriteCoord, vecOrigin[1]);
engfunc(EngFunc_WriteCoord, vecOrigin[2]);
engfunc(EngFunc_WriteCoord, vecVelocity[0]);
engfunc(EngFunc_WriteCoord, vecVelocity[1]);
engfunc(EngFunc_WriteCoord, vecVelocity[2]);
engfunc(EngFunc_WriteAngle, rotation);
write_short( g_shell);
write_byte( soundtype);
write_byte ( 25 );
message_end();
}
|
Yes. Thanks.
However I didn't found nothing in hlsdk_const.inc about sound time. Also I'm wondering where can I find those bullet models?
// edit:
So left: question in this post what is higher.
How to get bullet texture index.
How to get where decals were writen (traceline - yes, but what about shotgun)?
__________________