Thread: [HELP] StartSound Network Message

Results 1 to 2 of 2
  1. #1
    begadang jangan begadang =_= anggara_nothing's Avatar
    Join Date
    Jan 2016
    Location
    Indonesia
    Posts
    155

    Exclamation [SOLVED] StartSound Network Message

    Hello,

    I want to send custom StartSound message.
    My analysis about this message :
    Code:
    L 01/27/2018 - 18:03:56: MessageBegin (StartSound "107") (Destination "PAS<5>") (Args "10") (Entity "<NULL>") (Classname "<NULL>") (Netname "<NULL>") (Origin "-192.000000 0.000000 36.031250")
    L 01/27/2018 - 18:03:56: Arg 1 (Short "31")		// SoundFlag
    L 01/27/2018 - 18:03:56: Arg 2 (Short "1")		// entity index,	( SoundFlag & SND_ENT )
    L 01/27/2018 - 18:03:56: Arg 3 (Byte "57")		// vol * 64,		( SoundFlag & SND_VOLUME )
    L 01/27/2018 - 18:03:56: Arg 4 (Byte "99")		// pitch,		( SoundFlag & SND_PITCH )
    L 01/27/2018 - 18:03:56: Arg 5 (Byte "57")		// attenuation * 64,	( SoundFlag & SND_ATTENUATION )
    L 01/27/2018 - 18:03:56: Arg 6 (Coord "-192.000000")	// x pos		( SoundFlag & SND_ORIGIN )
    L 01/27/2018 - 18:03:56: Arg 7 (Coord "0.000000")	// y pos		( SoundFlag & SND_ORIGIN )
    L 01/27/2018 - 18:03:57: Arg 8 (Coord "36.031250")	// z pos		( SoundFlag & SND_ORIGIN )
    L 01/27/2018 - 18:03:57: Arg 9 (Byte "3")		// channel
    L 01/27/2018 - 18:03:57: Arg 10 (Short "100")		// soundcache index
    L 01/27/2018 - 18:03:57: MessageEnd (StartSound "107")
    and now the problem is, how i can retrieve the soundcache index?
    Purpose for sending it, play sound for only one client, just like spk command.

    Thank You.
    Last edited by anggara_nothing; 27-01-2018 at 08:32 AM. Reason: SOLVED

  2. #2
    begadang jangan begadang =_= anggara_nothing's Avatar
    Join Date
    Jan 2016
    Location
    Indonesia
    Posts
    155

    Re: [HELP] StartSound Network Message

    ok, emitsounddyn with target_ent_unreliable set to target entity index.
    Working properly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •