Home   Help Search Login Register  

Author Topic: a better view  (Read 6036 times)

0 Members and 1 Guest are viewing this topic.

Offline Killswitch

  • Members
  • *
  • Peace, cheese and ArmA
Re: a better view
« Reply #15 on: 09 Aug 2008, 04:15:15 »
Why all this fiddling with looping scripts and core game UI mangling?  :dunno:
Code: [Select]
class CfgPatches
{
    class loki_dlg
    {
        units[] ={};
        weapons[] ={};
        requiredAddons[] = {};
        requiredVersion  = 1.08;
        version          = 2.31;
    };
};
class CfgVehicles
{
    class Man;
    class CAManBase: Man
    {
        class UserActions
        {
            class Loki_ABV
            {
                displayName="> ABV";
                position="camera";
                radius=1;
                condition="(missionName=='')";
                statement="[] execVM '\loki_dlg\Scripts\ABV_Settings.sqf'";
                onlyForPlayer=1;
                showWindow=0;
            };
        };
    };
};

#include <\loki_dlg\Dialogs\Common\DialogColorConstants.hpp>
#include <\loki_dlg\Dialogs\DialogColorScheme.hpp>
#include <\loki_dlg\Dialogs\Common\DialogControlClasses.hpp>
#include <\loki_dlg\Dialogs\Common\settings.hpp>
Yeah?  :D

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: a better view
« Reply #16 on: 09 Aug 2008, 12:38:40 »
greetings,

@killswitch thanks for the reply...

Quote
Why all this fiddling with looping scripts and core game UI mangling?

honestly... i am a noob and have about a 10% idea what's going on with scripting. ::)

i tried your way.. and it worked, except, in MP...

i found that this works... even in warfare...

Code: [Select]
class CfgPatches
{
class loki_dlg
{
units[] ={};
weapons[] ={};
requiredAddons[] = {"Extended_Init_EventHandlers"};
requiredVersion  = 1.08;
version          = 2.31;
};
};

class Extended_Init_EventHandlers
{
class CAManBase
{

loki_dlginit = "if ((isNil ""loki_dlg"")) then { loki_dlg = true; [] execVM ""\loki_dlg\init.sqf""; }";
};
};

is this way bad?

« Last Edit: 09 Aug 2008, 12:40:51 by loki72 »

Offline Killswitch

  • Members
  • *
  • Peace, cheese and ArmA
Re: a better view
« Reply #17 on: 09 Aug 2008, 17:34:49 »
Yeah, I deliberately made the condition expression ensure it would only work in single player missions. Spooner touched on the subject before and I'll do it now - view distance and the ability to change it on the fly in multiplayer missions should be determined by the mission maker so as to make things fair for everyone. That said, changing the condition to make the thing work in MP would be simple, and is left as an exercise.

Quote
Code: [Select]
[... XEH solution ...]
is this way bad?
Not at all - that'll work just fine, too.  :good:
« Last Edit: 09 Aug 2008, 18:30:59 by bedges »

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: a better view
« Reply #18 on: 11 Aug 2008, 13:27:52 »
sry for the delay.. was gone for 2 days

@ killswitch.. thank you..   :)

i agree about the mission maker and view distance... to a degree...

i will add a disclaimer.. on the next release that ABV is a 'cheat' if no one else is using it.

« Last Edit: 11 Aug 2008, 13:52:00 by loki72 »