Jump to content
Sign in to follow this  
mad rabbit

Init.sqs

Recommended Posts

Before I begin:

*BAS please respond or awknowledge the email and/or personal message I sent you.  Email was sent to contact@ballistic-studios.com, PM was sent to Tigershark.Thanks.*

Introduction

I am trying to disable two different features that come with two seperate addons by setting particular variables in the init.sqs of my to either true or false (boolean) depneding upon the desired effect.  These are:

(1)

"BAS_CAScalled = true" to disable the AH-60L DAP CAS action that appears when a player has a satcom.  (see below "background info").  This addon is from BAS.

(2)

"DKMM_choppers_shortstart = true" to disable the Mi28 long start sequence.  This addon is from DKMM and the method to disable this sequence is descirbed in this addons accompanying readme.

Problem

Although this seems simple enough, it does not work in either case.  I making a CTI map and have tried numerous things which included: (please keep in mind I CV these vehicles and movein the crew...not that this should effect the problems I'm having...I think)

- Stating these variables as true in the init.sqs (as prescirbed by the Mi28 addon readme for that case)

- Stating these variables as true in the init.sqs and the making these variable PublicVariables

- Having the UpdateServer.sqs for the CTI map also include a line which checks to see if the value is false and if so making it true.  This update cycles every 0.25 secs.

- Making these variables true (even if they already are) as soon as the vehicle is CVed.

I have also tried in a non-CTI, very bare-bones map (i.e. only chopper, player, init.sqs) the following:

- Again,stating these variables as true in the init.sqs

- Stating these variables as true in the init line of the the vehicle

Probably one or two other things I've tried but all to no avail.

Please help if you have worked with these addons before and have been able to disable these features.  Conversely, if you made or helped make these addons (DKMM and particularly BAS as I need to speak to you guys), I would appreciate the solution straight from the 'horses mouth'.

Thanks.

Background info to this post

I posted a question to this forum a while back, looking for a way to disable the BAS CAS script that automatically appears as discribed in:

Previous Post

Vektorbosson was kind enough to help me out.  Although his solution worked to some degree, I still am having issues with the option being still available to a player with a satcom, within range who has not looked at the CVed AH-60L.  When the player turns to face the AH-60L the action goes away due to the this animate ["switch1DAPCAS", 1].

The appearance of this option is not desirable at all and you can understand the difficulties involved with making a CTI map and having this option available to players in other groups just because they have a satcom.

I have tried politely emailing and Personal Messaging BAS in regards to this but have had no response.  So if your out their BAS guys please respond or at least give an indication that you've received my messages.

Thanks,

mad rabbit

Share this post


Link to post
Share on other sites

For the shortstart in the DKMM MI28, it's

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">DKMM_thiss_shortstart = true

(pulled from rts init.sqs, and it works)

And you DON'T need to publicvar init.sqs things, they are already all public.

Share this post


Link to post
Share on other sites

Thankyou for that MrZig, very helpful. I had the DKMM Mi28 unPBOed the whole time and never thought to check if the readme was correct. Just took what it said in there as gospel.

However, I have checked the config.cpp for the BAS AH-60L DAP and the:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

BAS_CAScalled = true

in the the init.sqs should work!? Any feedback on this would be most appreciated. (again BAS contact me pls!)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×