Brock5992

Road Flares

5 posts in this topic

can you post here what you did? like where you placed the folders, what you added to what files etc? make sure to use pastebin or spoiler tags for code.

Share this post


Link to post
Share on other sites
Advertisement

I placed the AL_roadflare folder and sound folder straight into my mission folder and put the ini_roadflare.sqf  and Briefing.sqf into the root of the mission folder.  I then added into my init.sqf:

Spoiler

if ((!isServer) && (player != player)) then {waitUntil {player == player};};

//titleText ["Roadflare DEMO", "BLACK FADED", 0.2];

setViewDistance 2000;

[] execVM "briefing.sqf";

null = [] execvm "ini_roadflare.sqf";

I even changed it to this and took out the briefing.sqf to see if that works .

Spoiler

if ((!isServer) && (player != player)) then {waitUntil {player == player};};

//titleText ["Roadflare DEMO", "BLACK FADED", 0.2];

null = [] execvm "ini_roadflare.sqf";

I left out the sound info from the description.ext after I had issues with adding it.  I struggle sometimes with how to properly add things to the description.ext.  I figured since it was just sound it wouldn't matter if it was there or not.

Share this post


Link to post
Share on other sites

briefing you should not need

init.sqf

just have

null = [] execvm "ini_roadflare.sqf";

 

add sound,  AL_roadflare into missions folder

create a file called CfgSounds.hpp

in that file put.

Spoiler

class CfgSounds
{
	class fl_start_1
	{
		name = "fl_start_1";
		sound[] = {"sound\fl_start_1.ogg", 1, 1};
		titles[] = {1, ""};
	};	
	class fl_burn_1
	{
		name = "fl_burn_1";
		sound[] = {"sound\fl_burn_1.ogg", 1, 1};
		titles[] = {1, ""};
	};
	class fl_start_2
	{
		name = "fl_start_2";
		sound[] = {"sound\fl_start_2.ogg", 1, 1};
		titles[] = {1, ""};
	};	
	class fl_burn_2
	{
		name = "fl_burn_2";
		sound[] = {"sound\fl_burn_2.ogg", 1, 1};
		titles[] = {1, ""};
	};
	class fl_start_3
	{
		name = "fl_start_3";
		sound[] = {"sound\fl_start_3.ogg", 1, 1};
		titles[] = {1, ""};
	};	
	class fl_burn_3
	{
		name = "fl_burn_3";
		sound[] = {"sound\fl_burn_3.ogg", 1, 1};
		titles[] = {1, ""};
	};		
};

 

then in your description.ext

find

#include "config.cpp"

add below

#include "CfgSounds.hpp"

load the server then put in here your rpt logs via pastebin

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.