Results 1 to 10 of 26

Thread: cod1-1.4: "script_origin" can't playsound()?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Sounds retarded, but this remembers me on an old bug which I had. I figured a script_origin first started to work after settings the angles.

    Try:

    PHP Code:
    org spawn("script_origin"origin);
    org.angles = (0,0,0); // add this
    org playsound("whizby"); // <----------- no working 
    I used it back then for this: https://github.com/kungfooman/cod2_s...utils.gsc#L131
    timescale 0.01

  2. #2
    Private
    Join Date
    Mar 2016
    Posts
    18
    Thanks
    0
    Thanked 2 Times in 1 Post
    Quote Originally Posted by kung foo man View Post
    Sounds retarded, but this remembers me on an old bug which I had. I figured a script_origin first started to work after settings the angles.

    Try:

    PHP Code:
    org spawn("script_origin"origin);
    org.angles = (0,0,0); // add this
    org playsound("whizby"); // <----------- no working 
    I used it back then for this: https://github.com/kungfooman/cod2_s...utils.gsc#L131
    i saw the use of .angles for "script_origin" somewhere when googling for this issue and i have tried it already.
    also changing the sound to "bomb_tick" or the "american_yes_sir" instead of "whizby", while testing angles doesn't work.

    maybe a script entity only plays sounds if it's linked to a client entity. will try again later.

  3. #3
    Private
    Join Date
    Mar 2016
    Posts
    18
    Thanks
    0
    Thanked 2 Times in 1 Post
    Quote Originally Posted by lobolmart View Post
    maybe a script entity only plays sounds if it's linked to a client entity. will try again later.
    nope, this doesn't help either:
    org linkto(self, "tag_helmet", (0, 0, 0), (0, 0, 0));

Tags for this Thread

Posting Permissions

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