Author Topic: Scriptcore PlaySound  (Read 1246 times)

0 Members and 1 Guest are viewing this topic.

Offline TheOne

  • Soldier
  • **
  • Posts: 208
Scriptcore PlaySound
« on: July 24, 2012, 08:48:24 am »
Hey.
Since there is this procedure (can't remember how it was called exactly) already implemented, why not allow scripters to use it?
The problem currently is that it looks for files in the Downloads/sfx folder. You could either implement downloading of sounds, but much easier would be changing the folder to the sfx folder so we can play default sounds at least.

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Scriptcore PlaySound
« Reply #1 on: July 24, 2012, 02:37:15 pm »
The PlaySound procedure will be changed to play sounds from the sfx folder. Downloading sounds will not be implemented (we already have enough issues with netcode stuff).
"procedure PlaySound(ID: Byte;Name: string;X,Y: Single)" is the signature of the function.
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Scriptcore PlaySound
« Reply #2 on: July 24, 2012, 08:45:53 pm »
SFX folder contains mostly gunshots, explosions and other random effects, which won't be enough for many mods. For example, what kind of default sound would you use to indicate an airstrike? Or a start of a new zombie wave? Definitely not a random gunshot..
At least allow playing any sound file as long as it's in SFX folder. If sound is not found - skip it. Players will have to download a mod with proper sounds manually, but IMHO this is still better than being limited to default sounds.
« Last Edit: July 24, 2012, 08:54:09 pm by L[0ne]R »

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Scriptcore PlaySound
« Reply #3 on: July 25, 2012, 03:31:15 am »
SFX folder contains mostly gunshots, explosions and other random effects, which won't be enough for many mods. For example, what kind of default sound would you use to indicate an airstrike? Or a start of a new zombie wave? Definitely not a random gunshot..
At least allow playing any sound file as long as it's in SFX folder. If sound is not found - skip it. Players will have to download a mod with proper sounds manually, but IMHO this is still better than being limited to default sounds.
As long as the sound is in the sfx folder it will be played.
Rules
Tools: ARSSE - SARS - SRB - chatMod