<aside> ⚡ script "map_stagemusic" (int client)
</aside>
This script is called by the map whenever the main stage music should begin playing. It is first called on server-side, then again on client-side.
This script can replaced by adding a new script in your map of the name, map_stagemusic
, to add additional behavior to this event, or override the existing behavior.
This script has no expected return value.
client
: bool - Whether this script is being called as CLIENTSIDE
.The default script actually just sets the MAPINFO music.
script "map_stagemusic" (int client) {
SetMusic("*");
}
The following script changes the music to MAPINFO defined music, unless run on CLIENTSIDE
, and the user is running software mode.
script "map_stagemusic" (int client) {
if(client) {
if(GetCvar("vid_renderer")==0)
SetMusic("AMBFIRE");
else
SetMusic("*");
} else {
SetMusic("*");
}
}